Skip to content
Commit b59db43a authored by Tyler Hicks's avatar Tyler Hicks
Browse files

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: default avatarTyler Hicks <tyhicks@canonical.com>
Cc: stable@kernel.org
parent 6fe4c6d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment