summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-02 14:48:15 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-07-07 13:26:40 +0200
commitc4112d32b3f0b8d625d2bdf4d9f74f726083319b (patch)
tree7d3946dbb286c7fed20e2ae2764e5958f38609c0
parent73793b537e653bd594192a6f9a8471bb98b7089d (diff)
downloadlinux-crypto-c4112d32b3f0b8d625d2bdf4d9f74f726083319b.tar.gz
linux-crypto-c4112d32b3f0b8d625d2bdf4d9f74f726083319b.zip
crypto: Kconfig - CRYPTO_MANAGER_EXTRA_TESTS requires the manager
commit 6a34f3afc26eca1ed55b984d4ac359ec7aa74236 upstream. The extra tests in the manager actually require the manager to be selected too. Otherwise the linker gives errors like: ld: arch/x86/crypto/chacha_glue.o: in function `chacha_simd_stream_xor': chacha_glue.c:(.text+0x422): undefined reference to `crypto_simd_disabled_for_test' Fixes: da1db20dc767 ("crypto: Kconfig - allow tests to be disabled when manager is disabled") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--crypto/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index d655647f..deb98b94 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -145,7 +145,7 @@ config CRYPTO_MANAGER_DISABLE_TESTS
config CRYPTO_MANAGER_EXTRA_TESTS
bool "Enable extra run-time crypto self tests"
- depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
+ depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER
help
Enable extra run-time self tests of registered crypto algorithms,
including randomized fuzz tests.