linux/drivers/scsi/lpfc
James Smart affbe24429 scsi: lpfc: Fix KASAN slab-out-of-bounds in lpfc_unreg_rpi() routine
In lpfc_offline_prep() an RPI is freed and nlp_rpi set to 0xFFFF before
calling lpfc_unreg_rpi().  Unfortunately, lpfc_unreg_rpi() uses nlp_rpi to
index the sli4_hba.rpi_ids[] array.

In lpfc_offline_prep(), unreg rpi before freeing the rpi.

Link: https://lore.kernel.org/r/20210707184351.67872-12-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-07-18 22:30:36 -04:00
..
lpfc_attr.c scsi: lpfc: vmid: VMID parameter initialization 2021-06-10 10:01:32 -04:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix DMA virtual address ptr assignment in bsg 2021-04-26 22:57:27 -04:00
lpfc_bsg.h scsi: lpfc: Allow applications to issue Common Set Features mailbox command 2020-07-02 23:06:40 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: vmid: Add datastructure for supporting VMID in lpfc 2021-06-10 10:01:32 -04:00
lpfc_ct.c scsi: lpfc: Fix function description comments for vmid routines 2021-07-18 22:30:35 -04:00
lpfc_debugfs.c scsi: lpfc: Fix node handling for Fabric Controller and Domain Controller 2021-05-21 23:23:28 -04:00
lpfc_debugfs.h scsi: lpfc: Make debugfs ktime stats generic for NVME and SCSI 2020-03-29 18:10:58 -04:00
lpfc_disc.h scsi: lpfc: vmid: Add datastructure for supporting VMID in lpfc 2021-06-10 10:01:32 -04:00
lpfc_els.c scsi: lpfc: Remove REG_LOGIN check requirement to issue an ELS RDF 2021-07-18 22:30:36 -04:00
lpfc_hbadisc.c scsi: lpfc: vmid: Add QFPA and VMID timeout check in worker thread 2021-06-10 10:01:33 -04:00
lpfc_hw4.h scsi: lpfc: Improve firmware download logging 2021-07-18 22:30:35 -04:00
lpfc_hw.h scsi: lpfc: vmid: Add datastructure for supporting VMID in lpfc 2021-06-10 10:01:32 -04:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Fix KASAN slab-out-of-bounds in lpfc_unreg_rpi() routine 2021-07-18 22:30:36 -04:00
lpfc_logmsg.h scsi: lpfc: Add an internal trace log buffer 2020-07-02 23:06:49 -04:00
lpfc_mbox.c scsi: lpfc: vmid: Add support for VMID in mailbox command 2021-06-10 10:01:32 -04:00
lpfc_mem.c scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free() 2020-10-26 21:42:38 -04:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix node handling for Fabric Controller and Domain Controller 2021-05-21 23:23:28 -04:00
lpfc_nvme.c scsi: lpfc: Fix non-optimized ERSP handling 2021-05-21 23:23:27 -04:00
lpfc_nvme.h scsi: lpfc: Update changed file copyrights for 2020 2020-11-17 00:43:56 -05:00
lpfc_nvmet.c scsi: lpfc: Fix NMI crash during rmmod due to circular hbalock dependency 2021-04-13 01:39:13 -04:00
lpfc_scsi.c scsi: lpfc: Fix target reset handler from falsely returning FAILURE 2021-07-18 22:30:35 -04:00
lpfc_scsi.h scsi: lpfc: Update 12.2.0.0 file copyrights to 2019 2019-02-05 22:29:50 -05:00
lpfc_sli4.h scsi: lpfc: Improve firmware download logging 2021-07-18 22:30:35 -04:00
lpfc_sli.c scsi: lpfc: Keep NDLP reference until after freeing the IOCB after ELS handling 2021-07-18 22:30:35 -04:00
lpfc_sli.h scsi: lpfc: vmid: Add datastructure for supporting VMID in lpfc 2021-06-10 10:01:32 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 12.8.0.10 2021-05-21 23:23:28 -04:00
lpfc_vport.c scsi: lpfc: Update copyrights for 12.8.0.7 and 12.8.0.8 changes 2021-03-04 17:37:06 -05:00
lpfc_vport.h
lpfc.h scsi: lpfc: Fix NVMe support reporting in log message 2021-07-18 22:30:34 -04:00
Makefile