linux/drivers/scsi/qla2xxx
Bart Van Assche 57fec9f24e scsi: qla2xxx: Fix a Coverity complaint in qla2100_fw_dump()
'cnt' can exceed the size of the risc_ram[] array. Prevent that Coverity
complains by rewriting an address calculation expression. This patch fixes
the following Coverity complaint:

CID 337803 (#1 of 1): Out-of-bounds read (OVERRUN)
109. overrun-local: Overrunning array of 122880 bytes at byte offset 122880
by dereferencing pointer &fw->risc_ram[cnt].

Link: https://lore.kernel.org/r/20200629225454.22863-8-bvanassche@acm.org
Cc: Nilesh Javali <njavali@marvell.com>
Cc: Quinn Tran <qutran@marvell.com>
Cc: Himanshu Madhani <himanshu.madhani@oracle.com>
Cc: Martin Wilck <mwilck@suse.com>
Cc: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-06-30 23:12:23 -04:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
qla_attr.c SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qla_bsg.c scsi: qla2xxx: Remove a superfluous cast 2020-06-30 23:12:20 -04:00
qla_bsg.h scsi: qla2xxx: Add 28xx flash primary/secondary status/image mechanism 2019-03-19 12:22:55 -04:00
qla_dbg.c scsi: qla2xxx: Fix a Coverity complaint in qla2100_fw_dump() 2020-06-30 23:12:23 -04:00
qla_dbg.h scsi: qla2xxx: Fix a Coverity complaint in qla2100_fw_dump() 2020-06-30 23:12:23 -04:00
qla_def.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: fix FW resource count values 2020-02-28 20:32:31 -05:00
qla_dsd.h scsi: qla2xxx: Include the <asm/unaligned.h> header file from qla_dsd.h 2019-08-12 21:34:04 -04:00
qla_fw.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_gbl.h scsi: qla2xxx: Simplify the functions for dumping firmware 2020-05-19 21:43:04 -04:00
qla_gs.c scsi: qla2xxx: Fix FCP-SCSI FC4 flag passing error 2020-02-28 20:32:28 -05:00
qla_init.c SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qla_inline.h scsi: Fix trivial spelling 2020-06-15 23:28:04 -04:00
qla_iocb.c scsi: qla2xxx: Make __qla2x00_alloc_iocbs() initialize 32 bits of request_t.handle 2020-06-30 23:12:22 -04:00
qla_isr.c SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qla_mbx.c SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qla_mid.c scsi: qla2xxx: Cast explicitly to uint16_t / uint32_t 2020-05-19 21:43:19 -04:00
qla_mr.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_mr.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_nvme.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_nvme.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_nx2.c scsi: qla2xxx: Cast explicitly to uint16_t / uint32_t 2020-05-19 21:43:19 -04:00
qla_nx2.h
qla_nx.c scsi: qla2xxx: Initialize 'n' before using it 2020-06-30 23:12:20 -04:00
qla_nx.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_os.c SCSI misc on 20200605 2020-06-05 15:11:50 -07:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_target.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_target.h scsi: qla2xxx: Remove the __packed annotation from struct fcp_hdr and fcp_hdr_le 2020-06-30 23:12:19 -04:00
qla_tmpl.c scsi: qla2xxx: Fix endianness annotations in source files 2020-05-19 21:43:28 -04:00
qla_tmpl.h scsi: qla2xxx: Fix endianness annotations in header files 2020-05-19 21:43:24 -04:00
qla_version.h scsi: qla2xxx: Update driver version to 10.01.00.25-k 2020-02-28 20:32:37 -05:00
tcm_qla2xxx.c scsi: qla2xxx: Check the size of struct fcp_hdr at compile time 2020-06-30 23:12:18 -04:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00