• Theodore Ts'o's avatar
    ext4: Fix softlockup caused by illegal i_file_acl value in on-disk inode · 485c26ec
    Theodore Ts'o authored
    If the block containing external extended attributes (which is stored
    in i_file_acl and i_file_acl_high) is larger than the on-disk
    filesystem, the process which tried to access the extended attributes
    will endlessly issue kernel printks complaining that
    "__find_get_block_slow() failed", locking up that CPU until the system
    is forcibly rebooted.
    
    So when we read in the inode, make sure the i_file_acl value is legal,
    and if not, flag the filesystem as being corrupted.
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    485c26ec
inode.c 153 KB