]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: fix to avoid overflow while left shift operation
authorChao Yu <chao@kernel.org>
Tue, 5 Aug 2025 06:29:10 +0000 (14:29 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Aug 2025 17:03:54 +0000 (17:03 +0000)
commit0fe1c6bec54ea68ed8c987b3890f2296364e77bb
tree3cfc9d31550e1f10e20902dcb5c13dbf67e9da39
parent1bd119da0b93d6d61891edf2b9d036800aba687f
f2fs: fix to avoid overflow while left shift operation

Should cast type of folio->index from pgoff_t to loff_t to avoid overflow
while left shift operation.

Fixes: 3265d3db1f16 ("f2fs: support partial truncation on compressed inode")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c