From: Eric Biggers <ebiggers@kernel.org>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, Zheng Bin <zhengbin13@huawei.com>,
stable@vger.kernel.org
Subject: Re: [PATCH crypto] crypto: memneq - move into lib/
Date: Mon, 30 May 2022 10:36:26 -0700 [thread overview]
Message-ID: <YpUAmiBSb6oEr1oc@sol.localdomain> (raw)
In-Reply-To: <20220528102429.189731-1-Jason@zx2c4.com>
On Sat, May 28, 2022 at 12:24:29PM +0200, Jason A. Donenfeld wrote:
> This is used by code that doesn't need CONFIG_CRYPTO, so move this into
> lib/ with a Kconfig option so that it can be selected by whatever needs
> it.
>
> This fixes a linker error Zheng pointed out when
> CRYPTO_MANAGER_DISABLE_TESTS!=y and CRYPTO=m:
>
> lib/crypto/curve25519-selftest.o: In function `curve25519_selftest':
> curve25519-selftest.c:(.init.text+0x60): undefined reference to `__crypto_memneq'
> curve25519-selftest.c:(.init.text+0xec): undefined reference to `__crypto_memneq'
> curve25519-selftest.c:(.init.text+0x114): undefined reference to `__crypto_memneq'
> curve25519-selftest.c:(.init.text+0x154): undefined reference to `__crypto_memneq'
>
> Reported-by: Zheng Bin <zhengbin13@huawei.com>
> Cc: Eric Biggers <ebiggers@kernel.org>
> Cc: stable@vger.kernel.org
> Fixes: aa127963f1ca ("crypto: lib/curve25519 - re-add selftests")
> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
> ---
> I'm traveling over the next week, and there are a few ways to skin this
> cat, so if somebody here sees issue, feel free to pick this v1 up and
> fashion a v2 out of it.
>
> crypto/Kconfig | 1 +
> crypto/Makefile | 2 +-
> lib/Kconfig | 3 +++
> lib/Makefile | 1 +
> lib/crypto/Kconfig | 1 +
> {crypto => lib}/memneq.c | 0
> 6 files changed, 7 insertions(+), 1 deletion(-)
> rename {crypto => lib}/memneq.c (100%)
Reviewed-by: Eric Biggers <ebiggers@google.com>
- Eric
next prev parent reply other threads:[~2022-05-30 17:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-28 1:33 [PATCH -next] crypto: curve25519 - Fix build error when CRYPTO_MANAGER_DISABLE_TESTS!=y && CRYPTO=m Zheng Bin
2022-05-28 6:19 ` Jason A. Donenfeld
2022-05-28 10:24 ` [PATCH crypto] crypto: memneq - move into lib/ Jason A. Donenfeld
2022-05-30 17:36 ` Eric Biggers [this message]
2022-06-10 9:16 ` Herbert Xu
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=YpUAmiBSb6oEr1oc@sol.localdomain \
--to=ebiggers@kernel.org \
--cc=Jason@zx2c4.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=zhengbin13@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox