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, Oct 19, 1:04 AM
Unknown Object (File)
Sat, Oct 18, 2:58 PM
Unknown Object (File)
Wed, Oct 8, 1:42 PM
Unknown Object (File)
Tue, Sep 30, 9:33 PM
Unknown Object (File)
Fri, Sep 26, 11:15 PM
Unknown Object (File)
Wed, Sep 24, 11:34 PM
Unknown Object (File)
Sep 13 2025, 1:10 PM
Unknown Object (File)
Sep 13 2025, 1:10 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