freebsd-skq/sys/fs
Konstantin Belousov 5673e3cb08 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
2010-04-20 10:19:27 +00:00
..
cd9660 On LP64 struct ifid is 64-bit aligned while struct fid is 32-bit aligned 2010-01-23 22:38:01 +00:00
coda Synchronize Coda kernel module definitions in our coda.h to Coda 6's 2010-04-05 20:12:54 +00:00
deadfs Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
devfs Revert r206560. The change doesn't work correctly in all cases with 2010-04-16 07:02:28 +00:00
ext2fs Fix common misspelling of hierarchy 2010-02-20 10:19:19 +00:00
fdescfs Fix a long standing regression of readdir(3) in fdescfs(5) introduced 2010-03-16 19:59:14 +00:00
fifofs - Improve comments about locking of the "struct fifoinfo" which is a bit 2009-11-06 22:29:46 +00:00
hpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
msdosfs mountmsdosfs: reject too high value of bytes per cluster 2010-04-02 15:22:23 +00:00
nfs Avoid extraneous recovery cycles in the experimental NFS client 2010-04-18 22:21:23 +00:00
nfsclient For the experimental NFS client doing an NFSv4 mount, 2010-04-20 01:02:39 +00:00
nfsserver Harden the experimental NFS server a little, by adding range 2010-04-06 01:14:49 +00:00
ntfs Fix ntfs such that it understand media with a non-512-bytes sector size: 2009-12-07 15:15:08 +00:00
nullfs Add explicit struct ucred * argument for VOP_VPTOCNP, to be used by 2009-06-21 19:21:01 +00:00
nwfs Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
portalfs Don't use ap->a_td->td_ucred when we were passed ap->a_cred. 2009-12-02 18:09:22 +00:00
procfs Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
pseudofs The cache_enter(9) function shall not be called for doomed dvp. 2010-04-20 10:19:27 +00:00
smbfs Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
tmpfs Add "maxfilesize" mount option for tmpfs to allow specifying the 2010-01-29 12:09:14 +00:00
udf Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific 2009-06-06 07:13:57 +00:00
unionfs Fix some LORs between vnode locks and filedescriptor table locks. 2009-07-31 13:40:06 +00:00