Page MenuHomeFreeBSD

null_vptocnp(): busy nullfs mp instead of refing it
ClosedPublic

Authored by kib on Jun 14 2022, 4:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 30, 10:15 AM
Unknown Object (File)
Thu, Nov 27, 8:10 PM
Unknown Object (File)
Wed, Nov 26, 9:03 PM
Unknown Object (File)
Sat, Nov 15, 2:32 AM
Unknown Object (File)
Sat, Nov 15, 2:32 AM
Unknown Object (File)
Sat, Nov 15, 2:32 AM
Unknown Object (File)
Sat, Nov 15, 12:08 AM
Unknown Object (File)
Nov 6 2025, 12:02 AM
Subscribers

Details

Summary
null_nodeget() needs a valid mount point data, otherwise we might
race and dereference NULL.

Using MBF_NOWAIT makes non-forced unmount non-transparent for
vn_fullpath() over nullfs, but we make no guarantee that fullpath
calculation succeeds anyway.

Reported and tested by:    pho

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable