summaryrefslogtreecommitdiff
path: root/tests/lib/libc/stdlib
diff options
context:
space:
mode:
authorhannken <hannken@NetBSD.org>2014-02-27 16:51:37 +0000
committerhannken <hannken@NetBSD.org>2014-02-27 16:51:37 +0000
commita72e818c019ba57ef6532c025aa1acc12913fa09 (patch)
tree7b4b3f75fd8d1eb0b41bf3bbd3ef0dfc04e366a7 /tests/lib/libc/stdlib
parent28adc400473236498b18b8848bfe746d2dfa38e6 (diff)
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
Diffstat (limited to 'tests/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions