OSDN Git Service

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)
commite5d01196c0428a206f307e9ee5f6842964098ff0
treedf828a46009c763a261cc93003a1af3e3c279295
parent345c0dbf3a30872d9b204db96b5857cd00808cae
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