freebsd-dev/sys/fs/nullfs
Konstantin Belousov d5b078163e null_bypass(): prevent loosing the only reference to the lower vnode
The upper vnode reference to the lower vnode is the only reference that
keeps our pointer to the lower vnode alive. If lower vnode is relocked
during the VOP call, upper vnode might become unlocked and reclaimed,
which invalidates our reference.

Add a transient vhold around VOP call.

Reported and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D31310
2021-07-27 19:58:47 +03:00
..
null_subr.c vfs: add v_irflag accessors 2021-01-03 06:50:06 +00:00
null_vfsops.c Allow stacked filesystems to be recursively unmounted 2021-07-24 12:52:00 -07:00
null_vnops.c null_bypass(): prevent loosing the only reference to the lower vnode 2021-07-27 19:58:47 +03:00
null.h Allow stacked filesystems to be recursively unmounted 2021-07-24 12:52:00 -07:00