Files
linux-stable-mirror/fs
Chao YuandGreg Kroah-Hartman ef49378864 f2fs: fix to avoid overflow while left shift operation
[ Upstream commit 0fe1c6bec5 ]

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

Fixes: 3265d3db1f ("f2fs: support partial truncation on compressed inode")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
[ Modification: Using rpages[i]->index instead of folio->index due to
it was changed since commit:1cda5bc0b2fe ("f2fs: Use a folio in
f2fs_truncate_partial_cluster()") on 6.14 ]
Signed-off-by: Rajani Kantha <681739313@139.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-24 10:30:11 +01:00
..
2025-11-24 10:29:45 +01:00
2024-10-22 15:46:20 +02:00
2024-08-19 06:04:25 +02:00
2025-03-22 12:50:41 -07:00
2025-10-29 14:06:59 +01:00
2024-08-19 06:04:25 +02:00
2025-06-27 11:08:57 +01:00