Home
last modified time | relevance | path

Searched hist:"6 ba644b9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/ext4/
H A Dxattr.c6ba644b9 Sat Apr 29 23:01:02 CDT 2017 Eric Biggers <ebiggers@google.com> ext4: remove ext4_xattr_check_entry()

ext4_xattr_check_entry() was redundant with validation of the full xattr
entries list in ext4_xattr_check_entries(), which all callers also did.
ext4_xattr_check_entry() also didn't actually do correct validation;
specifically, it never checked that the value doesn't overlap the xattr
names, nor did it account for padding when checking whether the xattr
value overflows the available space. So remove it to eliminate any
potential confusion.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>