commit | 2b833c9aae3323745af3fdc998d8b3255f40511e | [log] [tgz] |
---|---|---|
author | Artemiy Volkov <artemiyv@acm.org> | Mon Nov 30 12:03:52 2015 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Nov 30 12:07:19 2015 -0500 |
tree | 82e2a766b2ff938f721b58c9cb476e8e4598f06f | |
parent | 5cb290e233759f4eba7567f76dbc2f30506725f3 [diff] |
e2fsck: do not read EA header beyond the end of an inode In check_inode_extra_space(), if we attempt to read an EA header at the end of the extra space, in a corrupted filesystem it may result in a read beyond the bounds of the inode. Add a check to prevent this. Reproduced by running ./test_one --valgrind f_write_ea_toobig_extra_isize. Signed-off-by: Artemiy Volkov <artemiyv@acm.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Acked-by: Darrick J. Wong <darrick.wong@oracle.com>