Received: by 10.223.185.116 with SMTP id b49csp1092759wrg; Fri, 23 Feb 2018 11:48:31 -0800 (PST) X-Google-Smtp-Source: AH8x225i8WD1QSjr4sjtJx8vroMUEyL9ZJz1eIrLKr067Q/2iJ7UaTqP+IYf+ufXGxEEmRzybjjV X-Received: by 2002:a17:902:7c92:: with SMTP id y18-v6mr2716894pll.58.1519415311554; Fri, 23 Feb 2018 11:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415311; cv=none; d=google.com; s=arc-20160816; b=OTyj5XOkUTMGSh8XgdgE+qyfsEkOtpJR5w1gJyE/j2YLjTTuCUVaW8bQJt42VMCJuV BtI09qvw7n2K9yHRN/SWfK56RvXwQ+zyMRWNX8m2ypalf8mbD2Ln/QphqpWD+vi8LGKK jj0XmhbCfhE6EGdWaR2c6qm+4bSkPYnzGtbXT3eo/fn47xlW7/9JMkYO/E0ti6vNk0Jx ETfEq/7Hh9Smx/ktfJry84UaEdYZIpTBAFyKf6E7fu6i3xjncf6ipZoLcJ/9eOxSSWH6 K0SNJ7S1JtOpVXqtSJmaAtRCbq+kzJyXdchHRdFviXsUlMCKiVtADxIVzj4aSAw7w+BI 5i4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=DZ29spuYEgpme/1RjPgDBFvHzL3O408ljZkcvOdoGzo=; b=esXPwXUVoj8mDCNddBvTK09F1XCCvNHlbyfLFZe7Tc+3Egv6s5p9wQqA4RwzgyyW1V MWrOsxg/MXcOuoJcD3H5sRhAIbn9OM4lPD1FNQB0CFG1PNFbXlu4VQsbe+K9e9+vay5o LJ6BMXJ/En71x/sAh9jikSCC+l5E2iRYHV0ATQ8BDk+NF7ITvzNWQ8BJ0f49crNwUvz4 py6bcUSXyjB79UEvzegfFM8LjRjTSK3nzzM/0OYMGrQrKusv7kCOUSmuJ7fnklY7e9fZ ndutNu7cFl9HVtha7FpsmZb8e5JfPUYnPPaynvrTCNCP58XI8A4ol3WS6klEZgZRclrP tsrw== ARC-Authentication-Results: i=1; mx.google.com; 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 q26si1706216pfh.129.2018.02.23.11.48.16; Fri, 23 Feb 2018 11:48:31 -0800 (PST) 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; 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 S934242AbeBWSrs (ORCPT + 99 others); Fri, 23 Feb 2018 13:47:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44658 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933902AbeBWSrq (ORCPT ); Fri, 23 Feb 2018 13:47:46 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 40868FDC; Fri, 23 Feb 2018 18:47:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , David Howells Subject: [PATCH 4.9 120/145] security/keys: BIG_KEY requires CONFIG_CRYPTO Date: Fri, 23 Feb 2018 19:27:06 +0100 Message-Id: <20180223170740.329173598@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 3cd18d1981731d5f74b8e437009124ac99905d14 upstream. The recent rework introduced a possible randconfig build failure when CONFIG_CRYPTO configured to only allow modules: security/keys/big_key.o: In function `big_key_crypt': big_key.c:(.text+0x29f): undefined reference to `crypto_aead_setkey' security/keys/big_key.o: In function `big_key_init': big_key.c:(.init.text+0x1a): undefined reference to `crypto_alloc_aead' big_key.c:(.init.text+0x45): undefined reference to `crypto_aead_setauthsize' big_key.c:(.init.text+0x77): undefined reference to `crypto_destroy_tfm' crypto/gcm.o: In function `gcm_hash_crypt_remain_continue': gcm.c:(.text+0x167): undefined reference to `crypto_ahash_finup' crypto/gcm.o: In function `crypto_gcm_exit_tfm': gcm.c:(.text+0x847): undefined reference to `crypto_destroy_tfm' When we 'select CRYPTO' like the other users, we always get a configuration that builds. Fixes: 428490e38b2e ("security/keys: rewrite all of big_key crypto") Signed-off-by: Arnd Bergmann Signed-off-by: David Howells Signed-off-by: Greg Kroah-Hartman --- security/keys/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/security/keys/Kconfig +++ b/security/keys/Kconfig @@ -45,6 +45,7 @@ config BIG_KEYS bool "Large payload keys" depends on KEYS depends on TMPFS + select CRYPTO select CRYPTO_AES select CRYPTO_GCM help