diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2014-09-16 14:34:59 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-09-16 14:34:59 -0400 |
commit | a0626e75954078cfacddb00a4545dde821170bc5 (patch) | |
tree | 61aeb6747c5fc7016ac54cc704fb6d9b1833674d /fs/jbd2 | |
parent | 684de5748660e16e185754697ac0afa9e18297f6 (diff) | |
download | linux-a0626e75954078cfacddb00a4545dde821170bc5.tar.bz2 |
ext4: check EA value offset when loading
When loading extended attributes, check each entry's value offset to
make sure it doesn't collide with the entries.
Without this check it is easy to crash the kernel by mounting a
malicious FS containing a file with an EA wherein e_value_offs = 0 and
e_value_size > 0 and then deleting the EA, which corrupts the name
list.
(See the f_ea_value_crash test's FS image in e2fsprogs for an example.)
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions