• Theodore Ts'o's avatar
    ext4: add ext4_iget_normal() which is to be used for dir tree lookups · f4bb2981
    Theodore Ts'o authored
    If there is a corrupted file system which has directory entries that
    point at reserved, metadata inodes, prohibit them from being used by
    treating them the same way we treat Boot Loader inodes --- that is,
    mark them to be bad inodes.  This prohibits them from being opened,
    deleted, or modified via chmod, chown, utimes, etc.
    
    In particular, this prevents a corrupted file system which has a
    directory entry which points at the journal inode from being deleted
    and its blocks released, after which point Much Hilarity Ensues.
    Reported-by: default avatarSami Liedes <sami.liedes@iki.fi>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    f4bb2981
ext4.h 100 KB