Skip to content

crypto: eip93: fix request lifetime and completion handling

Jihong Min linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v16 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Drop the IRQ request error patch; the equivalent fix is already present.
- Rebase the remaining fixes onto cryptodev-2.6 master at e264401ce477.
- Keep the remaining code changes unchanged from v1.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: eip93: guard DMA cleanup on uninitialized mappingsdrivers/crypto/inside-secure/eip93/eip93-common.c drivers/crypto/inside-secure/eip93/eip93-hash.c+41 -211 reply
2/5crypto: eip93: reject HMAC requests before setkeydrivers/crypto/inside-secure/eip93/eip93-hash.c+3 -00 replies
3/5crypto: eip93: use request-local SA records for cipher requestsdrivers/crypto/inside-secure/eip93/eip93-aead.c drivers/crypto/inside-secure/eip93/eip93-cipher.c drivers/crypto/inside-secure/eip93/eip93-cipher.h +1 more+55 -250 replies
4/5crypto: eip93: order result descriptor reads after PE_READYdrivers/crypto/inside-secure/eip93/eip93-main.c+8 -50 replies
5/5crypto: eip93: handle request ID exhaustiondrivers/crypto/inside-secure/eip93/eip93-common.c drivers/crypto/inside-secure/eip93/eip93-common.h drivers/crypto/inside-secure/eip93/eip93-hash.c +2 more+69 -160 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchMieczyslaw NalewajAleksander Jan Bajkowski
1/5Originally-by
2/5Originally-by
3/5
4/5
5/5T-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] crypto: eip93: fix request lifetime and completion handling

This is v2 of the EIP-93 fix series:

https://lore.kernel.org/linux-crypto/[email protected]/

This series keeps the remaining request lifetime and completion handling fixes from v1. Patch 1/6 from v1 is omitted because an equivalent devm_request_threaded_irq() failure handling fix is already in this tree as commit 85a61bf9145d ("crypto: inside-secure/eip93 - Add check for devm_request_threaded_irq").

The patches collect EIP-93 fixes that had been carried out-of-tree and rework them for the current driver. The original fixes came from work by multiple people; the individual commits carry provenance trailers where the original author, reporter or tester is known.

Tested on a Lumen W1700K2 wireless AP running a Linux 6.18 based OpenWrt build, after verifying that the resulting driver changes match the corresponding OpenWrt patch diffs, modulo upstream context differences.

Changes in v2:
- Drop the IRQ request error patch; the equivalent fix is already present.
- Rebase the remaining fixes onto cryptodev-2.6 master at e264401ce477.
- Keep the remaining code changes unchanged from v1.

Jihong Min (5):
crypto: eip93: guard DMA cleanup on uninitialized mappings
crypto: eip93: reject HMAC requests before setkey
crypto: eip93: use request-local SA records for cipher requests
crypto: eip93: order result descriptor reads after PE_READY
crypto: eip93: handle request ID exhaustion

 .../crypto/inside-secure/eip93/eip93-aead.c   | 34 +++++---
 .../crypto/inside-secure/eip93/eip93-cipher.c | 34 +++++---
 .../crypto/inside-secure/eip93/eip93-cipher.h |  3 +-
 .../crypto/inside-secure/eip93/eip93-common.c | 65 ++++++++++++---
 .../crypto/inside-secure/eip93/eip93-common.h |  3 +
 .../crypto/inside-secure/eip93/eip93-hash.c   | 79 +++++++++++++------
 .../crypto/inside-secure/eip93/eip93-main.c   | 19 +++--
 .../crypto/inside-secure/eip93/eip93-main.h   |  2 +
 8 files changed, 174 insertions(+), 65 deletions(-)

base-commit: e264401ce4776a288524e5b87593d4d864147115

Signature · 1 line
2.53.0