+1
−0
+15
−0
Loading
mainline inclusion from mainline-v6.12-rc1 commit 2be1d4f11944cd6283cb97268b3e17c4424945ca category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYR9Z CVE: CVE-2024-49891 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2be1d4f11944cd6283cb97268b3e17c4424945ca -------------------------------- When the HBA is undergoing a reset or is handling an errata event, NULL ptr dereference crashes may occur in routines such as lpfc_sli_flush_io_rings(), lpfc_dev_loss_tmo_callbk(), or lpfc_abort_handler(). Add NULL ptr checks before dereferencing hdwq pointers that may have been freed due to operations colliding with a reset or errata event handler. Signed-off-by:Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20240726231512.92867-4-justintee8345@gmail.com Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Conflicts: drivers/scsi/lpfc/lpfc.h drivers/scsi/lpfc/lpfc_hbadisc.c drivers/scsi/lpfc/lpfc_scsi.c drivers/scsi/lpfc/lpfc_sli.c [Yongqiang: add HBA_SETUP flag from commit 02243836("scsi: lpfc: Add support for the CM framework") for teardown logic] Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>