]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix leaking uninitialized memory in fast-commit journal
authorEric Biggers <ebiggers@google.com>
Sun, 6 Nov 2022 22:48:37 +0000 (14:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:12:00 +0000 (11:12 +0100)
commit47f843812f426afc2324a4e6ded9cb529da8ceb8
treefc6aec837901fd71e2fb0409f539998e481f6777
parentcf73760a4b5d5d7c18f21cfe1f48c6e67f75f8c5
ext4: fix leaking uninitialized memory in fast-commit journal

commit 594bc43b410316d70bb42aeff168837888d96810 upstream.

When space at the end of fast-commit journal blocks is unused, make sure
to zero it out so that uninitialized memory is not leaked to disk.

Fixes: 5c976010f446 ("ext4: main fast-commit commit path")
Cc: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20221106224841.279231-4-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/fast_commit.c