[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1644489804-85730-1-git-send-email-john.garry@huawei.com>
Date: Thu, 10 Feb 2022 18:43:22 +0800
From: John Garry <john.garry@...wei.com>
To: <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>,
<artur.paszkiewicz@...el.com>, <jinpu.wang@...ud.ionos.com>,
<damien.lemoal@...nsource.wdc.com>
CC: <chenxiang66@...ilicon.com>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linuxarm@...wei.com>,
<hch@....de>, "John Garry" <john.garry@...wei.com>
Subject: [PATCH 0/2] scsi: libsas: Drop SAS_TASK_AT_INITIATOR
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
Powered by blists - more mailing lists