diff options
author | Darrick J. Wong <[email protected]> | 2014-09-16 14:34:59 -0400 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2014-09-16 14:34:59 -0400 |
commit | a0626e75954078cfacddb00a4545dde821170bc5 (patch) | |
tree | 61aeb6747c5fc7016ac54cc704fb6d9b1833674d /net/lapb/lapb_subr.c | |
parent | 684de5748660e16e185754697ac0afa9e18297f6 (diff) |
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 <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions