[PW_SID:971750] crypto: ahash - Stop legacy tfms from using the set_virt fallback path#531
[PW_SID:971750] crypto: ahash - Stop legacy tfms from using the set_virt fallback path#531linux-riscv-bot wants to merge 2 commits into
Conversation
On Thu, Jun 12, 2025 at 10:54:39PM -0700, Eric Biggers wrote: > > Actually, crypto_ahash::base::fb is initialized if CRYPTO_ALG_NEED_FALLBACK, > which many of the drivers already set. Then crypto_ahash_update() calls > ahash_do_req_chain() if the algorithm does *not* have > CRYPTO_AHASH_ALG_BLOCK_ONLY set. Which then exports the driver's custom state > and tries to import it into the fallback. > > As far as I can tell, it's just broken for most of the existing drivers. This fallback path is only meant to be used for drivers that have been converted. But you're right there is a check missing in there. Thanks, ---8<--- Ensure that drivers that have not been converted to the ahash API do not use the ahash_request_set_virt fallback path as they cannot use the software fallback. 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 - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
|
Patch 1: "crypto: ahash - Stop legacy tfms from using the set_virt fallback path" |
8023d1f to
6ce2eef
Compare
PR for series 971750 applied to workflow__riscv__fixes
Name: crypto: ahash - Stop legacy tfms from using the set_virt fallback path
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=971750
Version: 1