Skip to content

Fix synchronous fallback path for request chaining

Herbert Xu linux-crypto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: hash - Fix synchronous ahash chaining fallbackcrypto/ahash.c+28 -320 replies
2/4crypto: testmgr - Add multibuffer hash testingcrypto/testmgr.c+136 -240 replies
3/4crypto: acomp - Fix synchronous acomp chaining fallbackcrypto/acompress.c+11 -220 replies
4/4crypto: testmgr - Add multibuffer acomp testingcrypto/testmgr.c+79 -630 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fix synchronous fallback path for request chaining

It turns out that the fallback path for synchronous algorithms is broken for ahash and acomp. It was difficult to identify because a separate fast path already is normally used for shash and scomp. So to reproduce this crash, you would either have to create a new algorithm that is synchronous, or disable the fast path for scomp and shash.

This patch series fixes that particular fallback path and adds multibuffer testing for ahash and acomp. Note that you may not be able to reproduce the crash without disabling the fast paths or adding your own custom synchronous acomp/ahash algorithm that does not support chaining.

Herbert Xu (4):
crypto: hash - Fix synchronous ahash chaining fallback
crypto: testmgr - Add multibuffer hash testing
crypto: acomp - Fix synchronous acomp chaining fallback
crypto: testmgr - Add multibuffer acomp testing

 crypto/acompress.c |  33 ++---
 crypto/ahash.c     |  60 +++++----
 crypto/testmgr.c   | 302 ++++++++++++++++++++++++++++++++-------------
 3 files changed, 254 insertions(+), 141 deletions(-)
Signature · 1 line
2.39.5