]> git.ipfire.org Git - thirdparty/linux.git/commit
jfs: upper bound check of tree index in dbAllocAG
authorArnaud Lecomte <contact@arnaud-lcm.com>
Wed, 23 Apr 2025 22:13:51 +0000 (00:13 +0200)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 14 Jul 2025 22:08:13 +0000 (17:08 -0500)
commitc214006856ff52a8ff17ed8da52d50601d54f9ce
tree76d7a8f3fb4a97ff66a26f2d34b35a6a36aa170b
parentbc9ff192a6c940d9a26e21a0a82f2667067aaf5f
jfs: upper bound check of tree index in dbAllocAG

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: syzbot+cffd18309153948f3c3e@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=cffd18309153948f3c3e
Tested-by: syzbot+cffd18309153948f3c3e@syzkaller.appspotmail.com
Signed-off-by: Arnaud Lecomte <contact@arnaud-lcm.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dmap.c