linux/fs/ecryptfs
Michael Halcrow 64ee4808a7 eCryptfs: ecryptfs_setattr() bugfix
There is another bug recently introduced into the ecryptfs_setattr()
function in 2.6.22.  eCryptfs will attempt to treat special files like
regular eCryptfs files on chmod, chown, and so forth.  This leads to a NULL
pointer dereference.  This patch validates that the file is a regular file
before proceeding with operations related to the inode's crypt_stat.

Thanks to Ryusuke Konishi for finding this bug and suggesting the fix.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:43 -07:00
..
Makefile [PATCH] eCryptfs: Public key; packet management 2007-02-12 09:48:36 -08:00
crypto.c [PATCH] eCryptfs: open-code flag checking and manipulation 2007-02-12 09:48:37 -08:00
debug.c [PATCH] eCryptfs: open-code flag checking and manipulation 2007-02-12 09:48:37 -08: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: fix write zeros behavior 2007-06-28 11:34:53 -07:00
file.c sendfile: remove .sendfile from filesystems that use generic_file_sendfile() 2007-07-10 08:04:13 +02:00
inode.c eCryptfs: ecryptfs_setattr() bugfix 2007-07-19 10:04:43 -07:00
keystore.c [PATCH] eCryptfs: Reduce stack usage in ecryptfs_generate_key_packet_set() 2007-02-16 08:14:01 -08:00
main.c sysfs: kill unnecessary attribute->owner 2007-07-11 16:09:06 -07:00
messaging.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
mmap.c zero out last page for llseek/write 2007-06-28 11:34:53 -07:00
netlink.c [NETLINK]: Switch cb_lock spinlock to mutex and allow to override it 2007-04-25 22:29:03 -07:00
super.c [PATCH] Mark struct super_operations const 2007-02-12 09:48:47 -08:00