linux-stable-rt/fs/ecryptfs
Michael Halcrow caeeeecfda eCryptfs: fix dentry handling on create error, unlink, and inode destroy
This patch corrects some erroneous dentry handling in eCryptfs.

If there is a problem creating the lower file, then there is nothing that
the persistent lower file can do to really help us.  This patch makes a
vfs_create() failure in the lower filesystem always lead to an
unconditional do_create failure in eCryptfs.

Under certain sequences of operations, the eCryptfs dentry can remain in
the dcache after an unlink.  This patch calls d_drop() on the eCryptfs
dentry to correct this.

eCryptfs has no business calling d_delete() directly on a lower
filesystem's dentry.  This patch removes the call to d_delete() on the
lower persistent file's dentry in ecryptfs_destroy_inode().

(Thanks to David Kleikamp, Eric Sandeen, and Jeff Moyer for helping
identify and resolve this issue)

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: Eric Sandeen <sandeen@redhat.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-08 16:10:36 -08:00
..
Makefile
crypto.c ecryptfs: fix unlocking in error paths 2007-12-23 12:54:37 -08:00
debug.c
dentry.c
ecryptfs_kernel.h
file.c
inode.c eCryptfs: fix dentry handling on create error, unlink, and inode destroy 2008-01-08 16:10:36 -08:00
keystore.c ecryptfs: initialize new auth_tokens before teardown 2007-12-17 19:28:15 -08:00
main.c ecryptfs: redo dget,mntget on dentry_open failure 2007-12-23 12:54:37 -08:00
messaging.c ecryptfs: fix unlocking in error paths 2007-12-23 12:54:37 -08:00
mmap.c ecryptfs: fix fsx data corruption problems 2007-12-17 19:28:17 -08:00
netlink.c
read_write.c ecryptfs: fix fsx data corruption problems 2007-12-17 19:28:17 -08:00
super.c eCryptfs: fix dentry handling on create error, unlink, and inode destroy 2008-01-08 16:10:36 -08:00