summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorJuntong Deng <juntong.deng@outlook.com>2023-10-04 02:06:41 +0800
committerDave Kleikamp <dave.kleikamp@oracle.com>2023-10-03 18:41:12 -0500
commit64933ab7b04881c6c18b21ff206c12278341c72e (patch)
tree78c9d2999a3af7dc24cebd133bd71c5f8b248744 /drivers/pci/controller/dwc/pci-layerscape.c
parent525b861a008143048535011f3816d407940f4bfa (diff)
fs/jfs: Add validity check for db_maxag and db_agpref
Both db_maxag and db_agpref are used as the index of the db_agfree array, but there is currently no validity check for db_maxag and db_agpref, which can lead to errors. The following is related bug reported by Syzbot: UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:639:20 index 7936 is out of range for type 'atomic_t[128]' Add checking that the values of db_maxag and db_agpref are valid indexes for the db_agfree array. Reported-by: syzbot+38e876a8aa44b7115c76@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=38e876a8aa44b7115c76 Signed-off-by: Juntong Deng <juntong.deng@outlook.com> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions