• Tyler Hicks's avatar
    eCryptfs: Prevent file create race condition · b59db43a
    Tyler Hicks authored
    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/813146Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
    Cc: stable@kernel.org
    b59db43a
inode.c 33.4 KB