From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:52716 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbdGMMXI (ORCPT ); Thu, 13 Jul 2017 08:23:08 -0400 Date: Thu, 13 Jul 2017 14:23:04 +0200 From: Greg Kroah-Hartman To: Josh Zimmerman Cc: Jarkko Sakkinen , Jason Gunthorpe , tpmdd-devel@lists.sourceforge.net, stable@vger.kernel.org Subject: Re: [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown Message-ID: <20170713122304.GA18527@kroah.com> References: <20170713004121.21750-1-joshz@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Wed, Jul 12, 2017 at 07:13:40PM -0700, Josh Zimmerman wrote: > On Wed, Jul 12, 2017 at 5:41 PM, Josh Zimmerman wrote: > > This patchset causes all devices in the tpm class to issue TPM2_Shutdown > > when the system is shutting down. > > > > As a prerequisite, it adds a "shutdown" method to "struct class". > > > > Backporting to 4.9 since this bug can lock users out of their TPMs. > > > > Backport of f77af1516584 'Add "shutdown" to "struct class".' and > > d1bd4a792d39 'tpm: Issue a TPM2_Shutdown for TPM2 devices.' > > > > drivers/base/core.c | 6 +++++- > > drivers/char/tpm/tpm-chip.c | 36 ++++++++++++++++++++++++++++++++++++ > > drivers/char/tpm/tpm-sysfs.c | 5 +++++ > > include/linux/device.h | 2 ++ > > 4 files changed, 48 insertions(+), 1 deletion(-) > > > In case this wasn't clear, this backport was tested on 4.9. I have not > yet tested on 4.4. I'm intending to test and send another patch for > that later this week (ideally tomorrow). Thanks, both now queued up in the 4.9-stable queue. greg k-h