HomeFreeBSD

cache: only let non-dir descriptors through when doing EMPTYPATH lookups

Description

cache: only let non-dir descriptors through when doing EMPTYPATH lookups

Otherwise things like realpath against a file and '.' end up with an
illegal state of having a regular vnode for the parent.

Reported by: syzbot+9aa5439dd9c708aeb1a8@syzkaller.appspotmail.com

Details

Provenance
mjgAuthored on Oct 27 2021, 6:17 PM
Parents
rG34fb1c133c5b: Fix intra-object buffer overread for labeled msdosfs volumes
Branches
Unknown
Tags
Unknown