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 C6305384; Thu, 13 Jun 2024 12:45:43 +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=1718282743; cv=none; b=sRPw9Zca19OifhNWwmUV88ALAg6WT06cZaZPyvP9pvGrhPiX7b7Qe88nVtvxE6xMYjq9f0fRQj1j/HYw7XneTvrVhICzAj5FCGhONx+b51LdXuiR6gL/xNbIoZAS0kqMgYv/lfjUIjX4GEc1vqyGvsDEiM+oHHtji+IoXAsW1So= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282743; c=relaxed/simple; bh=etXSffufHwMn5X1FmrszYQeUCXScniCqWz7aZC4gii4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IckagxRK2WFmXTnHncVmFRFVHkmcPzmmneg/Mc2xaUhNrdP1w9jlJyMXbuIrlzj+oWszibJrvX8Q1Uu0FIXEPukFlk5nRbfSHapRx0vgiEUKOstld/6kgpNup6X7MmhOqa1Fu43v9zPvq9UEaA+RzJxvDh4SmTUYuHt7Y43AisU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QvG2FFSJ; 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="QvG2FFSJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFFB8C2BBFC; Thu, 13 Jun 2024 12:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718282743; bh=etXSffufHwMn5X1FmrszYQeUCXScniCqWz7aZC4gii4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QvG2FFSJ8BN48u8iWHAk/QoB7CQxn/6qxP0p08Ap3Al64GUEfDEj3NR6arL+NR65+ IyVYLuZI5hNN/JRsDNos7O6qiCotrWgs75LxB2RMuj1RYOimXjbVJOs4bW8jfy5/xY 3KEeZu8cNzhSvTs+z3bl4AwbJsoPIfiig8h/mFG0= 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 5.15 379/402] crypto: ecrdsa - Fix module auto-load on add_key Date: Thu, 13 Jun 2024 13:35:36 +0200 Message-ID: <20240613113316.926139086@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113302.116811394@linuxfoundation.org> References: <20240613113302.116811394@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 5.15-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");