linux/fs/ecryptfs
Tyler Hicks 1984c23f9e eCryptfs: Clear buffer before reading in metadata xattr
We initially read in the first PAGE_CACHE_SIZE of a file to if the
eCryptfs header marker can be found.  If it isn't found and
ecryptfs_xattr_metadata was given as a mount option, then the
user.ecryptfs xattr is read into the same buffer.  Since the data from
the first page of the file wasn't cleared, it is possible that we think
we've found a second tag 3 or tag 1 packet and then error out after the
packet contents aren't as expected.  This patch clears the buffer before
filling it with metadata from the user.ecryptfs xattr.

Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
2010-03-23 12:31:09 -05:00
..
Kconfig eCryptfs: Remove Kconfig NET dependency and select MD5 2009-10-08 11:31:36 -05:00
Makefile
crypto.c eCryptfs: Clear buffer before reading in metadata xattr 2010-03-23 12:31:09 -05:00
debug.c
dentry.c fsstack/ecryptfs: remove unused get_nlinks param to fsstack_copy_attr_all 2009-12-17 10:57:30 -05:00
ecryptfs_kernel.h eCryptfs: Rename ecryptfs_crypt_stat.num_header_bytes_at_front 2010-03-23 12:30:41 -05:00
file.c ecryptfs: Eliminate useless code 2010-01-19 22:36:05 -06:00
inode.c eCryptfs: Clear buffer before reading in metadata xattr 2010-03-23 12:31:09 -05:00
keystore.c eCryptfs: Validate global auth tok keys 2009-09-23 09:10:32 -05:00
kthread.c eCryptfs: Check for O_RDONLY lower inodes when opening lower files 2009-09-23 09:10:32 -05:00
main.c ecryptfs: fix interpose/interpolate typos in comments 2010-01-19 22:36:03 -06:00
messaging.c
miscdev.c
mmap.c eCryptfs: Rename ecryptfs_crypt_stat.num_header_bytes_at_front 2010-03-23 12:30:41 -05:00
read_write.c eCryptfs: Propagate vfs_read and vfs_write return codes 2009-09-23 09:10:34 -05:00
super.c ecryptfs: Remove unneeded locking that triggers lockdep false positives 2009-09-23 09:10:30 -05:00