freebsd-dev/sys/fs/unionfs
Jason A. Harmening 0745d837c2 unionfs: prevent upperrootvp from being recycled during mount
If upperrootvp is doomed by a concurrent unmount, unionfs_nodeget()
may return without a reference or lock on it.  unionfs_domount() must
prevent the vnode from being recycled for use by a different file until
it is finished with the vnode, namely once vfs_register_upper_from_vp()
fails.  Accomplish this by holding the reference returned by namei()
a bit longer.

Reviewed by:	kib, markj
Tested by:	pho
Differential Revision:	https://reviews.freebsd.org/D39767
2023-05-07 18:30:43 -05:00
..
union_subr.c unionfs: fixes to unionfs_nodeget() error handling 2023-05-07 18:30:43 -05:00
union_vfsops.c unionfs: prevent upperrootvp from being recycled during mount 2023-05-07 18:30:43 -05:00
union_vnops.c unionfs_mkdir(): handle dvp reclamation 2023-04-17 20:31:40 -05:00
union.h Remove unnecessary thread argument from unionfs_nodeget() and _noderem() 2021-12-07 16:20:02 -08:00