Skip to content

Run TPM2_Shutdown on system shutdown

Josh Zimmerman via tpmdd-devel tpmdd-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest2 patches 4 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add "shutdown" to "struct class".drivers/base/core.c include/linux/device.h+7 -10 replies
2/2tpm: Issue a TPM2_Shutdown for TPM2 devices.drivers/char/tpm/tpm-chip.c drivers/char/tpm/tpm-sysfs.c+37 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-HartmanJarkko Sakkinen
SeriesR-b T-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] Run TPM2_Shutdown on system shutdown

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".

Since this bug can cause users to be locked out of their TPMs, I'd like this patch included in at least 4.4 and 4.9. 4.1 is nice-to-have but not essential.

gregkh Acked the proposal for stable in v3 of this patch.

 drivers/base/core.c          |  6 +++++-
 drivers/char/tpm/tpm-chip.c  | 34 ++++++++++++++++++++++++++++++++++
 drivers/char/tpm/tpm-sysfs.c |  3 +++
 include/linux/device.h       |  2 ++
 4 files changed, 44 insertions(+), 1 deletion(-)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot