Re: [PATCH v1 0/2] Run TPM2_Shutdown on system shutdown

Josh Zimmerman <[email protected]>
Newsgroups net.sourceforge.lists.tpmdd-devel,org.kernel.vger.stable
Message-ID <CAHSjozAxEnA1xSBi5fNgsVpJpbHMabKaq7GKZQn8x8iEOdAWjg@mail.gmail.com>
On Wed, Jul 12, 2017 at 5:41 PM, Josh Zimmerman <[email protected]> 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).
Josh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.