Liu Shixin via Jfs-discussion fad376fce0 fs/jfs: fix shift exponent db_agl2size negative
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>
2023-01-03 10:43:37 -06:00
..
2022-10-19 12:55:42 +02:00
2022-10-20 10:13:27 +02:00
2022-12-11 18:12:18 -08:00
2022-10-19 12:55:42 +02:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2021-04-12 15:04:29 +02:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2022-12-12 20:38:28 -08:00
2021-10-18 14:43:23 -06:00
2021-01-24 14:27:17 +01:00