All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi: libsas: Drop SAS_TASK_AT_INITIATOR
@ 2022-02-10 10:43 John Garry
  2022-02-10 10:43 ` [PATCH 1/2] scsi: isci: Drop SAS_TASK_AT_INITIATOR check in isci_task_abort_task() John Garry
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: John Garry @ 2022-02-10 10:43 UTC (permalink / raw)
  To: jejb, martin.petersen, artur.paszkiewicz, jinpu.wang, damien.lemoal
  Cc: chenxiang66, linux-scsi, linux-kernel, linuxarm, hch, John Garry

Apart from some isci driver code, flag SAS_TASK_AT_INITIATOR is only set,
so drop usage in that driver and then everywhere else.

This solves a use-after-free in the pm8001 queue path.

John Garry (2):
  scsi: isci: Drop SAS_TASK_AT_INITIATOR check in isci_task_abort_task()
  scsi: libsas: Drop SAS_TASK_AT_INITIATOR

 drivers/scsi/aic94xx/aic94xx_task.c    |  9 ---------
 drivers/scsi/hisi_sas/hisi_sas_main.c  |  8 +-------
 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c |  3 +--
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c |  3 +--
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c |  3 +--
 drivers/scsi/isci/request.c            | 15 +++++----------
 drivers/scsi/isci/request.h            |  5 ++++-
 drivers/scsi/isci/task.c               | 23 +++++++++--------------
 drivers/scsi/mvsas/mv_sas.c            |  6 +-----
 drivers/scsi/pm8001/pm8001_hwi.c       |  7 -------
 drivers/scsi/pm8001/pm8001_sas.c       |  4 ----
 drivers/scsi/pm8001/pm80xx_hwi.c       |  5 -----
 include/scsi/libsas.h                  |  1 -
 13 files changed, 23 insertions(+), 69 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-15  3:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 10:43 [PATCH 0/2] scsi: libsas: Drop SAS_TASK_AT_INITIATOR John Garry
2022-02-10 10:43 ` [PATCH 1/2] scsi: isci: Drop SAS_TASK_AT_INITIATOR check in isci_task_abort_task() John Garry
2022-02-10 10:43 ` [PATCH 2/2] scsi: libsas: Drop SAS_TASK_AT_INITIATOR John Garry
2022-02-10 11:46   ` Damien Le Moal
2022-02-11 21:57 ` [PATCH 0/2] " Martin K. Petersen
2022-02-15  3:19 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.