]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jfs: fix array-index-out-of-bounds in diAlloc
authorManas Ghandat <ghandatmanas@gmail.com>
Wed, 4 Oct 2023 07:40:40 +0000 (13:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:18 +0000 (16:56 +0000)
commit64f062baf202b82f54987a3f614a6c8f3e466641
treed6301d793afadf2bd5177b6b7e6f1a935e3099ad
parentda3da5e1e6f71c21d8e6149d7076d936ef5d4cb9
jfs: fix array-index-out-of-bounds in diAlloc

[ Upstream commit 05d9ea1ceb62a55af6727a69269a4fd310edf483 ]

Currently there is not check against the agno of the iag while
allocating new inodes to avoid fragmentation problem. Added the check
which is required.

Reported-by: syzbot+79d792676d8ac050949f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=79d792676d8ac050949f
Signed-off-by: Manas Ghandat <ghandatmanas@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jfs/jfs_imap.c