Commit 2021b260 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Jiri Slaby
Browse files

ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea()



commit 9e92f48c upstream.

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().

[js] use EIO instead of undefined EFSCORRUPTED in 3.12

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent dafd35de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment