Page MenuHomeFreeBSD

mount: Check for !VDIR mount points before handling -o emptydir
ClosedPublic

Authored by markj on Oct 13 2021, 12:50 AM.
Tags
None
Referenced Files
F160878397: D32475.diff
Sun, Jun 28, 3:49 PM
Unknown Object (File)
May 21 2026, 1:03 PM
Unknown Object (File)
May 20 2026, 11:55 AM
Unknown Object (File)
May 20 2026, 6:20 AM
Unknown Object (File)
May 15 2026, 11:35 PM
Unknown Object (File)
May 13 2026, 9:35 AM
Unknown Object (File)
May 13 2026, 1:51 AM
Unknown Object (File)
May 13 2026, 1:51 AM
Subscribers

Details

Summary

To implement -o emptydir, vfs_emptydir() checks that the passed
directory is empty. This should be done after checking whether the
vnode is of type VDIR, though, or vfs_emptydir() may end up calling
VOP_READDIR on a non-directory.

Reported by: syzbot+4006732c69fb0f792b2c@syzkaller.appspotmail.com

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42095
Build 38983: arc lint + arc unit