jfs: fix shift-out-of-bounds in dbJoin
authorManas Ghandat <ghandatmanas@gmail.com>
Wed, 11 Oct 2023 14:39:37 +0000 (20:09 +0530)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 21 Nov 2023 21:26:33 +0000 (15:26 -0600)
commitcca974daeb6c43ea971f8ceff5a7080d7d49ee30
tree13ac6512fd8633e1f7a736b59b22a24b6af1807a
parente0e1958f4c365e380b17ccb35617345b31ef7bf3
jfs: fix shift-out-of-bounds in dbJoin

Currently while joining the leaf in a buddy system there is shift out
of bound error in calculation of BUDSIZE. Added the required check
to the BUDSIZE and fixed the documentation as well.

Reported-by: syzbot+411debe54d318eaed386@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=411debe54d318eaed386
Signed-off-by: Manas Ghandat <ghandatmanas@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dmap.c