• Eric Biggers's avatar
    ext4: remove ext4_xattr_check_entry() · 6ba644b9
    Eric Biggers authored
    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: default avatarEric Biggers <ebiggers@google.com>
    Reviewed-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    6ba644b9
xattr.c 47.7 KB