From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f175.google.com ([209.85.192.175]:34614 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336AbdGMAmC (ORCPT ); Wed, 12 Jul 2017 20:42:02 -0400 Received: by mail-pf0-f175.google.com with SMTP id q85so20742259pfq.1 for ; Wed, 12 Jul 2017 17:42:02 -0700 (PDT) From: Josh Zimmerman To: Jarkko Sakkinen , Jason Gunthorpe , tpmdd-devel@lists.sourceforge.net, gregkh@linuxfoundation.org, stable@vger.kernel.org Subject: [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown Date: Wed, 12 Jul 2017 17:41:19 -0700 Message-Id: <20170713004121.21750-1-joshz@google.com> Sender: stable-owner@vger.kernel.org List-ID: 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(-)