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 8AB812CA6; Thu, 13 Jun 2024 12:51:21 +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=1718283081; cv=none; b=QJhdDx3FqwTcrkFAjMcuqOMXWCzN+kf6uYInOy6DGNnzjpfGF5937McyUMUdqe49Xmb0CjISmeY7i8YcB15W7ZQ9CpKwGiN8ZiwV7TRBijR/9xKmtTk9lIgQt5Lyjt/cGNYb3sw09hdBDozOKJiOYq1hQorTD3DbRW5NBQpIAlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718283081; c=relaxed/simple; bh=5PXnVvRU6VBNW56KWv7InP1S/Nw/vFR/TZdgo8ftC0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kfn5KhAbifm1WfxwdNzZULhKmxueew8bQ9mwKpBElK51F8hxnqmwXSF8j7puymioO4V4rG1esggPPz/HETBtAeBHqaG8/DLzk6i6a9lFSZgN0ry8u8rkK8DqzW1GPj8GEBKYAtqo58d84Hh0ds8gkcQeg4MxyESKefuc/MWvsnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WORLkgXZ; 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="WORLkgXZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA5B8C2BBFC; Thu, 13 Jun 2024 12:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718283081; bh=5PXnVvRU6VBNW56KWv7InP1S/Nw/vFR/TZdgo8ftC0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WORLkgXZyVfGJCPvW1YcUNH1xdWIeBj5lBRyRCErQqKDPmAL8WicPAKhFpUTOR+Mz E4t3F+ioz7XPduu3n4KU74wPYrj460FCK/LjmIYRYiZ21ugo3xVqlbrrKCCgNb6x81 hpMa7eHDN05n60t5lC2bVudmfnc0xoSpfrHwH45Y= 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.1 52/85] crypto: ecrdsa - Fix module auto-load on add_key Date: Thu, 13 Jun 2024 13:35:50 +0200 Message-ID: <20240613113216.146510510@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113214.134806994@linuxfoundation.org> References: <20240613113214.134806994@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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");