linux/fs/ecryptfs
Eric Sandeen 459e216429 ecryptfs: initialize new auth_tokens before teardown
ecryptfs_destroy_mount_crypt_stat() checks whether each
auth_tok->global_auth_tok_key is nonzero and if so puts that key.  However,
in some early mount error paths nothing has initialized the pointer, and we
try to key_put() garbage.  Running the bad cipher tests in the testsuite
exposes this, and it's happy with the following change.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-17 19:28:15 -08:00
..
crypto.c eCryptfs: release mutex on hash error path 2007-11-05 15:12:33 -08:00
debug.c eCryptfs: update comment and debug statement 2007-10-16 09:43:11 -07:00
dentry.c [PATCH] eCryptfs: fix possible NULL ptr deref in ecryptfs_d_release() 2007-03-16 19:25:05 -07:00
ecryptfs_kernel.h ecryptfs: clean up page flag handling 2007-10-16 09:43:12 -07:00
file.c eCryptfs: remove unused functions and kmem_cache 2007-10-16 09:43:12 -07:00
inode.c ecryptfs: allow lower fs to interpret ATTR_KILL_S*ID 2007-10-18 14:37:21 -07:00
keystore.c ecryptfs: initialize new auth_tokens before teardown 2007-12-17 19:28:15 -08:00
main.c Clean up duplicate includes in fs/ecryptfs/ 2007-10-17 08:42:48 -07:00
Makefile eCryptfs: read_write.c routines 2007-10-16 09:43:12 -07:00
messaging.c eCryptfs: remove assignments in if-statements 2007-10-16 09:43:12 -07:00
mmap.c ecryptfs: clean up page flag handling 2007-10-16 09:43:12 -07:00
netlink.c [NET]: make netlink user -> kernel interface synchronious 2007-10-10 21:15:29 -07:00
read_write.c eCryptfs: cast page->index to loff_t instead of off_t 2007-11-14 18:45:36 -08:00
super.c eCryptfs: initialize persistent lower file on inode create 2007-10-16 09:43:12 -07:00