freebsd-src/sys/fs/nullfs
Konstantin Belousov 7fd37611b9 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
2022-06-14 10:32:45 +03:00
..
null.h Allow stacked filesystems to be recursively unmounted 2021-07-24 12:52:00 -07:00
null_subr.c nullfs: hash insertion without vnode lock upgrade 2022-03-19 10:47:10 +00:00
null_vfsops.c vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
null_vnops.c null_vptocnp(): busy nullfs mp instead of refing it 2022-06-14 10:32:45 +03:00