mbox series

[0/3] Fix blk-crypto keyslot race condition

Message ID 20230303071959.144604-1-ebiggers@kernel.org (mailing list archive)
Headers show
Series Fix blk-crypto keyslot race condition | expand

Message

Eric Biggers March 3, 2023, 7:19 a.m. UTC
This series fixes a race condition in blk-crypto keyslot management and
makes some related cleanups.  It replaces
"[PATCH] blk-crypto: make blk_crypto_evict_key() always try to evict"
(https://lore.kernel.org/r/20230226203816.207449-1-ebiggers@kernel.org),
which was a simpler fix but didn't fix the keyslot reference counting to
work as expected.

Eric Biggers (3):
  blk-mq: release crypto keyslot before reporting I/O complete
  blk-crypto: make blk_crypto_evict_key() more robust
  blk-crypto: remove blk_crypto_insert_cloned_request()

 Documentation/block/inline-encryption.rst |  3 +-
 block/blk-crypto-internal.h               | 28 +++++--------
 block/blk-crypto-profile.c                | 50 +++++++++--------------
 block/blk-crypto.c                        | 47 +++++++++++----------
 block/blk-mq.c                            | 17 +++++++-
 5 files changed, 71 insertions(+), 74 deletions(-)


base-commit: 2eb29d59ddf02e39774abfb60b2030b0b7e27c1f