freebsd-src/sys/fs
Jason A. Harmening fcb164742b unionfs: rework unionfs_getwritemount()
VOP_GETWRITEMOUNT() is called on the vn_start_write() path without any
vnode locks guaranteed to be held.  It's therefore unsafe to blindly
access per-mount and per-vnode data.  Instead, follow the approach taken
by nullfs and use the vnode interlock coupled with the hold count to
ensure the mount and the vnode won't be recycled while they are being
accessed.

Reviewed by:	kib (earlier version), markj, pho
Tested by:	pho
Differential Revision: https://reviews.freebsd.org/D34282
2022-02-23 22:10:02 -06:00
..
autofs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
cd9660 Change VOP_READDIR's cookies argument to a **uint64_t 2021-12-15 20:54:57 -07:00
cuse Fix for loading cuse.ko via rc.d . Make sure we declare the cuse(3) 2020-10-23 08:44:53 +00:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs fs: fix a few common typos in source code comments 2022-02-06 13:48:31 +01:00
ext2fs fs: fix a few common typos in source code comments 2022-02-06 13:48:31 +01:00
fdescfs insmntque1(): remove useless arguments 2022-01-31 16:49:08 +02:00
fifofs fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
fuse fusefs: fix the build without INVARIANTS after 00134a0789 2022-02-04 18:44:27 -07:00
mntfs mntfs: lock mntfs pseudo devfs vnode properly 2021-11-13 01:00:41 +02:00
msdosfs msdosfs: Fix mounting when the device sector size is >512B 2022-02-14 10:06:47 -05:00
nfs nfsclient: Delete unused function nfscl_getcookie() 2022-01-27 15:30:26 -08:00
nfsclient nfscl: Fix a use after free in nfscl_cleanupkext() 2022-02-22 14:21:43 -08:00
nfsserver nfsd: Reply NFSERR_SEQMISORDERED for bogus seqid argument 2022-02-09 15:17:50 -08:00
nullfs insmntque1(): remove useless arguments 2022-01-31 16:49:08 +02:00
procfs procfs_doprocfile(): simplify 2021-11-04 06:13:47 +02:00
pseudofs pseudofs: Destroy vncache hashtbl on pseudofs module unload. 2021-12-09 21:41:08 +00:00
smbfs Change VOP_READDIR's cookies argument to a **uint64_t 2021-12-15 20:54:57 -07:00
tmpfs insmntque1(): remove useless arguments 2022-01-31 16:49:08 +02:00
udf Change VOP_READDIR's cookies argument to a **uint64_t 2021-12-15 20:54:57 -07:00
unionfs unionfs: rework unionfs_getwritemount() 2022-02-23 22:10:02 -06:00