aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorJames Smart <[email protected]>2021-04-21 23:44:33 +0000
committerMartin K. Petersen <[email protected]>2021-04-27 02:56:31 +0000
commite1364711359f3ced054bda9920477c8bf93b74c5 (patch)
tree355a5a302c79144b338b871f6631d0fb2645a78b /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentscsi: blk-mq: Fix build warning when making htmldocs (diff)
downloadkernel-e1364711359f3ced054bda9920477c8bf93b74c5.tar.gz
kernel-e1364711359f3ced054bda9920477c8bf93b74c5.zip
scsi: lpfc: Fix illegal memory access on Abort IOCBs
In devloss timer handler and in backend calls to terminate remote port I/O, there is logic to walk through all active IOCBs and validate them to potentially trigger an abort request. This logic is causing illegal memory accesses which leads to a crash. Abort IOCBs, which may be on the list, do not have an associated lpfc_io_buf struct. The driver is trying to map an lpfc_io_buf struct on the IOCB and which results in a bogus address thus the issue. Fix by skipping over ABORT IOCBs (CLOSE IOCBs are ABORTS that don't send ABTS) in the IOCB scan logic. Link: https://lore.kernel.org/r/[email protected] Co-developed-by: Justin Tee <[email protected]> Signed-off-by: Justin Tee <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions