ext4: Fix softlockup caused by illegal i_file_acl value in on-disk inode
commit8c30ec0c2f7a507e960bba4113e59f31fa4a42fc
authorTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jun 2009 12:07:54 +0000 (2 08:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:40:35 +0000 (15 09:40 -0700)
tree9992278a82c758cc1715ecf08d312e37692d456a
parent54eefd82c70ebe77f72b7891b7e1538284948c33
ext4: Fix softlockup caused by illegal i_file_acl value in on-disk inode

(cherry picked from commit 485c26ec70f823f2a9cf45982b724893e53a859e)

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: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c