Eric Biggers 290ab23001 ext4: don't read out of bounds when checking for in-inode xattrs
With i_extra_isize equal to or close to the available space, it was
possible for us to read past the end of the inode when trying to detect
or validate in-inode xattrs.  Fix this by checking for the needed extra
space first.

This patch shouldn't have any noticeable effect on
non-corrupted/non-malicious filesystems.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
2016-12-01 14:51:58 -05:00
..
2015-04-02 23:47:42 -04:00
2016-09-30 02:14:56 -04:00
2016-12-01 11:54:18 -05:00
2016-09-05 23:21:43 -04:00
2015-04-02 23:47:42 -04:00
2016-05-13 00:44:16 -04:00
2016-11-22 23:21:58 -05:00
2016-03-09 23:49:05 -05:00
2016-07-31 23:38:36 -04:00