From: Josh Zimmerman <joshz@google.com> To: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, Jason Gunthorpe <jgunthorpe@obsidianresearch.com>, tpmdd-devel@lists.sourceforge.net, gregkh@linuxfoundation.org, stable@vger.kernel.org Subject: [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown Date: Fri, 14 Jul 2017 12:57:59 -0700 [thread overview] Message-ID: <20170714195803.7035-1-joshz@google.com> (raw) This is a backport to the 4.4 stable kernel. I had to manually apply a couple of cherry picks and resolve some merge conflicts, so some of this may be worth a closer look and test on Jarkko's or some other TPM maintainer's part 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.4 since this bug can lock users out of their TPMs. drivers/base/core.c | 6 +++++- drivers/char/tpm/tpm-chip.c | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- drivers/char/tpm/tpm-dev.c | 15 +++++++++++---- drivers/char/tpm/tpm-interface.c | 49 ++++++++++++++++++++++++++----------------------- drivers/char/tpm/tpm-sysfs.c | 18 +++++++++++++++--- drivers/char/tpm/tpm.h | 15 +++++++++------ drivers/char/tpm/tpm2-cmd.c | 8 ++++---- drivers/char/tpm/tpm_atmel.c | 14 +++++++------- drivers/char/tpm/tpm_i2c_atmel.c | 16 ++++++++-------- drivers/char/tpm/tpm_i2c_infineon.c | 6 +++--- drivers/char/tpm/tpm_i2c_nuvoton.c | 22 +++++++++++----------- drivers/char/tpm/tpm_infineon.c | 22 +++++++++++----------- drivers/char/tpm/tpm_nsc.c | 20 ++++++++++---------- drivers/char/tpm/tpm_tis.c | 16 ++++++++-------- include/linux/device.h | 2 ++ 15 files changed, 237 insertions(+), 113 deletions(-)
next reply other threads:[~2017-07-14 19:57 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-07-14 19:57 Josh Zimmerman [this message] 2017-07-14 19:58 ` [PATCH v1 1/4] tpm: Get rid of chip->pdev Josh Zimmerman 2017-07-14 19:58 ` [PATCH v1 2/4] tpm: Provide strong locking for device removal Josh Zimmerman 2017-07-14 19:58 ` [PATCH v1 3/4] Add "shutdown" to "struct class".' Josh Zimmerman 2017-07-18 15:48 ` Greg KH 2017-07-14 19:58 ` [PATCH v1 4/4] tpm: Issue a TPM2_Shutdown for TPM2 devices Josh Zimmerman 2017-07-18 15:49 ` Greg KH 2017-07-18 16:11 ` Josh Zimmerman 2017-07-18 16:29 ` Greg KH 2017-07-18 16:33 ` Josh Zimmerman 2017-07-18 15:50 ` [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown Greg KH -- strict thread matches above, loose matches on Subject: below -- 2017-07-13 0:41 Josh Zimmerman 2017-07-13 2:13 ` Josh Zimmerman 2017-07-13 12:23 ` Greg Kroah-Hartman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170714195803.7035-1-joshz@google.com \ --to=joshz@google.com \ --cc=gregkh@linuxfoundation.org \ --cc=jarkko.sakkinen@linux.intel.com \ --cc=jgunthorpe@obsidianresearch.com \ --cc=stable@vger.kernel.org \ --cc=tpmdd-devel@lists.sourceforge.net \ --subject='Re: [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).