DragonFlyBSD/src 89984f3sys/vfs/tmpfs tmpfs_subr.c tmpfs_vnops.c

tmpfs - Close rare vnode recycle race

* Keep the node lock held when clearing tn_vnode in tmpfs_reclaim()
  to protect against a use-after-free race on tn_vnode against another
  thread.

* Keep the node locked across the node type check and vnode
  ref in tmpfs_unmount() to protect against asynchronous
  reclamation races.
DeltaFile
+0-20sys/vfs/tmpfs/tmpfs_subr.c
+4-2sys/vfs/tmpfs/tmpfs_vnops.c
+2-2sys/vfs/tmpfs/tmpfs_vfsops.c
+0-1sys/vfs/tmpfs/tmpfs.h
+6-254 files

UnifiedSplitRaw