Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp834354ybn; Wed, 2 Oct 2019 06:58:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/ssL5DlFXeghsDHVBKFt+FQZDvDP+HePnbjtcU3VwAd1eKsicgKVxJMoJ+cmPC0TjMyMW X-Received: by 2002:a50:be87:: with SMTP id b7mr3995962edk.37.1570024721231; Wed, 02 Oct 2019 06:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570024721; cv=none; d=google.com; s=arc-20160816; b=tSO3mGvSCafNNCO7yPCoXCWBaJTeduIFniuqYAYm8Qko5GqSo2aB2rbdnLamhgywvF yo0OcBzA68hcwHjlgwrwCfF7+XptTUZqc0VEC3gEDVHXrZnBZI9Su0BjG9XaTVo97V2p dZtgkdFtCTz/1OLzNCwdttksVC5DskjPG7HMI1ii6bJUm5Bod+3SsZS8FV4ewZqVzUeF AUkl16WHRASGMVcEzQwSiCANq+le3Mq5ffYjQPw1mqTBSgwd9PiNQ9fH1gdnHsM2BT4x xk9VieKugkvb6CiXk4d72otGETOnVklgcWMNQhnvQ7YC9kvM9mXrJuC+Cfc0FmjGQ66x 4WZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S2AguzT08N+vURIAdx+/3DTvJp3YnjX+WQnKSU3R1RM=; b=rEIQHovuz0z+2NIGhDtoGeZhjyzeAcsT9TRoKhjndqSVKKaUB4S0h6QJoRY1hLMOXe 2n2lRIZG6mfMU+uR8ZyflyhjlBcolGkg1h1di3HKWxJuISR3EB15i00ppAGOR75L2r7Q h3aUycY71sxvcAF+XDseeLv6Zmx5By3oUdRg2uhoaRl/MUalBFei5klNcDGxZVbaSyR8 tb1WuvIfC0egNoBRvn6CsSq7tqapVex3b+Dti7Rju0TIX71XCGRheQt8NPMzIz8k6dDo ADFCEpS+iIt7NJvsiulNUbSWhEr9QsjWhW4+w67a8MWlRKfe2PMEaSwpJjx4Xsl7RK3Z yV/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MP93ep4P; 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 b44si11255531ede.451.2019.10.02.06.58.17; Wed, 02 Oct 2019 06:58:41 -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=MP93ep4P; 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 S1727667AbfJBN6B (ORCPT + 99 others); Wed, 2 Oct 2019 09:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:56604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbfJBN6B (ORCPT ); Wed, 2 Oct 2019 09:58:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 1CFF821783; Wed, 2 Oct 2019 13:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570024680; bh=hsQC6o71ybFmccqFc2OdD/0cntqTXO/+R3g0oF5wrIo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MP93ep4PEeCoVB8M7Bp6DhF7bZ2t5zKmQvmHd+npc4tzxZwucONmILipwmt/ZYxf3 Yd0F3Qb3YchV5ISjDJ2W2nknpkAr9Vlx7JaIr6ki2QhFIup1CfXaW+QSW25mEbB6HZ 7SwGFZQU1K85uO1scv4oX3rxW60qeuz6fYaSDi64= Date: Wed, 2 Oct 2019 15:57:58 +0200 From: Greg KH To: Jarkko Sakkinen Cc: linux-stabley@vger.kernel.org, Vadim Sukhomlinov , stable@vger.kernel.org, Douglas Anderson , Peter Huewe , Jason Gunthorpe , "open list:TPM DEVICE DRIVER" , open list Subject: Re: [PATCH 3/3] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations Message-ID: <20191002135758.GA1738718@kroah.com> References: <20191002131445.7793-1-jarkko.sakkinen@linux.intel.com> <20191002131445.7793-4-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191002131445.7793-4-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 04:14:44PM +0300, Jarkko Sakkinen wrote: > From: Vadim Sukhomlinov > > commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream > > 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 > --- > drivers/char/tpm/tpm-chip.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) What kernel version(s) is this for? thanks, greg k-h