Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: Kconfig - CRYPTO_MANAGER_EXTRA_TESTS requires the manager

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: 2343d1529aff ("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>

authored by

Jason A. Donenfeld and committed by
Herbert Xu
6569e309 ab95bd2a

+1 -1
+1 -1
crypto/Kconfig
··· 145 145 146 146 config CRYPTO_MANAGER_EXTRA_TESTS 147 147 bool "Enable extra run-time crypto self tests" 148 - depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS 148 + depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER 149 149 help 150 150 Enable extra run-time self tests of registered crypto algorithms, 151 151 including randomized fuzz tests.