[PW_SID:972322] crypto: ahash - Fix infinite recursion in ahash_def_finup#537
[PW_SID:972322] crypto: ahash - Fix infinite recursion in ahash_def_finup#537linux-riscv-bot wants to merge 2 commits into
Conversation
On Sat, Jun 14, 2025 at 08:18:07PM -0700, Eric Biggers wrote: > > Even with your patch applied, it overflows the stack when running the crypto > self-tests, apparently due to crypto/ahash.c calling into itself recursively: Thanks for the report. This driver doesn't provide a finup function which triggered a bug in the default finup implementation: ---8<--- Invoke the final function directly in the default finup implementation since crypto_ahash_final is now just a wrapper around finup. Reported-by: Eric Biggers <ebiggers@kernel.org> Fixes: 9d7a0ab ("crypto: ahash - Handle partial blocks in API") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
|
Patch 1: "crypto: ahash - Fix infinite recursion in ahash_def_finup" |
8023d1f to
6ce2eef
Compare
PR for series 972322 applied to workflow__riscv__fixes
Name: crypto: ahash - Fix infinite recursion in ahash_def_finup
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=972322
Version: 1