tmp_suning_uos_patched/fs/ecryptfs
Tyler Hicks b59db43ad4 eCryptfs: Prevent file create race condition
The file creation path prematurely called d_instantiate() and
unlock_new_inode() before the eCryptfs inode info was fully
allocated and initialized and before the eCryptfs metadata was written
to the lower file.

This could result in race conditions in subsequent file and inode
operations leading to unexpected error conditions or a null pointer
dereference while attempting to use the unallocated memory.

https://launchpad.net/bugs/813146

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: stable@kernel.org
2011-11-23 15:39:38 -06:00
..
crypto.c eCryptfs: Prevent file create race condition 2011-11-23 15:39:38 -06:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: Prevent file create race condition 2011-11-23 15:39:38 -06:00
file.c
inode.c eCryptfs: Prevent file create race condition 2011-11-23 15:39:38 -06:00
Kconfig eCryptfs: fix compile error 2011-08-09 13:42:46 -05:00
keystore.c eCryptfs: Fix payload_len unitialized variable warning 2011-08-09 13:42:46 -05:00
kthread.c
main.c Ecryptfs: Add mount option to check uid of device being mounted = expect uid 2011-08-09 23:29:01 -05:00
Makefile
messaging.c
miscdev.c
mmap.c
read_write.c eCryptfs: Return error when lower file pointer is NULL 2011-08-09 13:42:45 -05:00
super.c