Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b15000bc authored by Nihar Chaithanya's avatar Nihar Chaithanya Committed by Greg Kroah-Hartman
Browse files

jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree



[ Upstream commit a174706ba4dad895c40b1d2277bade16dfacdcd9 ]

When the value of lp is 0 at the beginning of the for loop, it will
become negative in the next assignment and we should bail out.

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


Tested-by: default avatar <syzbot+412dea214d8baa3f7483@syzkaller.appspotmail.com>
Signed-off-by: default avatarNihar Chaithanya <niharchaithanya@gmail.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b62f41ae
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