diff options
author | kib <kib@FreeBSD.org> | 2010-04-20 10:19:27 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-04-20 10:19:27 +0000 |
commit | d5b92466a9368c3ebeeb351f627452e66b5ec709 (patch) | |
tree | 7e49d1727e5b7479c5623dea52d412a43e45ab60 /lib/libc/stdlib/realpath.c | |
parent | 0be03f320b674f387da392d9e4fece5b67a79ae1 (diff) | |
download | FreeBSD-src-d5b92466a9368c3ebeeb351f627452e66b5ec709.zip FreeBSD-src-d5b92466a9368c3ebeeb351f627452e66b5ec709.tar.gz |
The cache_enter(9) function shall not be called for doomed dvp.
Assert this.
In the reported panic, vdestroy() fired the assertion "vp has namecache
for ..", because pseudofs may end up doing cache_enter() with reclaimed
dvp, after dotdot lookup temporary unlocked dvp.
Similar problem exists in ufs_lookup() for "." lookup, when vnode
lock needs to be upgraded.
Verify that dvp is not reclaimed before calling cache_enter().
Reported and tested by: pho
Reviewed by: kan
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdlib/realpath.c')
0 files changed, 0 insertions, 0 deletions