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 DEC266AFAE; Thu, 13 Jun 2024 12:26:49 +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=1718281610; cv=none; b=X1lSSvsBaqlH2LnKEYZTJoF3AcetqJ31r+GOs6Hf3h2uN036dzgIGD8IDNzXxi6uHojwIkyHWrHkagrNt/MFWc9kSkKlMozQLUEMKG2gMulvUIyJiPfCzm1UHhzjgVNYAXSUgLLYs/EfA0BXZbp/7J1y3Vm2S1LqFhmwKZNpLKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718281610; c=relaxed/simple; bh=UUMkKFnwSsft/xP0Lud4OJGiitDjbcA8gXsUgt4Vz5s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ML9a5eAn+MP3QlO6EhCxQW+GCh4IBbXe5pfEDzcg/kN0fkqlH19c6scmIyGfuyx9WCoJTrvOUICBRtTazS7m73IlgtBuPptb0NSNtxWgM9gmluigKX8EVigmHr6+aEk2PBepYwgkrr1yYdOKV3RCWiLzZz/R1fvWcInJxgmhudw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1EnSic/c; 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="1EnSic/c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67622C2BBFC; Thu, 13 Jun 2024 12:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718281609; bh=UUMkKFnwSsft/xP0Lud4OJGiitDjbcA8gXsUgt4Vz5s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1EnSic/cF4a20wjaGuWZ46Sa1DpOPETSfIiLfHC84w997jb99mmUoa70Yo1YHJGJT RPP+FQPwrlU6aY/xA33qv3e4nO+k20sVaF5wehAvEZOz496Wyr1G7TCXzLFW7gMrAU K2b6dxndVI89993JRFccJ7fJMTE5kgPmikZmF2Yk= 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.10 296/317] crypto: ecrdsa - Fix module auto-load on add_key Date: Thu, 13 Jun 2024 13:35:14 +0200 Message-ID: <20240613113258.999942749@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113247.525431100@linuxfoundation.org> References: <20240613113247.525431100@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.10-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");