1 From 4517445d7df86d35d348f884a228e6979113d485 Mon Sep 17 00:00:00 2001
2 From: "Jason A. Donenfeld" <Jason@zx2c4.com>
3 Date: Mon, 2 Nov 2020 14:48:15 +0100
4 Subject: [PATCH 067/124] crypto: Kconfig - CRYPTO_MANAGER_EXTRA_TESTS requires
7 commit 6569e3097f1c4a490bdf2b23d326855e04942dfd upstream.
9 The extra tests in the manager actually require the manager to be
10 selected too. Otherwise the linker gives errors like:
12 ld: arch/x86/crypto/chacha_glue.o: in function `chacha_simd_stream_xor':
13 chacha_glue.c:(.text+0x422): undefined reference to `crypto_simd_disabled_for_test'
15 Fixes: 2343d1529aff ("crypto: Kconfig - allow tests to be disabled when manager is disabled")
16 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
17 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
21 1 file changed, 1 insertion(+), 1 deletion(-)
25 @@ -145,7 +145,7 @@ config CRYPTO_MANAGER_DISABLE_TESTS
27 config CRYPTO_MANAGER_EXTRA_TESTS
28 bool "Enable extra run-time crypto self tests"
29 - depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
30 + depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER
32 Enable extra run-time self tests of registered crypto algorithms,
33 including randomized fuzz tests.