Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 81af4b34 authored by Aditya Dutt's avatar Aditya Dutt Committed by Greg Kroah-Hartman
Browse files

jfs: fix array-index-out-of-bounds read in add_missing_indices



[ Upstream commit 5dff41a86377563f7a2b968aae00d25b4ceb37c9 ]

stbl is s8 but it must contain offsets into slot which can go from 0 to
127.

Added a bound check for that error and return -EIO if the check fails.
Also make jfs_readdir return with error if add_missing_indices returns
with an error.

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


Signed-off-by: default avatarAditya Dutt <duttaditya18@gmail.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9a3b711f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment