aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2024-06-13 15:02:34 +0000
committerTheodore Ts'o <[email protected]>2024-07-09 03:59:37 +0000
commit65121eff3e4c8c90f8126debf3c369228691c591 (patch)
tree59e70a576d62863e77bbd20bc814d40c87d785f2 /fs/jbd2/commit.c
parentext4: don't track ranges in fast_commit if inode has inlined data (diff)
downloadkernel-65121eff3e4c8c90f8126debf3c369228691c591.tar.gz
kernel-65121eff3e4c8c90f8126debf3c369228691c591.zip
ext4: avoid writing unitialized memory to disk in EA inodes
If the extended attribute size is not a multiple of block size, the last block in the EA inode will have uninitialized tail which will get written to disk. We will never expose the data to userspace but still this is not a good practice so just zero out the tail of the block as it isn't going to cause a noticeable performance overhead. Fixes: e50e5129f384 ("ext4: xattr-in-inode support") Reported-by: [email protected] Reported-by: Hugh Dickins <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions