Skip to content

Fix a deadlock in blk-crypto-fallback

Eric Biggers linux-block linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: make mempool_alloc_from_pool() return boolmm/mempool.c+5 -52 replies
2/3mm: support fallible mempool_alloc_bulk()block/blk-crypto-fallback.c include/linux/mempool.h mm/mempool.c+33 -197 replies
3/3blk-crypto-fallback: Fix deadlock when encrypting large bio in dm layerblock/blk-crypto-fallback.c+65 -50 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchChristoph HellwigHarry Yoo (Meta)
1/3R-b R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fix a deadlock in blk-crypto-fallback

This series fixes a deadlock in blk-crypto-fallback that could occur when a large WRITE bio was submitted to dm-inlinecrypt.

As a prerequisite, it makes mempool_alloc_bulk() support fallible allocations in the same way that mempool_alloc() does.

Please consider this series for the block tree for 7.3.

Eric Biggers (3):
mm: make mempool_alloc_from_pool() return bool
mm: support fallible mempool_alloc_bulk()
blk-crypto-fallback: Fix deadlock when encrypting large bio in dm
layer

 block/blk-crypto-fallback.c | 72 +++++++++++++++++++++++++++++++++----
 include/linux/mempool.h     |  4 +--
 mm/mempool.c                | 50 +++++++++++++++++---------
 3 files changed, 100 insertions(+), 26 deletions(-)

base-commit: 0d839570765118029aa8bf4a95444c6a11aacf85

Signature · 1 line
2.55.0