> > > diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c > > > index 2f0945d..056fed6 100644 (file) > > > --- a/fs/ecryptfs/inode.c > > > +++ b/fs/ecryptfs/inode.c > > > @@ -476,6 +476,7 @@ static int ecryptfs_unlink(struct inode *dir, struct > > > dentry *dentry) > > > struct inode *lower_dir_inode = ecryptfs_inode_to_lower(dir); > > > struct dentry *lower_dir_dentry; > > > > > > + dget(lower_dentry); > > > lower_dir_dentry = lock_parent(lower_dentry); > > > rc = vfs_unlink(lower_dir_inode, lower_dentry); > > > if (rc) { > > > @@ -489,6 +490,7 @@ static int ecryptfs_unlink(struct inode *dir, struct > > > dentry *dentry) > > > d_drop(dentry); > > > out_unlock: > > > unlock_dir(lower_dir_dentry); > > > + dput(lower_dentry); > > > return rc; > > > } > > > > > > test ...... > > > > > > http://git.kernel.org/?p=linux/kernel/git/next/linux- > > next.git;a=blob;f=fs/ecry > > > > > > ptfs/inode.c;h=2f0945d632970511ba189a0ef8595e918c10b693;hb=96a7b9c2f5df899f302 > > > ade45cf17ad753fe130fd > > > > > > Merge branch 'for-linus' of > git://git./linux/kernel/git/ecryptfs/ecryptfs-2.6 > > > > * 'for-linus' of > > git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6: > > eCryptfs: Prevent lower dentry from going negative during unlink > > eCryptfs: Propagate vfs_read and vfs_write return codes > > eCryptfs: Validate global auth tok keys > > eCryptfs: Filename encryption only supports password auth tokens > > eCryptfs: Check for O_RDONLY lower inodes when opening lower files > > eCryptfs: Handle unrecognized tag 3 cipher codes > > ecryptfs: improved dependency checking and reporting > > eCryptfs: Fix lockdep-reported AB-BA mutex issue > > ecryptfs: Remove unneeded locking that triggers lockdep false positives > > > 1 config ECRYPT_FS > 2 tristate "eCrypt filesystem layer support (EXPERIMENTAL)" > 3 depends on EXPERIMENTAL && KEYS && NET > 4 select CRYPTO_ECB > 5 select CRYPTO_CBC > 6 help > 7 Encrypted filesystem that operates on the VFS layer. See > 8 to learn more about > 9 eCryptfs. Userspace components are required and can be > 10 obtained from . > 11 > 12 To compile this file system support as a module, choose M here: > the > 13 module will be called ecryptfs. > > ############################################################################## > ######### > /** > 2 * eCryptfs: Linux filesystem encryption layer > 3 * > 4 * Copyright (C) 1997-2004 Erez Zadok > 5 * Copyright (C) 2001-2004 Stony Brook University > 6 * Copyright (C) 2004-2007 International Business Machines Corp. > 7 * Author(s): Michael A. Halcrow