Skip to content

backend/tpm: Resolve issue with TPM 2 DA lockout

Stefan Berger qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2backends/tpm: Record the last command sent to the TPMbackends/tpm/tpm_emulator.c backends/tpm/tpm_util.c include/sysemu/tpm_util.h+21 -00 replies
2/2backends/tpm: Send TPM2_Shutdown upon VM resetbackends/tpm/tpm_emulator.c backends/tpm/tpm_int.h backends/tpm/trace-events+39 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] backend/tpm: Resolve issue with TPM 2 DA lockout

This series of patches resolves an issue with a TPM 2's dictionary attack lockout logic being triggered upon well-timed VM resets. Normally, the OS TPM driver sends a TPM2_Shutdown to the TPM 2 upon reboot and before a VM is reset. However, the OS driver cannot do this when the user resets a VM. In this case QEMU must send the command because otherwise several well- timed VM resets will trigger the TPM 2's dictionary attack (DA) logic and it will then refuse to do certain key-related operations until the DA logic has timed out.

Regards,
Stefan

Stefan Berger (2):
backends/tpm: Record the last command sent to the TPM backends/tpm: Send TPM2_Shutdown upon VM reset

 backends/tpm/tpm_emulator.c | 44 +++++++++++++++++++++++++++++++++++++
 backends/tpm/tpm_int.h      |  3 +++
 backends/tpm/tpm_util.c     |  9 ++++++++
 backends/tpm/trace-events   |  1 +
 include/sysemu/tpm_util.h   |  3 +++
 5 files changed, 60 insertions(+)
Signature · 1 line
2.35.3