summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNikita Zhandarovich <n.zhandarovich@fintech.ru>2025-01-25 07:20:53 +0900
committerAndrew Morton <akpm@linux-foundation.org>2025-02-01 03:53:26 -0800
commit6438ef381c183444f7f9d1de18f22661cba1e946 (patch)
treed4de213518576ae0a48a33371f065930647e3d4b /net/lapb/lapb_timer.c
parent6268f0a166ebcf5a31577036f4c1e613d5ab4fb1 (diff)
downloadlinux-6438ef381c183444f7f9d1de18f22661cba1e946.tar.gz
linux-6438ef381c183444f7f9d1de18f22661cba1e946.tar.bz2
linux-6438ef381c183444f7f9d1de18f22661cba1e946.zip
nilfs2: fix possible int overflows in nilfs_fiemap()
Since nilfs_bmap_lookup_contig() in nilfs_fiemap() calculates its result by being prepared to go through potentially maxblocks == INT_MAX blocks, the value in n may experience an overflow caused by left shift of blkbits. While it is extremely unlikely to occur, play it safe and cast right hand expression to wider type to mitigate the issue. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Link: https://lkml.kernel.org/r/20250124222133.5323-1-konishi.ryusuke@gmail.com Fixes: 622daaff0a89 ("nilfs2: fiemap support") Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions