]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: ignore e_value_offs for xattrs with value-in-ea-inode
authorTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 04:37:36 +0000 (00:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Apr 2019 04:37:36 +0000 (00:37 -0400)
commit228e33b1585dbe2e5074751b03d4811221e9c358
treedf828a46009c763a261cc93003a1af3e3c279295
parentaf3623a536a38e7cc6851e39f73e51b70c0cbefd
ext4: ignore e_value_offs for xattrs with value-in-ea-inode

In other places in fs/ext4/xattr.c, if e_value_inum is non-zero, the
code ignores the value in e_value_offs.  The e_value_offs *should* be
zero, but we shouldn't depend upon it, since it might not be true in a
corrupted/fuzzed file system.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202897
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202877
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/xattr.c