• T
    eCryptfs: Prevent file create race condition · b59db43a
    Tyler Hicks 提交于
    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: NTyler Hicks <tyhicks@canonical.com>
    Cc: stable@kernel.org
    b59db43a
ecryptfs_kernel.h 24.2 KB