From: Erhard Furtner <erhard_f@mailbox.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Subject: Re: WARNING: CPU: 1 PID: 81 at crypto/testmgr.c:5931 alg_test+0x2a4/0x300 (Thinkpad T60, v6.12-rc2)
Date: Wed, 16 Oct 2024 16:08:47 +0200 [thread overview]
Message-ID: <20241016160847.1accffcd@yea> (raw)
In-Reply-To: <Zw9QzDg5StgUflMV@gondor.apana.org.au>
On Wed, 16 Oct 2024 13:36:12 +0800
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> This patch should fix the problem and I'll push it into 6.12-rc.
>
> commit 6100da511bd21d3ccb0a350c429579e8995a830e
> Author: Qianqiang Liu <qianqiang.liu@163.com>
> Date: Fri Sep 13 22:07:42 2024 +0800
>
> crypto: lib/mpi - Fix an "Uninitialized scalar variable" issue
>
> The "err" variable may be returned without an initialized value.
>
> Fixes: 8e3a67f2de87 ("crypto: lib/mpi - Add error checks to extension")
> Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
>
> diff --git a/lib/crypto/mpi/mpi-mul.c b/lib/crypto/mpi/mpi-mul.c
> index 892a246216b9..7e6ff1ce3e9b 100644
> --- a/lib/crypto/mpi/mpi-mul.c
> +++ b/lib/crypto/mpi/mpi-mul.c
> @@ -21,7 +21,7 @@ int mpi_mul(MPI w, MPI u, MPI v)
> int usign, vsign, sign_product;
> int assign_wp = 0;
> mpi_ptr_t tmp_limb = NULL;
> - int err;
> + int err = 0;
>
> if (u->nlimbs < v->nlimbs) {
> /* Swap U and V. */
> --
I can confirm your patch fixes the issue. Thanks!
Regards,
Erhard
prev parent reply other threads:[~2024-10-16 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 23:38 WARNING: CPU: 1 PID: 81 at crypto/testmgr.c:5931 alg_test+0x2a4/0x300 (Thinkpad T60, v6.12-rc2) Erhard Furtner
2024-10-15 18:08 ` Erhard Furtner
2024-10-16 5:36 ` Herbert Xu
2024-10-16 14:08 ` Erhard Furtner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241016160847.1accffcd@yea \
--to=erhard_f@mailbox.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.