HomeFreeBSD

vn_open_cred(): disallow O_CREAT | O_EMPTY_PATH

Description

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

Details

Provenance
kibAuthored on May 12 2021, 7:04 PM
Parents
R10:529ab5a75925: rtld: initialize default dlerror_seen_val as true
Branches
Unknown
Tags
Unknown