* [PATCH] tpm: selftests: cleanup after unseal with wrong policy test
@ 2019-12-10 21:55 Tadeusz Struk
2019-12-11 17:58 ` Jarkko Sakkinen
0 siblings, 1 reply; 2+ messages in thread
From: Tadeusz Struk @ 2019-12-10 21:55 UTC (permalink / raw)
To: jarkko.sakkinen; +Cc: linux-integrity, linux-kernel, tadeusz.struk
Unseal with wrong policy tests affects DA lockout and eventually
causes to fail with:
"ProtocolError: TPM_RC_LOCKOUT: cc=0x00000153, rc=0x00000921",
when the test runs multiple times. Send tpm clear command
after the test to reset the DA counters.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.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 80521d46220c..22ae4183f2b9 100755
--- a/tools/testing/selftests/tpm2/test_smoke.sh
+++ b/tools/testing/selftests/tpm2/test_smoke.sh
@@ -2,3 +2,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
python -m unittest -v tpm2_tests.SmokeTest
+
+CLEAR_CMD=$(which tpm2_clear)
+if [ -n $CLEAR_CMD ]; then
+ tpm2_clear -T device
+fi
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tpm: selftests: cleanup after unseal with wrong policy test
2019-12-10 21:55 [PATCH] tpm: selftests: cleanup after unseal with wrong policy test Tadeusz Struk
@ 2019-12-11 17:58 ` Jarkko Sakkinen
0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Sakkinen @ 2019-12-11 17:58 UTC (permalink / raw)
To: Tadeusz Struk; +Cc: linux-integrity, linux-kernel
On Tue, Dec 10, 2019 at 01:55:20PM -0800, Tadeusz Struk wrote:
> Unseal with wrong policy tests affects DA lockout and eventually
> causes to fail with:
> "ProtocolError: TPM_RC_LOCKOUT: cc=0x00000153, rc=0x00000921",
> when the test runs multiple times. Send tpm clear command
> after the test to reset the DA counters.
>
> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
You could pick this also to the same patch set.
/Jarkko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-11 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 21:55 [PATCH] tpm: selftests: cleanup after unseal with wrong policy test Tadeusz Struk
2019-12-11 17:58 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).