]> www.infradead.org Git - users/jedix/linux-maple.git/commit
jfs: fix array-index-out-of-bounds in jfs_readdir
authorGhanshyam Agrawal <ghanshyam1898@gmail.com>
Tue, 1 Oct 2024 06:05:47 +0000 (11:35 +0530)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 29 Oct 2024 22:03:41 +0000 (17:03 -0500)
commit839f102efb168f02dfdd46717b7c6dddb26b015e
tree70f40f790d35d38e54056a0b6c881409c9e9d62e
parenta5f5e4698f8abbb25fe4959814093fb5bfa1aa9d
jfs: fix array-index-out-of-bounds in jfs_readdir

The stbl might contain some invalid values. Added a check to
return error code in that case.

Reported-by: syzbot+0315f8fe99120601ba88@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=0315f8fe99120601ba88
Signed-off-by: Ghanshyam Agrawal <ghanshyam1898@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_dtree.c