linux_dsm_epyc7002/drivers/message/fusion
Dan Carpenter a7043e9529 scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo()
My static checker complains about an out of bounds read:

    drivers/message/fusion/mptctl.c:2786 mptctl_hp_targetinfo()
    error: buffer overflow 'hd->sel_timeout' 255 <= u32max.

It's true that we probably should have a bounds check here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-01-30 21:32:06 -05:00
..
lsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mptbase.c scsi: mptfusion: use strlcpy() instead of strncpy() 2018-01-08 21:53:56 -05:00
mptbase.h
mptctl.c scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-01-30 21:32:06 -05:00
mptctl.h
mptdebug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mptfc.c scsi: mptfc: Do not call fc_block_scsi_eh() on host reset 2017-08-25 17:21:10 -04:00
mptlan.c
mptlan.h
mptsas.c scsi: mptsas: remove duplicated assignment to pointer head 2018-01-17 01:19:38 -05:00
mptsas.h
mptscsih.c
mptscsih.h
mptspi.c