summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorLiu Shixin via Jfs-discussion <jfs-discussion@lists.sourceforge.net>2022-11-03 11:01:59 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-11 13:55:16 +0100
commit1f4a325933f81bc52d484bb77e3cb415b0272921 (patch)
treedefd88789ff77296052104d140e5154bccae3e54 /drivers/soc
parent6cd37f8232f5e169a723e1d5fbe3b2139c2ef763 (diff)
downloadlinux-stable-1f4a325933f81bc52d484bb77e3cb415b0272921.tar.gz
linux-stable-1f4a325933f81bc52d484bb77e3cb415b0272921.tar.bz2
linux-stable-1f4a325933f81bc52d484bb77e3cb415b0272921.zip
fs/jfs: fix shift exponent db_agl2size negative
[ Upstream commit fad376fce0af58deebc5075b8539dc05bf639af3 ] As a shift exponent, db_agl2size can not be less than 0. Add the missing check to fix the shift-out-of-bounds bug reported by syzkaller: UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2227:15 shift exponent -744642816 is negative Reported-by: syzbot+0be96567042453c0c820@syzkaller.appspotmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions