]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vn_open_cred(): disallow O_CREAT | O_EMPTY_PATH
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 12 May 2021 19:04:44 +0000 (22:04 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 12 May 2021 23:32:04 +0000 (02:32 +0300)
commit6de3cf14c47d97b423ae25d5bd1d80b896ecd9e6
tree1f7e3cda20867d65bebbe9f5babc948ae350c683
parent529ab5a75925c9c1eeea0b2712911048119d06ae
vn_open_cred(): disallow O_CREAT | O_EMPTY_PATH

This combination does not make sense, and cannot be satisfied by lookup.
In particular, lookup cannot supply dvp, it only can directly return vp.

Reported and reviewed by: markj using syzkaller
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
sys/kern/vfs_vnops.c