]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix leaking uninitialized memory in compressed clusters
authorEric Biggers <ebiggers@google.com>
Fri, 21 Feb 2020 04:50:37 +0000 (20:50 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 27 Feb 2020 18:16:44 +0000 (10:16 -0800)
commit6055868ffe9b95dbb06ce478ccbfb619f882a7dd
tree31938ca686decc2e92863a1002b7f19d10f9d8f6
parent0303dcdb8d9b1c3cec8a56b9022bb4fb0d38bbd8
f2fs: fix leaking uninitialized memory in compressed clusters

When the compressed data of a cluster doesn't end on a page boundary,
the remainder of the last page must be zeroed in order to avoid leaking
uninitialized memory to disk.

Fixes: 8a0d456ed11c ("f2fs: support data compression")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c