Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2219921imm; Mon, 28 May 2018 04:11:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYdAykUahO8TIWRYL5Wa2beZlkGxoCUyI57yPNn46Dk7AqZbq2gna8YCZN2XsKOf0/c/+2 X-Received: by 2002:a17:902:848b:: with SMTP id c11-v6mr13254149plo.132.1527505894955; Mon, 28 May 2018 04:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527505894; cv=none; d=google.com; s=arc-20160816; b=OgXsjVr6xtF5FiRCyDwbKo95p9so2k+DLbqaSwusNLzAOvGAlI5OplRHtDuf+0DqLW mrAB+LR7C6OK8J7NjUor5MJVWq15eBrtH3HRGvW24F/CP9tYpNdFgaueUocmLzGHTuKl /WeB/RJo/59vBhgPXMYkBwNeWnfw0twwEPfihTkTnes0yPBELazwie2pszw8SHbSgaiX LXXAM4EZjJz9PsxiUj5UPAi8Kqxod921rjUQcoddg28HZKW3HXSQSHq5GO4INO0F55ou awB8e9MDnyPkoV6xzhigW6Lk3To9RxdLpkRDgK9qZmER3aovPMX4+vudKBR/cRO01U/V gd1w== 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=Tcc7cawWq6nkcm5Xx6gGPwseq7reyfgL+PozJGM9uxk=; b=L6025rFBx15Hvfnc3rZHFWnidkPVgKVGDFAgiamRzWulNhUHCN6hjOXzTitKlqJ0h3 CCjXAIa02ji4gk4BWLgdYtPcydhN40h5aBaYuD6HtWwnhqqs4rIgmf4RXsw5J+8JhtXd Htr2448KqZ0xu8infK7Ryefe2T1gYr+zdUKktQkc1rBoY94/yMXXAFlp8Q5T8LxQfLyB /JalQ8/aNQdP0o4sMqxPVpxZumjtNytssjjg3fVVlCm/VxVuK9N/LjO1ImiEaHwVw/8t gwK276dMJW385F4l6X2UfwvkgHERFTo9ijXOIbliePWbktIcuDHHfs+ldKN/owg0Kb0h GtWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SW+A151I; 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 p12-v6si14559773pgu.358.2018.05.28.04.11.20; Mon, 28 May 2018 04:11:34 -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=SW+A151I; 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 S1423876AbeE1LKK (ORCPT + 99 others); Mon, 28 May 2018 07:10:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:58162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423851AbeE1LKB (ORCPT ); Mon, 28 May 2018 07:10:01 -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 D2B8520845; Mon, 28 May 2018 11:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527505801; bh=gq4rUo9v9CMYOhqSocEcrDKitz2qyosUjvhs5s2SM+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SW+A151ITYLo9FXnYJWICA6U0QVPWJIEmHH9xpLVXPq7aO8CQFaci7pFP9tqEXgxM ifTntqppobCNgu9aVAzNz9HMY/Jyc3BJmOplOcd2W1KKHgYCGkcfmYj7BZomO3MF86 N36+Q34HNOvDciT4I33t5CN+J8vHsbha/+bJaZDc= 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.16 133/272] ima: Fix Kconfig to select TPM 2.0 CRB interface Date: Mon, 28 May 2018 12:02:46 +0200 Message-Id: <20180528100252.270569226@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100240.256525891@linuxfoundation.org> References: <20180528100240.256525891@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.16-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