• Andrew Morton's avatar
    [PATCH] ext3 use-after-free bugfix · dd2f1160
    Andrew Morton authored
    If ext3_add_nondir() fails it will do an iput() of the inode.  But we
    continue to run ext3_mark_inode_dirty() against the potentially-freed
    inode.  This oopses when slab poisoning is enabled.
    
    Fix it so that we only run ext3_mark_inode_dirty() if the inode was
    successfully instantiated.
    dd2f1160
namei.c 61.3 KB