Skip to content
Snippets Groups Projects
Commit 368a5331 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 a174706b ]

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 97e69359
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment