Nihar Chaithanya 491487eedd jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree
[ Upstream commit a174706ba4dad895c40b1d2277bade16dfacdcd9 ]

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: syzbot+412dea214d8baa3f7483@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=412dea214d8baa3f7483
Tested-by: syzbot+412dea214d8baa3f7483@syzkaller.appspotmail.com
Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:54:43 +01:00
..
2022-08-02 12:34:04 -04:00
2024-10-17 15:21:44 +02:00
2021-04-12 15:04:29 +02:00
2022-04-25 14:00:33 -05:00
2024-02-05 20:12:48 +00:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2022-04-25 14:00:33 -05:00
2021-10-18 14:43:23 -06:00
2022-04-17 19:49:59 -06:00