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 9EA471448F2; Thu, 13 Jun 2024 12:08:11 +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=1718280491; cv=none; b=Bi4D0p+l+eczAqy099wzVEHc6QVY6/fbniefaehUxsXIptP8zjNUxKTre6FXXX0nlwkb5HAhZ+2/DzenFl5PhpIYIc2f5vizyZ8+qooWxBMIW2IhCUBUv95ZyNfjcoxgpYheULFmMrldckQZGawEgbLreVkjcqJBHAGS3FGXGh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280491; c=relaxed/simple; bh=+R9QajS5uRLJjJwLNqm1Uo7zW/iVbByEN7lXPNrBHBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cnh5UFgY094ML98/deC33Vq8e9QtudHV1yiyvqNU25w8mQICjNbmhT926gu+oTLUSnoMNeM7pYeR7InUh1mUSlLz26cnZMLZ1y8t4wC8q7BYjhMrC5agh67KD0Y/mP6Qz3hjEf6UH3HTmJHKRaGiF3l27N2HVQHkltPuIbxKMvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ClY7t7hb; 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="ClY7t7hb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27746C2BBFC; Thu, 13 Jun 2024 12:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718280491; bh=+R9QajS5uRLJjJwLNqm1Uo7zW/iVbByEN7lXPNrBHBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClY7t7hbn1ECNGRABALxMcurUBcXj6Nhwj7HmA7rOoJzr1oL2enxPiEl5nmvZELuG OoeWLZ7+4deBgdfBwFHkZqJjjovFI7N7cb0H+FqERu3lvjYoDimj0TdKd1hEWXSUYS Cepgbc45CzEg/8paHkjFZPZgPyFPXuxtrBnvj2X8= 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.6 070/137] crypto: ecrdsa - Fix module auto-load on add_key Date: Thu, 13 Jun 2024 13:34:10 +0200 Message-ID: <20240613113226.013043297@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113223.281378087@linuxfoundation.org> References: <20240613113223.281378087@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.6-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");