Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3983152ybi; Mon, 29 Jul 2019 16:51:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyobufuc6wHTQTFI6O12SbCdDWpWpWx5SO/a/eJUJMP3zGibsRK+qdP9A5b/mKnsMafsfF+ X-Received: by 2002:a62:be04:: with SMTP id l4mr37739329pff.77.1564444293733; Mon, 29 Jul 2019 16:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564444293; cv=none; d=google.com; s=arc-20160816; b=FdvkuKY0TkXpEsNlXCTFw42ETtGE/mVns2KLF2vyUDP7BfowPEStWxGb1yodmYC8Zw s3WlHJEs7NWwzmDXaB4T+ZQhAD7e++7w35GbLCnrnp85debVqFBTbhMSKyK7SDOGQ2Ix Mhg2drP2snYb64Y46oEXBr7qgVRkv9CPxqZNEFFVVXqqrQ4bTCtL2QRh+JnAzjJU/XiT cPneNgOxC/P2BorQzvgzKApRoFrdonWbKQk82XIGZxZDf50ieb+/DBLlZRnwh8bbYxBB BAItOO1m/1XwAHC1+7x8/+crp8CKsTqsghmJz1qWzrlMp++Gcfup8FCAfOl/nOQJc5m6 UxZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H83ADQ+k+bTnoL7jtG9ppJFvZLDpFXOmyHBVLVxk3d0=; b=0kd5oN6UEYa7WMotMYpVP87k99dmlSRotNCnErMxz/sEUwGLdUOZk4xo8TfQoZETqo lJzL5YaKWLexpJQFisVruWNkm1Z4Ri6ROaaEi5SUvPm02+jJPZNDAH0OcdoqgAhmkXCc CT1v5WtA+N/iCYH/IBlCpxyMuJoXSPZORGKNSESJBsjlt0gEOUdf/oIycZRIjzDFJMS3 EJqLKrdHZ8Yu2FXrl7o5WScJ+aWma4qgRdxA5p7kM4LUyhuhwbGHVfkQV1l44mc1rQu7 ytTgQ46bnCS4x0aIX1JUly7AOJ1wAiefuaJ9VWB0Se1+bzOwbTBLmCTfWq22CsyvDYPa 0+Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1cX4Qm8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si24966838pgj.558.2019.07.29.16.51.18; Mon, 29 Jul 2019 16:51:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1cX4Qm8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388370AbfG2T1v (ORCPT + 99 others); Mon, 29 Jul 2019 15:27:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729943AbfG2T1u (ORCPT ); Mon, 29 Jul 2019 15:27:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB4CA217D6; Mon, 29 Jul 2019 19:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428469; bh=l9gRyO9IidlNojMDzg1+eyqr6O5J4ZzI0DHcDuMu6wM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1cX4Qm8kOXhU810qEu6sqZaqPRJZH713Dg+bq8HTnpEQH+XY2moCbQ/XP66i07gTP xDAl6bhAFijdaC/l6+AFyXXBVi3D+z8jyFJhbcGsGd/0TMnkVA+icJAU8LRdJ9RPhY BCyYBYKlbiJUBkBUGUT+qC8Xaal4u52xGk9vE78c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Herbert Xu , Sasha Levin Subject: [PATCH 4.14 086/293] crypto: asymmetric_keys - select CRYPTO_HASH where needed Date: Mon, 29 Jul 2019 21:19:37 +0200 Message-Id: <20190729190831.179501781@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 90acc0653d2bee203174e66d519fbaaa513502de ] Build testing with some core crypto options disabled revealed a few modules that are missing CRYPTO_HASH: crypto/asymmetric_keys/x509_public_key.o: In function `x509_get_sig_params': x509_public_key.c:(.text+0x4c7): undefined reference to `crypto_alloc_shash' x509_public_key.c:(.text+0x5e5): undefined reference to `crypto_shash_digest' crypto/asymmetric_keys/pkcs7_verify.o: In function `pkcs7_digest.isra.0': pkcs7_verify.c:(.text+0xab): undefined reference to `crypto_alloc_shash' pkcs7_verify.c:(.text+0x1b2): undefined reference to `crypto_shash_digest' pkcs7_verify.c:(.text+0x3c1): undefined reference to `crypto_shash_update' pkcs7_verify.c:(.text+0x411): undefined reference to `crypto_shash_finup' This normally doesn't show up in randconfig tests because there is a large number of other options that select CRYPTO_HASH. Signed-off-by: Arnd Bergmann Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- crypto/asymmetric_keys/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig index f3702e533ff4..d8a73d94bb30 100644 --- a/crypto/asymmetric_keys/Kconfig +++ b/crypto/asymmetric_keys/Kconfig @@ -15,6 +15,7 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE select MPILIB select CRYPTO_HASH_INFO select CRYPTO_AKCIPHER + select CRYPTO_HASH help This option provides support for asymmetric public key type handling. If signature generation and/or verification are to be used, @@ -34,6 +35,7 @@ config X509_CERTIFICATE_PARSER config PKCS7_MESSAGE_PARSER tristate "PKCS#7 message parser" depends on X509_CERTIFICATE_PARSER + select CRYPTO_HASH select ASN1 select OID_REGISTRY help @@ -56,6 +58,7 @@ config SIGNED_PE_FILE_VERIFICATION bool "Support for PE file signature verification" depends on PKCS7_MESSAGE_PARSER=y depends on SYSTEM_DATA_VERIFICATION + select CRYPTO_HASH select ASN1 select OID_REGISTRY help -- 2.20.1