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
..
2007-07-16 16:03:25 -05:00
2007-07-16 09:05:43 -07:00
2007-05-17 05:23:04 -07:00
2007-05-08 11:14:59 -07:00
2007-07-17 10:23:06 -07:00
2007-07-18 09:09:15 -04:00
2007-07-16 09:05:41 -07:00
2007-07-19 10:04:41 -07:00
2007-07-16 09:05:48 -07:00
2007-07-19 10:04:41 -07:00
2007-07-16 09:05:52 -07:00
2007-07-19 10:04:41 -07:00
2007-05-17 05:23:04 -07:00
2007-05-17 05:23:04 -07:00
2007-07-16 09:05:50 -07:00
2007-07-19 10:04:41 -07:00
2007-07-16 09:05:47 -07:00
2007-05-21 09:18:19 -07:00
2007-07-10 08:03:34 +02:00
2007-07-16 09:05:50 -07:00
2007-07-19 10:04:43 -07:00
2007-05-18 13:09:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-23 20:14:13 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:09 -07:00
2007-07-16 09:05:48 -07:00
2007-07-18 08:50:18 -04:00
2007-05-09 06:44:57 +02:00
2007-07-18 19:17:19 -04:00
2007-05-11 08:29:36 -07:00
2007-07-10 08:04:16 +02:00
2007-07-10 08:04:15 +02:00
2007-05-09 07:10:02 +02:00
2007-07-16 09:05:46 -07:00
2007-05-18 13:09:34 -07:00