Re: [PATCH] crypto: atmel-ecc - avoid stale fallback key after set_secret failure
From: Herbert Xu
Date: Fri Jul 17 2026 - 04:22:16 EST
On Wed, Jul 08, 2026 at 10:42:48PM +0200, Thorsten Blum wrote:
> Clear ->do_fallback before decoding a new ECDH secret and enable it only
> after the software fallback accepts a caller-provided private key. This
> avoids using a stale fallback key should crypto_kpp_set_secret() fail.
>
> Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/atmel-ecc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt