From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 299BDC31E45 for ; Thu, 13 Jun 2019 15:08:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0114921773 for ; Thu, 13 Jun 2019 15:08:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387793AbfFMPIs (ORCPT ); Thu, 13 Jun 2019 11:08:48 -0400 Received: from mga18.intel.com ([134.134.136.126]:33812 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732375AbfFMN7E (ORCPT ); Thu, 13 Jun 2019 09:59:04 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2019 06:59:03 -0700 X-ExtLoop1: 1 Received: from bbouchn-mobl.ger.corp.intel.com (HELO localhost) ([10.252.35.22]) by orsmga005.jf.intel.com with ESMTP; 13 Jun 2019 06:59:00 -0700 Date: Thu, 13 Jun 2019 16:58:58 +0300 From: Jarkko Sakkinen To: Douglas Anderson Cc: Peter Huewe , groeck@chromium.org, Vadim Sukhomlinov , apronin@chromium.org, mka@chromium.org, swboyd@chromium.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Jason Gunthorpe , Greg Kroah-Hartman , linux-integrity@vger.kernel.org Subject: Re: [PATCH] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations Message-ID: <20190613135858.GB12791@linux.intel.com> References: <20190610220118.5530-1-dianders@chromium.org> <20190612191618.GC3378@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612191618.GC3378@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 10:16:18PM +0300, Jarkko Sakkinen wrote: > On Mon, Jun 10, 2019 at 03:01:18PM -0700, Douglas Anderson wrote: > > From: Vadim Sukhomlinov > > > > TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling > > future TPM operations. TPM 1.2 behavior was different, future TPM > > operations weren't disabled, causing rare issues. This patch ensures > > that future TPM operations are disabled. > > > > Signed-off-by: Vadim Sukhomlinov > > [dianders: resolved merge conflicts with mainline] > > Signed-off-by: Douglas Anderson > > Nice catch. Thank you. > > Reviewed-by: Jarkko Sakkinen Applied to my master branch. I also added a fixes tag. Can you check that it looks legit to you? /Jarkko