This is a note to let you know that I've just added the patch titled KEYS: asymmetric: Add missing dependencies of FIPS_SIGNATURE_SELFTEST to the 6.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: keys-asymmetric-add-missing-dependencies-of-fips_signature_selftest.patch and it can be found in the queue-6.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 9d2fd8bdc12f403a5c35c971936a0e1d5cb5108e Mon Sep 17 00:00:00 2001 From: Eric Biggers <ebiggers@xxxxxxxxxx> Date: Mon, 22 Apr 2024 14:10:41 -0700 Subject: KEYS: asymmetric: Add missing dependencies of FIPS_SIGNATURE_SELFTEST From: Eric Biggers <ebiggers@xxxxxxxxxx> commit 9d2fd8bdc12f403a5c35c971936a0e1d5cb5108e upstream. Since the signature self-test uses RSA and SHA-256, it must only be enabled when those algorithms are enabled. Otherwise it fails and panics the kernel on boot-up. Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> Closes: https://lore.kernel.org/oe-lkp/202404221528.51d75177-lkp@xxxxxxxxx Fixes: 3cde3174eb91 ("certs: Add FIPS selftests") Cc: stable@xxxxxxxxxxxxxxx Cc: Simo Sorce <simo@xxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx> Reviewed-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx> Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- crypto/asymmetric_keys/Kconfig | 2 ++ 1 file changed, 2 insertions(+) --- a/crypto/asymmetric_keys/Kconfig +++ b/crypto/asymmetric_keys/Kconfig @@ -86,5 +86,7 @@ config FIPS_SIGNATURE_SELFTEST depends on ASYMMETRIC_KEY_TYPE depends on PKCS7_MESSAGE_PARSER=X509_CERTIFICATE_PARSER depends on X509_CERTIFICATE_PARSER + depends on CRYPTO_RSA + depends on CRYPTO_SHA256 endif # ASYMMETRIC_KEY_TYPE Patches currently in stable-queue which might be from ebiggers@xxxxxxxxxx are queue-6.9/keys-asymmetric-add-missing-dependencies-of-fips_signature_selftest.patch queue-6.9/keys-asymmetric-add-missing-dependency-on-crypto_sig.patch