Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp985556ybn; Wed, 2 Oct 2019 09:08:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTDBHqK4OXzXaM/5wSwiIcmES8kASSal8JGs1ooo5xNBbCzugXWLEwvNi+JxXBlPtKNfbN X-Received: by 2002:a17:906:6d4:: with SMTP id v20mr3672257ejb.223.1570032533727; Wed, 02 Oct 2019 09:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570032533; cv=none; d=google.com; s=arc-20160816; b=qqauvnkcuVeupJeAxkYAnBQGuylbSaEVNMykpbmbox+WrFl4nDDPJEp096lG8J7kP+ Pv3zifhqKOiWlGq3qk93e4TOKIitbRHufrWsr2N406NNB6tyej0J52QkD3YRshZj0M/3 LZv6SWkAGLYfqqbtx7Mim6G5nKoNZVa2P1wmMkxUqhuGwGb/cztIempdcU/O10cVKHdF ynqtXv3W7Bi7YhT711TYZRuxJUU0E7jYZnh2QcZyWSjWNPMDPKTaqwJ9jywzs4alGS+N FWwk9Q0W9avMCTBqhF+8yr/SyWtKCiBVCRBwrYGSLtmR7laG9g0oDilooPauBJK5oYYy SEQA== 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=ot5Cs0A913u0UGV7jmHRvRuSP2Oq7XCwDWicObdNcjA=; b=zwlx56DlApK+yBPrwfAq/dUmmiJ5Qonet0BxNV9R0pZ8Qwpua/B3/1Jxxuy6AH1hB3 5YFvYljk1GypZGyaqOLjVy5DUoD8YSVJX5//e7ZPkiwEKsQt1obcs46LYD5BKQurHJh6 MvwUQWRb+A4GuEFvIXBtKQ9KZzWh1IbcwnhDu4LtfmHzc8/ChDX/xLeHPhmXFcwjC7Wg pThw0ds1w4j4bLF0WDBLGQmI70QqpgeMqNMXKqR6n+EvuP92UEfZixscB5u4t4CZywwa GoQ4cRgAOJoBKCvf5mzdOHCoOQYmIKnejKt2O/UVE+v/CKpn34mcfi0ciZg6gm5BX07S OboA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m3Pr3QAe; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14si11497106ede.421.2019.10.02.09.08.23; Wed, 02 Oct 2019 09:08:53 -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=m3Pr3QAe; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbfJBPRy (ORCPT + 99 others); Wed, 2 Oct 2019 11:17:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:34332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfJBPRy (ORCPT ); Wed, 2 Oct 2019 11:17:54 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 E6E3D21848; Wed, 2 Oct 2019 15:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570029473; bh=PFmYIaNXy6vtq/mdjpLzFTjO80J118W79JbEUkJYMfY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m3Pr3QAesDhKh6O9dfxT7jxn8uQ9ZIVWrckWbuWDif9e1cPlVH32TO28yqDhk5DgP rae8AhBkrNekkQ9ywyBOY9hDAqv48tKFlaMrPd2Rg9vePSyIc9I+MR75Vx/kzEhJQK NnNqRRAXAAzoBwPVborF2JYIAXpPy6aDyMOx9R6o= Date: Wed, 2 Oct 2019 11:17:51 -0400 From: Sasha Levin To: Greg KH Cc: Jarkko Sakkinen , 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: <20191002151751.GP17454@sasha-vm> References: <20191002131445.7793-1-jarkko.sakkinen@linux.intel.com> <20191002131445.7793-4-jarkko.sakkinen@linux.intel.com> <20191002135758.GA1738718@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191002135758.GA1738718@kroah.com> 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, Oct 02, 2019 at 03:57:58PM +0200, Greg KH wrote: >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? It would go to 4.19, we've recently reverted an incorrect backport of this patch. Jarkko, why is this patch 3/3? We haven't seen the first two on the mailing list, do we need anything besides this patch? -- Thanks, Sasha