Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2210956imm; Mon, 28 May 2018 04:02:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpcO6WmLxPLWd4u0juU6YG/ky71ygFjf3R+0yW858/PNM6dcID9Mhd2mssaXL4Fk+Eh/9Jq X-Received: by 2002:a62:ce4e:: with SMTP id y75-v6mr12804748pfg.175.1527505342633; Mon, 28 May 2018 04:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527505342; cv=none; d=google.com; s=arc-20160816; b=gWc3XUP0p25+lnDM0zdOLBsgm/2JWMQVm1AlAQkQWBzsn3BZEFYdfjDBIoDX6yOQIt KzoZjxaIBrDI69etWanCNUfBXQlQkRByhQ2JanMlhh8RoUNXB9H9ebbRt4kAlIYZfLoo pT+Nvo0pz2Fh9HF+9EHX68/xHWQ8jvTbn04muEYnaEL6P6HegUc+ixxCOywqZkfkR1Nk UeCPpc7nijuiVQOERfWS/lOcgor309YJMfyEXjoURyppfTRTcbyXHfHSFoqnHZeXp5mB vrfTNpg1PyHv6Ws1wrYU8/XGxyT/GuUGMjuCxyC9kh3mBm3Tq0kbcpuEFxrdpKtGCUW0 GpzQ== 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:dkim-signature :arc-authentication-results; bh=NfbLkeQtOFko21dZkbeWTe13K2CPq8cuY1qUVEtKdfw=; b=J9lEnONse4VVAhx4pPwbSXLv650CPQyvCn2sgchzJUmzukGXVAV1Xy22O31w4n1jGX jVAZx4OFbK5myHQ+9bgr23fFI9msvcCSfEzKAko+YtT2CKuhrH1Uks/1Nv45kM5mXs/d dS89lP5Gzv1F48z031EIl+TqG2RdiI/m7HxXT2xoD1icR7BqGLTUQBpMlBkFTAR769+U RNm+Zh3XyL/Q50IakJPAqxYwErobSoiXLrMlRbt+FMYfkk9k729IpAVmSuM1LgCYBzKF A74KdGu3zOUszwPKN3D2A2o8F6bNHVkRC87+uyGqah+9cD2FID+DU6f76vJ2gwJ2J/QM dj9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vBKKC5ZB; 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 r15-v6si5573855pgn.498.2018.05.28.04.02.07; Mon, 28 May 2018 04:02:22 -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=vBKKC5ZB; 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 S1164538AbeE1LAl (ORCPT + 99 others); Mon, 28 May 2018 07:00:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:48238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164726AbeE1LAg (ORCPT ); Mon, 28 May 2018 07:00:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 6211B2087E; Mon, 28 May 2018 11:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527505235; bh=TIN2zT+LTNA4mW3Dw10vu3Y7f769H+kfOKUhb6GdXfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vBKKC5ZBuIJK7QPykyUqQuUvKOL0pL8mwX4yeIUJlAqukr1e+A9FVsIQQrvYKDvLr 4iHXWwrvCmCMR9XFYq5LQ/VzFvNN21BilHJe9RUg/Og+gMjuQ5J0K0F+t/dtUP0hVZ xF1hQzWGts7dtyFRvldpqi5GyMoj2gtw51EDLMjc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiandi An , Mimi Zohar , Sasha Levin Subject: [PATCH 4.14 382/496] ima: Fix Kconfig to select TPM 2.0 CRB interface Date: Mon, 28 May 2018 12:02:47 +0200 Message-Id: <20180528100335.883857577@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jiandi An [ Upstream commit fac37c628fd5d68fd7298d9b57ae8601ee1b4723 ] TPM_CRB driver provides TPM CRB 2.0 support. If it is built as a module, the TPM chip is registered after IMA init. tpm_pcr_read() in IMA fails and displays the following message even though eventually there is a TPM chip on the system. ima: No TPM chip found, activating TPM-bypass! (rc=-19) Fix IMA Kconfig to select TPM_CRB so TPM_CRB driver is built in the kernel and initializes before IMA. Signed-off-by: Jiandi An Signed-off-by: Mimi Zohar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- security/integrity/ima/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -10,6 +10,7 @@ config IMA select CRYPTO_HASH_INFO select TCG_TPM if HAS_IOMEM && !UML select TCG_TIS if TCG_TPM && X86 + select TCG_CRB if TCG_TPM && ACPI select TCG_IBMVTPM if TCG_TPM && PPC_PSERIES help The Trusted Computing Group(TCG) runtime Integrity