[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YfOCkY3RL0qqn5YU@gondor.apana.org.au>
Date: Fri, 28 Jan 2022 16:43:45 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Shijith Thotton <sthotton@...vell.com>
Cc: arno@...isbad.org, bbrezillon@...nel.org, sthotton@...vell.com,
linux-crypto@...r.kernel.org, jerinj@...vell.com,
sgoutham@...vell.com, schalla@...vell.com, davem@...emloft.net,
chi.minghao@....com.cn, ovidiu.panait@...driver.com,
schandran@...vell.com, lbartosik@...vell.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] crypto: octeontx2: fix NULL pointer dereference
Shijith Thotton <sthotton@...vell.com> wrote:
>
> diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c b/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
> index 2748a3327e39..620fa9b23e78 100644
> --- a/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
> +++ b/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
> @@ -1650,7 +1650,7 @@ static inline int cpt_register_algs(void)
>
> err = crypto_register_aeads(otx2_cpt_aeads,
> ARRAY_SIZE(otx2_cpt_aeads));
> - if (err) {
> + if (err && !IS_ENABLED(CONFIG_DM_CRYPT)) {
> crypto_unregister_skciphers(otx2_cpt_skciphers,
> ARRAY_SIZE(otx2_cpt_skciphers));
> return err;
A better fix would be to make the driver actually work with
dm-crypt. What exactly is the issue?
Even if we have to keep the kludge, please move this into Kconfig
as a dependency and simply disable the whole driver.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists