On Mon, Mar 16, 2026 at 01:21:19PM -0700, Eric Biggers wrote:
> The tegra crypto driver failed to set the CRYPTO_ALG_ASYNC on its
> asynchronous algorithms, causing the crypto API to select them for users
> that request only synchronous algorithms.  This causes crashes (at
> least).  Fix this by adding the flag like what the other drivers do.
> Also remove the unnecessary CRYPTO_ALG_TYPE_* flags, since those just
> get ignored and overridden by the registration function anyway.
> 
> Reported-by: Zorro Lang <[email protected]>
> Closes: 
> https://lore.kernel.org/r/20260314080937.pghb4aa7d4je3...@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com
> Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver")
> Cc: [email protected]
> Cc: Akhil R <[email protected]>
> Signed-off-by: Eric Biggers <[email protected]>
> ---
> 
> This patch is targeting crypto/master.
> 
> v2: fix tegra-se-hash.c as well, and remove unnecessary type flags
> 
>  drivers/crypto/tegra/tegra-se-aes.c  | 11 ++++++----
>  drivers/crypto/tegra/tegra-se-hash.c | 30 ++++++++++++++++------------
>  2 files changed, 24 insertions(+), 17 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to