Skip to content

selftests: tpm2: Determine available PCR bank

Stefan Berger linux-integrity linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 10 repliesIn review
  2. v33 patches 3 repliesSuperseded

Changes in v4 from the cover letter

- Switch to query TPM2_GET_CAP to determine the available PCR banks
- Moved call to reset DA lock into finally branch at end of test
- Dropped patch 3

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests: tpm2: Determine available PCR banktools/testing/selftests/tpm2/tpm2.py tools/testing/selftests/tpm2/tpm2_tests.py+52 -85 replies
2/2selftests: tpm2: Reset the dictionary attack locktools/testing/selftests/tpm2/tpm2_tests.py+2 -05 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJarkko Sakkinen
1/2A-b T-b
2/2

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

Read the v4 thread

Cover letter [PATCH v4 0/2] selftests: tpm2: Determine available PCR bank

From: Stefan Berger <[email protected]>

This series of patches fixes two issues with TPM2 selftest.
- Determines available PCR banks for use by test cases
- Resets DA lock on TPM2 to avoid subsequent test failures

Stefan

v4:
- Switch to query TPM2_GET_CAP to determine the available PCR banks
- Moved call to reset DA lock into finally branch at end of test
- Dropped patch 3

v3:
- Mention SHA-256 PCR bank as alternative in patch 1 description

v2:
- Clarified patch 1 description
- Added patch 3 with support for SHA-384 and SHA-512

Stefan Berger (2):
selftests: tpm2: Determine available PCR bank
selftests: tpm2: Reset the dictionary attack lock

 tools/testing/selftests/tpm2/tpm2.py       | 31 ++++++++++++++++++++++
 tools/testing/selftests/tpm2/tpm2_tests.py | 31 ++++++++++++++++------
 2 files changed, 54 insertions(+), 8 deletions(-)
Signature · 1 line
2.31.1