TPM: workaround to enforce PCR updates across suspends
Subsystems (2)
PATCH 1/1 TPM: workaround to enforce PCR updates across suspends
Add a workaround for TPM's which fail to flush last written PCR values in a TPM_SaveState, in preparation for suspend.
Signed-off-by David Safford <[email protected]>
Acked-by Rajiv Andrade <[email protected]>
Documentation/kernel-parameters.txt +10 -0
@@ -98,6 +98,7 @@ SWSUSP Software suspend (hibernation) is enabled. SUSPEND System suspend states are enabled. FTRACE Function tracing enabled. + TPM TPM drivers are enabled. TS Appropriate touchscreen support is enabled. UMS USB Mass Storage support is enabled. USB USB support is enabled.
@@ -2588,6 +2589,15 @@ tp720= [HW,PS2] + tpm_suspend_pcr=[HW,TPM] + Format: integer pcr id + Specify that at suspend time, the tpm driver + should extend the specified pcr with zeros, + as a workaround for some chips which fail to + flush the last written pcr on TPM_SaveState. + This will guarantee that all the other pcrs + are saved. + trace_buf_size=nn[KMG] [FTRACE] will set tracing buffer size.
drivers/char/tpm/tpm.c +40 -7
63 lines not on this page · raw message
Quoted 5 lines · Rajiv Andrade
Add a workaround for TPM's which fail to flush last written PCR values in a
TPM_SaveState, in preparation for suspend.Signed-off-by David Safford <[email protected]>Acked-by Rajiv Andrade <[email protected]>
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next
Signature · 2 lines
James Morris <[email protected]>