]> git.karo-electronics.de Git - linux-beck.git/commit
ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 22 Mar 2016 20:13:15 +0000 (16:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 22 Mar 2016 20:13:15 +0000 (16:13 -0400)
commit9e92f48c34eb2b9af9d12f892e2fe1fce5e8ce35
treefd069c88e42791d7ed0ab087bc5389b98b574458
parent243d50678583100855862bc084b8b307eea67f68
ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea()

We aren't checking to see if the in-inode extended attribute is
corrupted before we try to expand the inode's extra isize fields.

This can lead to potential crashes caused by the BUG_ON() check in
ext4_xattr_shift_entries().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/xattr.c