Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2228182ybe; Tue, 3 Sep 2019 09:41:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqymubzeE8FdgaHPay81QizvhJYIgDQOJUSfduADkBxPNYWFHKxPJ1+5wpygfKzSVAnflBYw X-Received: by 2002:aa7:8592:: with SMTP id w18mr15677803pfn.237.1567528862767; Tue, 03 Sep 2019 09:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567528862; cv=none; d=google.com; s=arc-20160816; b=YxiyMujo5sYYH27BNkbUvWUEyvtlZm2V7ATfPycbu8lzoIMjKlWVbEHmHLr+ahu+oN JLZY3PvQFY4UQJyw1qiMp4jlDTjiW6hiPIvIJfBc8rqul+1Vd4poZIlBR8ddCnmLh2Sx gTULM5jXMIoUQxkSwyrpyy/0LvbsNeerTDHg22/rgyAh/soBBqqTZKOpBDF11492KIRA mrohY35FO6GvrTTxv2lbGncegYhUAgZ2e5B7CBiOxQqh45TxebDZBO/sVIibOmvfJg2E FrIos2z8R9SK/d0Yum2kTmd+6mM04O3WMmKDq7GVL7bOyDkIYjur10bNS0pLeCIy3TqA zFnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N4ZEq7vH4LyybBLltNPsggnz+MnaF8ltq7+1mV3M7z8=; b=RmnbscqNQLUj42l6yZjUecljin5sx3BvxhwRlWNPqOzxV/XMQhtO4//8y0uL/Uf4Rx S/MxVo6zxGYfspnwjvtvaSUBFWIIA16eeizVi01jAj+tSaPVO6of8vc6lPhEv1ynuv7w mB8e1V0baJA5pMWFl0PfOgf9OBjrH9X68f2HAzy7sNMWm4S8jX/RJotVQhfrVbtbiT35 E6n/3ZdaV6eGNeUZ1tYEc/bvT6DB+zH4n6CNLRmf/mdJ5MPniHASZe74vCAGLx/i1J17 bHY0Fe8PMmLxzxgbEdJ3zxrnEt/peHmpRlX79qc36omon2X1dzSu9lYSfeeC9tcDFuuB xqpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jkuHlxpe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k131si14992910pgc.525.2019.09.03.09.40.46; Tue, 03 Sep 2019 09:41:02 -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=@chromium.org header.s=google header.b=jkuHlxpe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731479AbfICQjw (ORCPT + 99 others); Tue, 3 Sep 2019 12:39:52 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:45038 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730594AbfICQjt (ORCPT ); Tue, 3 Sep 2019 12:39:49 -0400 Received: by mail-io1-f67.google.com with SMTP id j4so37343899iog.11 for ; Tue, 03 Sep 2019 09:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N4ZEq7vH4LyybBLltNPsggnz+MnaF8ltq7+1mV3M7z8=; b=jkuHlxpeTffQzyKV7i+2JpBXYeno5qGkifyuRpdFr9yRwi+/bp2jvkxx9lYBVPAkpc QoZrOZWkcUWulrSc1aWcPUCpSqIXq3wwat3oMQyk/b84xNgzpclPZvcP0kSIs7YfB7i6 CBNOVJronTNdu4mWyF/x5DwEr0QXKAykO90Ug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N4ZEq7vH4LyybBLltNPsggnz+MnaF8ltq7+1mV3M7z8=; b=cPkfyDFwW5QDNcG5UUTwsZaewAMI0y4aQ+RvHiQxQDZWAOF+Yi5D5fC14QUQEm0rL+ pzc6v079lyFBxBpTmnuAth8bO8sTtu7G+jPriEDTy/tMS73xNEZCw6iZBobZTmQMpcCA mBROzq96YjN9bmQimCNXFwGootMikQpVOAb1P7qhNu/OTeyf6IcdTvPpqfdPY9I6ae+g wD91sHPuRjcKEJNP7aCd/VAwhYOqGfOR2lht9WoykHtH10O+50bwsOxafzkoJajfehL8 xg+7bxgbW25cA5zZjGFvW5A5FXbJOHdAD+n1fbZxBEqNXg20jSWSdXMW9JzYzhB+yrr7 KSqg== X-Gm-Message-State: APjAAAX3nKi25T8sP1gOlZ92nDdsNqA1seR1RYF35ajVG8zXmyuqcCPN lB1T1C/yVoZ0pnwxQbbNHs8/0ip5D/Y= X-Received: by 2002:a5d:9403:: with SMTP id v3mr33440657ion.281.1567528788802; Tue, 03 Sep 2019 09:39:48 -0700 (PDT) Received: from mail-io1-f53.google.com (mail-io1-f53.google.com. [209.85.166.53]) by smtp.gmail.com with ESMTPSA id j26sm11423388ioe.18.2019.09.03.09.39.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Sep 2019 09:39:48 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id u185so33568980iod.10 for ; Tue, 03 Sep 2019 09:39:48 -0700 (PDT) X-Received: by 2002:a02:a703:: with SMTP id k3mr26897198jam.12.1567528787667; Tue, 03 Sep 2019 09:39:47 -0700 (PDT) MIME-Version: 1.0 References: <20190903162519.7136-1-sashal@kernel.org> <20190903162519.7136-126-sashal@kernel.org> In-Reply-To: <20190903162519.7136-126-sashal@kernel.org> From: Doug Anderson Date: Tue, 3 Sep 2019 09:39:38 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH AUTOSEL 4.19 126/167] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations To: Sasha Levin , Jarkko Sakkinen Cc: LKML , "# 4.0+" , Vadim Sukhomlinov , linux-integrity@vger.kernel.org, Jason Gunthorpe 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 Hi, On Tue, Sep 3, 2019 at 9:28 AM Sasha Levin wrote: > > From: Vadim Sukhomlinov > > [ Upstream commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 ] > > 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. > > Fixes: d1bd4a792d39 ("tpm: Issue a TPM2_Shutdown for TPM2 devices.") > Cc: stable@vger.kernel.org > Signed-off-by: Vadim Sukhomlinov > [dianders: resolved merge conflicts with mainline] > Signed-off-by: Douglas Anderson > Reviewed-by: Jarkko Sakkinen > Signed-off-by: Jarkko Sakkinen > Signed-off-by: Sasha Levin > --- > drivers/char/tpm/tpm-chip.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Jarkko: did you deal with the issues that came up in response to my post? Are you happy with this going into 4.19 stable at this point? I notice this has your Signed-off-by so maybe? -Doug