[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 12 Dec 2019 09:48:59 -0800
From: Tadeusz Struk <tadeusz.struk@...el.com>
To: jarkko.sakkinen@...ux.intel.com
Cc: tadeusz.struk@...el.com, peterz@...radead.org,
linux-kernel@...r.kernel.org, jgg@...pe.ca, mingo@...hat.com,
jeffrin@...agiritech.edu.in, linux-integrity@...r.kernel.org,
will@...nel.org, peterhuewe@....de
Subject: [PATCH =v2 3/3] tpm: selftest: cleanup after unseal with wrong
auth/policy test
Unseal with wrong auth or wrong policy test affects DA lockout
and eventually causes the tests to fail with:
"ProtocolError: TPM_RC_LOCKOUT: rc=0x00000921"
when the tests run multiple times.
Send tpm clear command after the test to reset the DA counters.
Signed-off-by: Tadeusz Struk <tadeusz.struk@...el.com>
---
tools/testing/selftests/tpm2/test_smoke.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/testing/selftests/tpm2/test_smoke.sh b/tools/testing/selftests/tpm2/test_smoke.sh
index cb54ab637ea6..8155c2ea7ccb 100755
--- a/tools/testing/selftests/tpm2/test_smoke.sh
+++ b/tools/testing/selftests/tpm2/test_smoke.sh
@@ -3,3 +3,8 @@
python -m unittest -v tpm2_tests.SmokeTest
python -m unittest -v tpm2_tests.AsyncTest
+
+CLEAR_CMD=$(which tpm2_clear)
+if [ -n $CLEAR_CMD ]; then
+ tpm2_clear -T device
+fi
Powered by blists - more mailing lists