summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorNihar Chaithanya <niharchaithanya@gmail.com>2024-10-09 01:51:38 +0530
committerDave Kleikamp <dave.kleikamp@oracle.com>2024-10-29 17:43:41 -0500
commita174706ba4dad895c40b1d2277bade16dfacdcd9 (patch)
treed27dd2a19fc2c5b170e20a41b084f35122c73644 /drivers/hwmon
parentd9f9d96136cba8fedd647d2c024342ce090133c2 (diff)
downloadlinux-a174706ba4dad895c40b1d2277bade16dfacdcd9.tar.gz
linux-a174706ba4dad895c40b1d2277bade16dfacdcd9.tar.bz2
linux-a174706ba4dad895c40b1d2277bade16dfacdcd9.zip
jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree
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>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions