All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix synchronous fallback path for request chaining
@ 2025-03-21  8:43 Herbert Xu
  2025-03-21  8:43 ` [PATCH 1/4] crypto: hash - Fix synchronous ahash chaining fallback Herbert Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Herbert Xu @ 2025-03-21  8:43 UTC (permalink / raw)
  To: Linux Crypto Mailing List; +Cc: Cabiddu, Giovanni

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(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-21  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-21  8:43 [PATCH 0/4] Fix synchronous fallback path for request chaining Herbert Xu
2025-03-21  8:43 ` [PATCH 1/4] crypto: hash - Fix synchronous ahash chaining fallback Herbert Xu
2025-03-21  8:43 ` [PATCH 2/4] crypto: testmgr - Add multibuffer hash testing Herbert Xu
2025-03-21  8:43 ` [PATCH 3/4] crypto: acomp - Fix synchronous acomp chaining fallback Herbert Xu
2025-03-21  8:43 ` [PATCH 4/4] crypto: testmgr - Add multibuffer acomp testing Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.