]> www.infradead.org Git - users/jedix/linux-maple.git/commit
jfs: fix shift-out-of-bounds in dbSplit
authorGhanshyam Agrawal <ghanshyam1898@gmail.com>
Mon, 30 Sep 2024 08:12:18 +0000 (13:42 +0530)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 29 Oct 2024 21:53:18 +0000 (16:53 -0500)
commita5f5e4698f8abbb25fe4959814093fb5bfa1aa9d
treead22c691338220732087cc7943d9daaf207e8113
parentca84a2c9be482836b86d780244f0357e5a778c46
jfs: fix shift-out-of-bounds in dbSplit

When dmt_budmin is less than zero, it causes errors
in the later stages. Added a check to return an error beforehand
in dbAllocCtl itself.

Reported-by: syzbot+b5ca8a249162c4b9a7d0@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=b5ca8a249162c4b9a7d0
Signed-off-by: Ghanshyam Agrawal <ghanshyam1898@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dmap.c