1
0
Fork 0
alistair23-linux/drivers/scsi/lpfc
James Smart 82af6e44b7 scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free()
commit e5785d3ec3 upstream.

Commit 9816ef6ecb ("scsi: lpfc: Use after free in lpfc_rq_buf_free()")
was made to correct a use after free condition in lpfc_rq_buf_free().
Unfortunately, a subsequent patch cut on a tree without the fix
inadvertently reverted the fix.

Put the fix back: Move the freeing of the rqb_entry to after the print
function that references it.

Link: https://lore.kernel.org/r/20201020202719.54726-4-james.smart@broadcom.com
Fixes: 411de511c6 ("scsi: lpfc: Fix RQ empty firmware trap")
Cc: <stable@vger.kernel.org> # v4.17+
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:51:44 +01:00
..
Makefile
lpfc.h scsi: lpfc: Fix broken Credit Recovery after driver load 2020-04-17 10:50:24 +02:00
lpfc_attr.c scsi: lpfc: Fix kernel crash at lpfc_nvme_info_show during remote port bounce 2020-10-01 13:17:15 +02:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix memory leak on lpfc_bsg_write_ebuf_set func 2020-01-09 10:19:44 +01:00
lpfc_bsg.h scsi: lpfc: Update Copyright in driver version 2019-03-19 13:15:10 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: fix inlining of lpfc_sli4_cleanup_poll_list() 2020-04-17 10:50:26 +02:00
lpfc_ct.c scsi: lpfc: Fix coverity errors in fmdi attribute handling 2020-10-01 13:17:33 +02:00
lpfc_debugfs.c scsi: lpfc: Remove bg debugfs buffers 2019-08-29 18:08:58 -04:00
lpfc_debugfs.h scsi: lpfc: Merge per-protocol WQ/CQ pairs into single per-cpu pair 2019-08-19 22:41:12 -04:00
lpfc_disc.h scsi: lpfc: Add NVMe sequence level error recovery support 2019-08-19 22:41:12 -04:00
lpfc_els.c scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt discovery 2020-09-23 12:40:35 +02:00
lpfc_hbadisc.c scsi: lpfc: Fix initial FLOGI failure due to BBSCN not supported 2020-10-01 13:18:22 +02:00
lpfc_hw.h scsi: lpfc: Fix coverity errors in fmdi attribute handling 2020-10-01 13:17:33 +02:00
lpfc_hw4.h scsi: lpfc: Add NVMe sequence level error recovery support 2019-08-19 22:41:12 -04:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Fix release of hwq to clear the eq relationship 2020-10-01 13:17:32 +02:00
lpfc_logmsg.h
lpfc_mbox.c SCSI misc on 20190306 2019-03-09 16:53:47 -08:00
lpfc_mem.c scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free() 2020-12-30 11:51:44 +01:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix incomplete NVME discovery when target 2020-10-01 13:17:26 +02:00
lpfc_nvme.c scsi: lpfc: Fix crash in target side cable pulls hitting WAIT_FOR_UNREG 2020-04-29 16:32:58 +02:00
lpfc_nvme.h SCSI misc on 20190306 2019-03-09 16:53:47 -08:00
lpfc_nvmet.c scsi: lpfc: nvmet: Avoid hang / use-after-free again when destroying targetport 2020-08-21 13:05:35 +02:00
lpfc_nvmet.h scsi: lpfc: Fix nvmet handling of received ABTS for unmapped frames 2019-06-18 19:46:21 -04:00
lpfc_scsi.c scsi: lpfc: Fix lpfc_io_buf resource leak in lpfc_get_scsi_buf_s4 error path 2020-04-17 10:50:19 +02:00
lpfc_scsi.h scsi: lpfc: Update 12.2.0.0 file copyrights to 2019 2019-02-05 22:29:50 -05:00
lpfc_sli.c scsi: lpfc: Fix invalid sleeping context in lpfc_sli4_nvmet_alloc() 2020-12-30 11:51:44 +01:00
lpfc_sli.h scsi: lpfc: Fix bad ndlp ptr in xri aborted handling 2019-12-17 19:55:26 +01:00
lpfc_sli4.h scsi: lpfc: Add registration for CPU Offline/Online events 2020-04-17 10:50:24 +02:00
lpfc_version.h scsi: lpfc: Update lpfc version to 12.4.0.0 2019-08-19 22:41:12 -04:00
lpfc_vport.c scsi: lpfc: Fix shost refcount mismatch when deleting vport 2020-09-03 11:26:44 +02:00
lpfc_vport.h