Commit 1467a758 authored by Arnaud Lecomte's avatar Arnaud Lecomte Committed by Greg Kroah-Hartman
Browse files

jfs: upper bound check of tree index in dbAllocAG



[ Upstream commit c2140068 ]

When computing the tree index in dbAllocAG, we never check if we are
out of bounds realative to the size of the stree.
This could happen in a scenario where the filesystem metadata are
corrupted.

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


Tested-by: default avatar <syzbot+cffd18309153948f3c3e@syzkaller.appspotmail.com>
Signed-off-by: default avatarArnaud Lecomte <contact@arnaud-lcm.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9ad054cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment