linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: crypto: api - Fix boot-up crash when crypto manager is disabled
@ 2021-11-05 13:26 Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2021-11-05 13:26 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Ido Schimmel, Geert Uytterhoeven, Damien Le Moal,
	Nathan Chancellor, Linux Crypto Mailing List, Vladis Dronov,
	Simo Sorce, Eric Biggers, llvm, kernel test robot, linux-kernel

On Fri, Nov 05, 2021 at 03:26:08PM +0800, Herbert Xu wrote:
> On Thu, Nov 04, 2021 at 05:18:34PM +0200, Ido Schimmel wrote:
> >
> > Attached my config. I can easily test patches.
> 
> Thanks!
> 
> Could you all try this patch please?
> 
> ---8<---
> When the crypto manager is disabled, we need to explicitly set
> the crypto algorithms' tested status so that they can be used.
> 
> Fixes: cad439fc040e ("crypto: api - Do not create test larvals if...")
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reported-by: Ido Schimmel <idosch@idosch.org>
> Reported-by: Guenter Roeck <linux@roeck-us.net>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Tested-by: Guenter Roeck <linux@roeck-us.net>

> 
> diff --git a/crypto/algapi.c b/crypto/algapi.c
> index d379fd91fb7b..a366cb3e8aa1 100644
> --- a/crypto/algapi.c
> +++ b/crypto/algapi.c
> @@ -284,6 +284,8 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
>  
>  	if (larval)
>  		list_add(&larval->alg.cra_list, &crypto_alg_list);
> +	else
> +		alg->cra_flags |= CRYPTO_ALG_TESTED;
>  
>  	crypto_stats_init(alg);
>  
> -- 
> Email: Herbert Xu <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <20211003002801.GA5435@gondor.apana.org.au>]

end of thread, other threads:[~2021-11-05 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 13:26 crypto: api - Fix boot-up crash when crypto manager is disabled Guenter Roeck
     [not found] <20211003002801.GA5435@gondor.apana.org.au>
     [not found] ` <YV0K+EbrAqDdw2vp@archlinux-ax161>
     [not found]   ` <20211019132802.GA14233@gondor.apana.org.au>
2021-11-02 15:41     ` [PATCH] crypto: api - Do not create test larvals if " Geert Uytterhoeven
2021-11-04  7:28       ` Damien Le Moal
2021-11-04  7:58         ` Geert Uytterhoeven
2021-11-04 12:16           ` Herbert Xu
2021-11-04 13:11             ` Geert Uytterhoeven
2021-11-04 13:30               ` Herbert Xu
2021-11-04 15:18                 ` Ido Schimmel
2021-11-05  7:26                   ` crypto: api - Fix boot-up crash when crypto " Herbert Xu
2021-11-05 14:33                     ` Ido Schimmel
2021-11-05 18:00                     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).