HomeFreeBSD

null_vptocnp(): busy nullfs mp instead of refing it

Description

null_vptocnp(): busy nullfs mp instead of refing it

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
Reviewed by: jah
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35477

Details

Provenance
kibAuthored on Jun 10 2022, 11:35 AM
Reviewer
jah
Differential Revision
D35477: null_vptocnp(): busy nullfs mp instead of refing it
Parents
rG975715b78819: iommu_gas: use to first-fit search for lowermatch
Branches
Unknown
Tags
Unknown