]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: explicitly null-terminate the xattr list
authorEric Biggers <ebiggers@google.com>
Tue, 7 Nov 2023 04:44:34 +0000 (20:44 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 17 Nov 2023 17:30:54 +0000 (09:30 -0800)
commite26b6d39270f5eab0087453d9b544189a38c8564
tree58f03f7074282cd9aa88a87944b10590223f9833
parent5e4166461cf66a26f925011d90017da74e410747
f2fs: explicitly null-terminate the xattr list

When setting an xattr, explicitly null-terminate the xattr list.  This
eliminates the fragile assumption that the unused xattr space is always
zeroed.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c