diff options
author | Eric Biggers <ebiggers@google.com> | 2016-12-01 14:51:58 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-12-01 14:51:58 -0500 |
commit | 290ab230016f187c3551d8380ea742889276d03a (patch) | |
tree | 051138c85bb6f7d8ac52513ecfb510832cee9220 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
parent | 2dc8d9e19b0d891b0d3675b5ac82be9be3875e36 (diff) |
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>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions