Skip to content

Call blk_mq_free_tag_set() earlier

Bart Van Assche linux-scsi 5 versions – Applied

Status from this message: Applied to 5.20/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 5 repliesApplied
  2. v44 patches 9 repliesSuperseded
  3. v32 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches10 repliesSuperseded
v11 patch6 repliesSuperseded

Changes in v5 from the cover letter

- Left out the scsi_mq_destroy_tags() changes.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/4scsi: core: Make sure that targets outlive devicesdrivers/scsi/scsi_scan.c drivers/scsi/scsi_sysfs.c include/scsi/scsi_device.h+21 -30 replies
2/4scsi: core: Make sure that hosts outlive targetsdrivers/scsi/hosts.c drivers/scsi/scsi_scan.c include/scsi/scsi_host.h+18 -03 replies
3/4scsi: core: Simplify LLD module reference countingdrivers/scsi/scsi.c drivers/scsi/scsi_sysfs.c+6 -120 replies
4/4scsi: core: Call blk_mq_free_tag_set() earlierdrivers/scsi/hosts.c+5 -50 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMing LeiLi ZhijianMike Christie
SeriesR-b
1/4R-b
2/4
3/4
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/4] Call blk_mq_free_tag_set() earlier

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 v4:
- Left out the scsi_mq_destroy_tags() changes.

Changes compared to v3:
- Added a patch to delay scsi_remove_target() until dependent devices have been removed.
- Split a patch into two patches.

Changes compared to v2:
- Dropped the patch that simplifies scsi_forget_host().
- Replaced patch 2/3 with a patch from Ming Lei.

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

Thanks,

Bart.

Bart Van Assche (2):
scsi: core: Make sure that targets outlive devices
scsi: core: Call blk_mq_free_tag_set() earlier

Ming Lei (2):
scsi: core: Make sure that hosts outlive targets
scsi: core: Simplify LLD module reference counting

 drivers/scsi/hosts.c       | 18 +++++++++++++-----
 drivers/scsi/scsi.c        |  9 ++++++---
 drivers/scsi/scsi_scan.c   |  9 +++++++++
 drivers/scsi/scsi_sysfs.c  | 29 +++++++++++++++++------------
 include/scsi/scsi_device.h |  2 ++
 include/scsi/scsi_host.h   |  3 +++
 6 files changed, 50 insertions(+), 20 deletions(-)