linux/drivers/scsi/qla2xxx
Bill Kuzeja f233e8c000 scsi: qla2xxx: Move debug messages before sending srb preventing panic
When sending an srb with qla2x00_start_sp, the sp can complete and be freed
by the time we log the debug message saying we sent it. This can cause a
panic if sp gets reused quickly or when running a kernel that poisons freed
memory.

This was partially fixed by (not every case was addressed):

Commit 9fe278f44b ("scsi: qla2xxx: Move log messages before issuing
command to firmware")

Signed-off-by: Bill Kuzeja <william.kuzeja@stratus.com>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-02-19 18:58:34 -05:00
..
Kconfig
Makefile
qla_attr.c scsi: qla2xxx: Fix DMA error when the DIF sg buffer crosses 4GB boundary 2019-01-11 22:08:15 -05:00
qla_bsg.c scsi: qla2xxx: Reject bsg request if chip is down. 2018-09-11 20:28:10 -04:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Add longer window for chip reset 2018-08-02 16:56:18 -04:00
qla_dbg.h
qla_def.h scsi: qla2xxx: Change default ZIO threshold. 2019-02-05 21:41:16 -05:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: no need to check return value of debugfs_create functions 2019-01-29 00:40:54 -05:00
qla_fw.h scsi: qla2xxx: Migrate NVME N2N handling into state machine 2018-08-02 16:56:18 -04:00
qla_gbl.h scsi: qla2xxx: Fix DMA error when the DIF sg buffer crosses 4GB boundary 2019-01-11 22:08:15 -05:00
qla_gs.c scsi: qla2xxx: Move debug messages before sending srb preventing panic 2019-02-19 18:58:34 -05:00
qla_init.c scsi: qla2xxx: Move debug messages before sending srb preventing panic 2019-02-19 18:58:34 -05:00
qla_inline.h scsi: qla2xxx: Add mode control for each physical port 2018-09-11 20:28:09 -04:00
qla_iocb.c scsi: qla2xxx: Fix session cleanup hang 2019-02-05 21:41:16 -05:00
qla_isr.c scsi: qla2xxx: Restore FAWWPN of Physical Port only for loop down 2019-02-05 21:41:16 -05:00
qla_mbx.c scsi: qla2xxx: Fix fw options handle eh_bus_reset() 2019-02-05 21:41:16 -05:00
qla_mid.c scsi: qla2xxx: Enable FC-NVME on NPIV ports 2018-12-12 20:38:13 -05:00
qla_mr.c scsi: qla2xxx: Remove two arguments from qlafx00_error_entry() 2018-10-23 21:32:34 -04:00
qla_mr.h
qla_nvme.c SCSI misc on 20181224 2018-12-28 14:48:06 -08:00
qla_nvme.h scsi: qla2xxx: Migrate NVME N2N handling into state machine 2018-08-02 16:56:18 -04:00
qla_nx2.c scsi: qla2xxx: Improve several kernel-doc headers 2018-10-23 21:32:33 -04:00
qla_nx2.h scsi: qla2xxx: Remove unused symbols 2018-02-12 11:43:24 -05:00
qla_nx.c scsi: qla2xxx: Improve several kernel-doc headers 2018-10-23 21:32:33 -04:00
qla_nx.h
qla_os.c scsi: qla2xxx: Fix session cleanup hang 2019-02-05 21:41:16 -05:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Improve several kernel-doc headers 2018-10-23 21:32:33 -04:00
qla_target.c scsi: qla2xxx: Move debug messages before sending srb preventing panic 2019-02-19 18:58:34 -05:00
qla_target.h scsi: qla2xxx: Fix DMA error when the DIF sg buffer crosses 4GB boundary 2019-01-11 22:08:15 -05:00
qla_tmpl.c scsi: qla2xxx: Silent erroneous message 2018-08-02 16:56:18 -04:00
qla_tmpl.h
qla_version.h scsi: qla2xxx: Update driver version to 10.00.00.13-k 2019-02-05 21:41:16 -05:00
tcm_qla2xxx.c scsi: target/core: Remove the write_pending_status() callback function 2019-02-04 21:23:59 -05:00
tcm_qla2xxx.h scsi: qla2xxx: deadlock by configfs_depend_item 2018-12-19 21:26:38 -05:00