NetBSD/share/man
hannken 2b6ec89863 The current implementation of vn_lock() is racy. Modification of
the vnode operations vector for active vnodes is unsafe because it
is not known whether deadfs or the original file system will be
called.

- Pass down LK_RETRY to the lock operation (hint for deadfs only).

- Change deadfs lock operation to return ENOENT if LK_RETRY is unset.

- Change all other lock operations to check for dead vnode once
  the vnode is locked and unlock and return ENOENT in this case.

With these changes in place vnode lock operations will never succeed
after vclean() has marked the vnode as VI_XLOCK and before vclean()
has changed the operations vector.

Adresses PR kern/37706 (Forced unmount of file systems is unsafe)

Discussed on tech-kern.

Welcome to 6.99.33
2014-02-27 16:51:37 +00:00
..
man0 Rename NetBSD/hp700 to NetBSD/hppa. 2014-02-24 07:23:38 +00:00
man1 .Xr intro(3lua) and intro(9lua) 2013-10-26 08:37:58 +00:00
man2
man3 Very slightly more consistency in ordering in SYNOPSIS. 2013-11-28 16:45:36 +00:00
man3lua Use 5.2 usage pattern in the synopsis. 2014-01-07 21:54:17 +00:00
man4 Rename NetBSD/hp700 to NetBSD/hppa. 2014-02-24 07:23:38 +00:00
man5 Document random_seed and random_file. 2014-01-15 11:42:43 +00:00
man6
man7 Rename NetBSD/hp700 to NetBSD/hppa. 2014-02-24 07:23:38 +00:00
man8 Rename NetBSD/hp700 to NetBSD/hppa. 2014-02-24 07:23:38 +00:00
man9 The current implementation of vn_lock() is racy. Modification of 2014-02-27 16:51:37 +00:00
man9lua Remove core.9lua, now called systm.9lua. 2014-01-06 13:05:47 +00:00
tools
Makefile eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00