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
F102016188: D35477.id106891.diff
Wed, Nov 6, 2:18 PM
Unknown Object (File)
Sun, Oct 20, 1:39 AM
Unknown Object (File)
Sun, Oct 20, 1:39 AM
Unknown Object (File)
Sun, Oct 20, 1:39 AM
Unknown Object (File)
Sun, Oct 20, 1:16 AM
Unknown Object (File)
Sun, Oct 20, 12:49 AM
Unknown Object (File)
Sat, Oct 19, 8:49 AM
Unknown Object (File)
Oct 1 2024, 4:56 PM
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