NetBSD/share
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
..
dict Add a bunch of missing words from a list I had dated 2005. 2013-08-04 03:38:13 +00:00
doc I'm a document, Jim, not a shell script. 2013-10-06 05:45:19 +00:00
examples put more info about the sierra modem 2014-02-15 18:17:59 +00:00
i18n missing files 2011-04-29 09:57:49 +00:00
legal
locale Remove duplicate zh entry. 2013-08-19 22:34:41 +00:00
man The current implementation of vn_lock() is racy. Modification of 2014-02-27 16:51:37 +00:00
me Remove a spurious '%' in "tech%nical" 2013-02-12 20:50:22 +00:00
misc NetBSD 6.1.2 and 6.0.3 are out. Also, add 6.1.1. 2013-09-30 03:48:51 +00:00
mk For now, provide a path to the gcc 4.1 distribution as well 2014-02-27 10:42:30 +00:00
nls
tabset
terminfo Import terminfo-20130607.src + mbalmers typo patch 2013-10-01 09:17:41 +00:00
tmac The *roff macro argument is "-isoC-2011"; adapt. 2013-08-03 22:12:23 +00:00
wscons Fix typos (in comments). 2012-02-17 12:08:12 +00:00
xml Do not bother installing any XML calatog when MKKYUA!=no. We won't need 2013-02-25 00:23:01 +00:00
zoneinfo Change comments and variables to reduce differences with upstream. 2013-12-26 20:19:17 +00:00
Makefile
Makefile.inc