From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A5DA513541B; Thu, 13 Jun 2024 11:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718279419; cv=none; b=VLVP17CCS+i9htOY4eJB5LFTtQldmZNXa4VkREQJI+ZZp1ZpEKAaiOb9o5jf2RtYmnq6HEWdc9EWplBOazgyAfqnMjWBe6HN5pruM5Bi4UztQlrVfr9L8weVOkhAbu8Y2I5CZZEoi/OpK1syCOqsSZiJkDNYIZnb+oIPvOXlnHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718279419; c=relaxed/simple; bh=b+bkL+Zc4yk7U3i3stLYAxdAb8xl2nee9+tGPFjEMbA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RgT30TvR5/QpHhQkrPr3mRgt7wqq9nID9gE6Qt1RY+pukTJhMC+HP3JY2K+6HnAYbTO+KNhEGb/cT8kWVSmP/N44n4nXspXTMjWiwSvl3bRPxW2Wezv+bL6Do+XKLPQ+h1kHEhClTcBSabjmrwuDtme7nEhrT1PU6MQJnYSpJOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Oxr+V1zC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Oxr+V1zC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 257BFC2BBFC; Thu, 13 Jun 2024 11:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718279419; bh=b+bkL+Zc4yk7U3i3stLYAxdAb8xl2nee9+tGPFjEMbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oxr+V1zC5jGaVdJUM9cc+qmqG1APkz+D0ANFI1+TM+I6PSqAiFu5csuGKRNCcr4Am Z3TlnMlLQGHe8A1IydrtFcRh7XTwuu1gBLmGbOHrndcwcSMX1LR3jNPas/VXogdb9z d5QdT4wOmT+7KJOKIw+OrXcrfl2NxLo58zY3IT04= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vitaly Chikunov , Stefan Berger , Herbert Xu , Paul Wolneykien Subject: [PATCH 6.9 070/157] crypto: ecrdsa - Fix module auto-load on add_key Date: Thu, 13 Jun 2024 13:33:15 +0200 Message-ID: <20240613113230.131420080@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113227.389465891@linuxfoundation.org> References: <20240613113227.389465891@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vitaly Chikunov commit eb5739a1efbc9ff216271aeea0ebe1c92e5383e5 upstream. Add module alias with the algorithm cra_name similar to what we have for RSA-related and other algorithms. The kernel attempts to modprobe asymmetric algorithms using the names "crypto-$cra_name" and "crypto-$cra_name-all." However, since these aliases are currently missing, the modules are not loaded. For instance, when using the `add_key` function, the hash algorithm is typically loaded automatically, but the asymmetric algorithm is not. Steps to test: 1. Cert is generated usings ima-evm-utils test suite with `gen-keys.sh`, example cert is provided below: $ base64 -d >test-gost2012_512-A.cer < Cc: stable@vger.kernel.org Signed-off-by: Vitaly Chikunov Tested-by: Stefan Berger Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- crypto/ecrdsa.c | 1 + 1 file changed, 1 insertion(+) --- a/crypto/ecrdsa.c +++ b/crypto/ecrdsa.c @@ -294,4 +294,5 @@ module_exit(ecrdsa_mod_fini); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Vitaly Chikunov "); MODULE_DESCRIPTION("EC-RDSA generic algorithm"); +MODULE_ALIAS_CRYPTO("ecrdsa"); MODULE_ALIAS_CRYPTO("ecrdsa-generic");