All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] selftests: tpm2: Determine available PCR bank
@ 2021-11-28  4:10 Stefan Berger
  2021-11-28  4:10 ` [PATCH v4 1/2] " Stefan Berger
  2021-11-28  4:10 ` [PATCH v4 2/2] selftests: tpm2: Reset the dictionary attack lock Stefan Berger
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Berger @ 2021-11-28  4:10 UTC (permalink / raw)
  To: jarkko, linux-integrity
  Cc: peterhuewe, linux-kernel, linux-kselftest, skhan, Stefan Berger

From: Stefan Berger <stefanb@linux.ibm.com>

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-01-15 17:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28  4:10 [PATCH v4 0/2] selftests: tpm2: Determine available PCR bank Stefan Berger
2021-11-28  4:10 ` [PATCH v4 1/2] " Stefan Berger
2021-11-29 23:39   ` Jarkko Sakkinen
2021-12-24  1:12     ` Stefan Berger
2022-01-13 18:04       ` Stefan Berger
2022-01-15 15:53         ` Jarkko Sakkinen
2022-01-15 17:02           ` Jarkko Sakkinen
2021-11-28  4:10 ` [PATCH v4 2/2] selftests: tpm2: Reset the dictionary attack lock Stefan Berger
2021-11-29 23:43   ` Jarkko Sakkinen
2021-11-30  0:26     ` Stefan Berger
2021-12-01 10:16       ` Jarkko Sakkinen
2021-12-01 10:19         ` Jarkko Sakkinen
2021-12-01 14:52         ` Stefan Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.