Skip to content

backport request for use-after-free blk_mq_queue_tag_busy_iter

Giuliano Procida linux-block linux-nvme stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: more locking around delayed workblock/blk-mq.c block/blk-timeout.c+7 -00 replies
2/4blk-mq: Allow timeouts to run while queue is freezingblock/blk-mq.c+14 -10 replies
3/4blk-mq: sync the update nr_hw_queues with blk_mq_queue_tag_busy_iterblock/blk-mq-tag.c+9 -10 replies
4/4blk-mq: Allow blocking queue tag iter callbacksblock/blk-mq-tag.c+2 -50 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJianchao WangMing LeiKeith Busch
1/4A-b
2/4R-b
3/4R-b
4/4A-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] backport request for use-after-free blk_mq_queue_tag_busy_iter

v2: Updated commit messages following feedback from gregkh.

Here are the patches for linux-4.4.y.

There are 2 further patches over those for linux-4.9.y and the differences after back-porting are non-trivial.

The code complies without warnings. However, I have no suitable hardware or virtual machine to test this on.

Regards,
Guiliano.

Giuliano Procida (4):
block: more locking around delayed work
blk-mq: Allow timeouts to run while queue is freezing
blk-mq: sync the update nr_hw_queues with blk_mq_queue_tag_busy_iter
blk-mq: Allow blocking queue tag iter callbacks

 block/blk-mq-tag.c  |  7 ++++++-
 block/blk-mq.c      | 17 +++++++++++++++++
 block/blk-timeout.c |  3 +++
 3 files changed, 26 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.0.110.g2183baf09c-goog