linux/drivers/scsi/lpfc
James Smart b0e830125b scsi: lpfc: devloss timeout race condition caused null pointer reference
A race condition between the context of devloss timeout handler and I/O
completion caused devloss timeout handler de-referencing pointer that had
been released.

Added the check in lpfc_sli_validate_fcp_iocb() on LPFC_IO_ON_TXCMPLQ to
capture the race condition of I/O completion and devloss timeout handler
attemption for aborting the I/O. Also, added check on lpfc_cmd->rdata
pointer before de-referenceing lpfc_cmd->rdata->pnode.

Also, added protection in lpfc_sli_abort_iocb() routine on driver performed
FCP I/O FLUSHING already under way before proceeding to aborting I/Os.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-07-10 22:15:09 -04:00
..
lpfc_attr.c scsi: lpfc: Make PBDE optimizations configurable 2018-07-10 22:15:09 -04:00
lpfc_attr.h scsi: lpfc: Add Buffer to Buffer credit recovery support 2017-08-24 22:29:43 -04:00
lpfc_bsg.c scsi: lpfc: fix spelling mistakes: "mabilbox" and "maibox" 2018-05-08 01:26:44 -04:00
lpfc_bsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_compat.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_crtn.h scsi: lpfc: Streamline NVME Targe6t WQE setup 2018-03-12 21:55:23 -04:00
lpfc_ct.c scsi: lpfc: Correct missing remoteport registration during link bounces 2018-04-18 19:34:06 -04:00
lpfc_debugfs.c scsi: lpfc: Comment cleanup regarding Broadcom copyright header 2018-05-08 01:03:16 -04:00
lpfc_debugfs.h scsi: lpfc: Change Copyright of 12.0.0.0 modified files to 2018 2018-02-22 20:39:30 -05:00
lpfc_disc.h scsi: lpfc: Correct driver deregistrations with host nvme transport 2017-12-04 20:32:54 -05:00
lpfc_els.c scsi: lpfc: Support duration field in Link Cable Beacon V1 command 2018-07-10 22:15:09 -04:00
lpfc_hbadisc.c scsi: lpfc: Fix MDS diagnostics failure (Rx < Tx) 2018-05-28 22:40:32 -04:00
lpfc_hw4.h scsi: lpfc: Support duration field in Link Cable Beacon V1 command 2018-07-10 22:15:09 -04:00
lpfc_hw.h scsi: lpfc: Support duration field in Link Cable Beacon V1 command 2018-07-10 22:15:09 -04:00
lpfc_ids.h scsi: lpfc: Change Copyright of 12.0.0.0 modified files to 2018 2018-02-22 20:39:30 -05:00
lpfc_init.c scsi: lpfc: Support duration field in Link Cable Beacon V1 command 2018-07-10 22:15:09 -04:00
lpfc_logmsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_mbox.c scsi: lpfc: Add 64G link speed support 2018-02-22 20:39:29 -05:00
lpfc_mem.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
lpfc_nl.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_nportdisc.c scsi: lpfc: correct oversubscription of nvme io requests for an adapter 2018-05-28 22:40:33 -04:00
lpfc_nvme.c scsi: lpfc: Make PBDE optimizations configurable 2018-07-10 22:15:09 -04:00
lpfc_nvme.h scsi: lpfc: Comment cleanup regarding Broadcom copyright header 2018-05-08 01:03:16 -04:00
lpfc_nvmet.c scsi: lpfc: Fix NVME Target crash in defer rcv logic 2018-07-10 22:15:09 -04:00
lpfc_nvmet.h scsi: lpfc: Enlarge nvmet asynchronous receive buffer counts 2018-04-18 19:34:02 -04:00
lpfc_scsi.c scsi: lpfc: devloss timeout race condition caused null pointer reference 2018-07-10 22:15:09 -04:00
lpfc_scsi.h scsi: lpfc: Comment cleanup regarding Broadcom copyright header 2018-05-08 01:03:16 -04:00
lpfc_sli4.h scsi: lpfc: Support duration field in Link Cable Beacon V1 command 2018-07-10 22:15:09 -04:00
lpfc_sli.c scsi: lpfc: devloss timeout race condition caused null pointer reference 2018-07-10 22:15:09 -04:00
lpfc_sli.h scsi: lpfc: use monotonic timestamps for statistics 2018-06-26 12:00:27 -04:00
lpfc_version.h scsi: lpfc: update driver version to 12.0.0.4 2018-05-28 22:40:33 -04:00
lpfc_vport.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
lpfc_vport.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc.h scsi: lpfc: Make PBDE optimizations configurable 2018-07-10 22:15:09 -04:00
Makefile scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00