From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-008.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-008.esa.us-west-2.outbound.mail-perimeter.amazon.com [52.42.203.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06AAE22A4EB; Thu, 12 Feb 2026 03:13:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.42.203.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866017; cv=none; b=oCrEURR84C5cW3GHJmn7FgXuwvBNGGrZ+6MbuCuCFg8lpXkYaPP3RsQOC2H8CHqcu+XdEC2Iqw4e1ubgW5PAeMo0p3UE+TPf0MJHWechXNh/Hxf6kvvFKku3Cy5gaSfwEQgKrkNosAUx0iKtOKjGTCGbIB25Yu9bV0b4OyJ1HZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866017; c=relaxed/simple; bh=STGaOP/8yDdn2pqsU2gVZk2gCf/hIxaam6gNMy9/XtQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VC5MXHFutW2P1Q9T6rxRetDfs2QSK/tLvYamJl947c+jBN0NmeHoa6HzC6Os7pXCxfwTlErmLMAEnMlutHVU4jz4OchSX2KJSEncpYDx0CNnbsja0PQaryNxUu/hK01FBdSl9Rfa0n70UXzadTaHZdH6kFreqfGdeRbi9nF2dBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b=T1RWqRI1; arc=none smtp.client-ip=52.42.203.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b="T1RWqRI1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866016; x=1802402016; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZPMMkJbFYL7Nl+ga6Yh2yJ94I1TgNPhxJyXbOvwvw8Y=; b=T1RWqRI1zMpAcGkGM8i9ECtLKa+V/bumoir0AWM9Fy0ft4WBr0TQS1FW ZifOYf7D/5DcLXsmnAlg5OQRjnZbSh3/HKjJ84izxILpVFNDHf8c3HEpJ TD29xkZj0mytpfJXog78BsbYlxwNbrKn9VQ/EidHSF2IcuhhObI15a0qC t4GWjwGPuXeTjX7B5Y2HlhwFKzYxbIdwlFVBRQPjiAWSQmdctmZhmfz0M wU+Z6PoXFIQMOjOFGPUz9WVrsLkVNpVeRIQidUJ2a+FaerGFrxU8YMjpM cOGF7I/Q4XPxJS1RbMgRzRb0gM4sqZZfbh8lVhrjSNuqQxCA4eq+Qnd93 Q==; X-CSE-ConnectionGUID: TSRoevCjSLG0qk8FLc2zYA== X-CSE-MsgGUID: ci0X8US2R/KddNhK7NQt7A== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12914234" Received: from ip-10-5-6-203.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203]) by internal-pdx-out-008.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:13:35 +0000 Received: from EX19MTAUWA002.ant.amazon.com [205.251.233.234:27604] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.31.238:2525] with esmtp (Farcaster) id 58b0f14f-05da-4c36-915c-fdd01a4d24b4; Thu, 12 Feb 2026 03:13:35 +0000 (UTC) X-Farcaster-Flow-ID: 58b0f14f-05da-4c36-915c-fdd01a4d24b4 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWA002.ant.amazon.com (10.250.64.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 03:13:35 +0000 Received: from dev-dsk-wanjay-2c-d25651b4.us-west-2.amazon.com (172.19.198.4) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 03:13:34 +0000 From: Jay Wang To: Herbert Xu , "David S . Miller" , CC: Jay Wang , Vegard Nossum , Nicolai Stange , Ilia Okomin , Catalin Marinas , "Will Deacon" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Luis Chamberlain , Petr Pavlu , Nathan Chancellor , Nicolas Schier , , , , Subject: [PATCH 101/106] crypto: convert exported crypto symbol into pluggable interface for CONFIG_FIPS_SIGNATURE_SELFTEST crypto Date: Thu, 12 Feb 2026 02:47:17 +0000 Message-ID: <20260212024725.11264-102-wanjay@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260212024725.11264-1-wanjay@amazon.com> References: <20260212024725.11264-1-wanjay@amazon.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D032UWB003.ant.amazon.com (10.13.139.165) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_FIPS_SIGNATURE_SELFTEST-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- crypto/asymmetric_keys/Makefile | 2 +- crypto/asymmetric_keys/selftest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/asymmetric_keys/Makefile b/crypto/asymmetric_keys/Makefile index c68fdcd2c5cf..bffa2e199a5d 100644 --- a/crypto/asymmetric_keys/Makefile +++ b/crypto/asymmetric_keys/Makefile @@ -22,7 +22,7 @@ x509_key_parser-y := \ x509_cert_parser.o \ x509_loader.o \ x509_public_key.o -obj-$(CONFIG_FIPS_SIGNATURE_SELFTEST) += x509_selftest.o +crypto-objs-$(CONFIG_FIPS_SIGNATURE_SELFTEST) += x509_selftest.o x509_selftest-y += selftest.o x509_selftest-$(CONFIG_FIPS_SIGNATURE_SELFTEST_RSA) += selftest_rsa.o x509_selftest-$(CONFIG_FIPS_SIGNATURE_SELFTEST_ECDSA) += selftest_ecdsa.o diff --git a/crypto/asymmetric_keys/selftest.c b/crypto/asymmetric_keys/selftest.c index 98dc5cdfdebe..4f3b6ef85d1b 100644 --- a/crypto/asymmetric_keys/selftest.c +++ b/crypto/asymmetric_keys/selftest.c @@ -65,7 +65,7 @@ static int __init fips_signature_selftest_init(void) return 0; } -late_initcall(fips_signature_selftest_init); +crypto_late_initcall(fips_signature_selftest_init); MODULE_DESCRIPTION("X.509 self tests"); MODULE_AUTHOR("Red Hat, Inc."); -- 2.47.3