Skip to content
Commit 7063b802 authored by Pei Li's avatar Pei Li Committed by Dave Kleikamp
Browse files

jfs: Fix shift-out-of-bounds in dbDiscardAG



When searching for the next smaller log2 block, BLKSTOL2() returned 0,
causing shift exponent -1 to be negative.

This patch fixes the issue by exiting the loop directly when negative
shift is found.

Reported-by: default avatar <syzbot+61be3359d2ee3467e7e4@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=61be3359d2ee3467e7e4


Signed-off-by: default avatarPei Li <peili.dev@gmail.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent f73f969b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment