[PATCH v2 0/3] Call blk_mq_free_tag_set() earlier

Bart Van Assche
2022-06-30T21:37:44Z

Hi Martin,

This patch series fixes a recently reported use-after-free in the SRP driver.
Please consider this patch series for kernel v5.20.

Changes compared to v1:
- Expanded this series from one to three patches.
- Fixed the description of patch 3/3.

Bart Van Assche (3):
scsi: Simplify scsi_forget_host()
scsi: Make scsi_forget_host() wait for request queue removal
scsi: core: Call blk_mq_free_tag_set() earlier

drivers/scsi/hosts.c | 10 +++++-----
drivers/scsi/scsi_lib.c | 3 +++
drivers/scsi/scsi_scan.c | 34 +++++++++++++++++++++++++++++-----
3 files changed, 37 insertions(+), 10 deletions(-)