[SRU][N][PATCH 1/1] UBUNTU: SAUCE: Revert "crypto: api - Fix boot-up self-test race"

Noah Wager noah.wager at canonical.com
Sat Dec 13 03:59:05 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2135716

This reverts commit 3560b308e4571117f489ddac8d38875c7fc31c4e.

This commit causes a boot stall and crypto selftest failure when crypto
selftests are enabled (CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n). For this
reason, the commit was dropped from stable 6.6, but it was included in
v6.12.13 and thus integrated into our 6.8. Reverting the patch fixes the
issue.

Signed-off-by: Noah Wager <noah.wager at canonical.com>

diff --git a/crypto/algapi.c b/crypto/algapi.c
index f287085a21fa..b3a608604253 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -1059,8 +1059,6 @@ static void __init crypto_start_tests(void)
 	if (IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS))
 		return;
 
-	set_crypto_boot_test_finished();
-
 	for (;;) {
 		struct crypto_larval *larval = NULL;
 		struct crypto_alg *q;
@@ -1093,6 +1091,8 @@ static void __init crypto_start_tests(void)
 
 		crypto_wait_for_test(larval);
 	}
+
+	set_crypto_boot_test_finished();
 }
 
 static int __init crypto_algapi_init(void)
-- 
2.43.0




More information about the kernel-team mailing list