tpm2-abrmd icon indicating copy to clipboard operation
tpm2-abrmd copied to clipboard

Invalid TABRMD_TCTI

Open zhenyih opened this issue 4 years ago • 3 comments

HI Folks,

I'm on a Dell with TPM2, Ubuntu 20.04. Pulling latest https://github.com/tpm2-software/tpm2-abrmd, seeing the following error, any guidance on what might be happening here?

thanks.

`FAIL: test/integration/auth-session-max.int
FAIL: test/integration/auth-session-start-flush.int
FAIL: test/integration/auth-session-start-save.int
FAIL: test/integration/auth-session-start-save-load.int
FAIL: test/integration/max-transient-upperbound.int
FAIL: test/integration/get-capability-handles-transient.int
FAIL: test/integration/manage-transient-keys.int
FAIL: test/integration/session-gap.int
FAIL: test/integration/session-load-from-closed-connection.int
FAIL: test/integration/session-load-from-closed-connections-lru.int
FAIL: test/integration/session-load-from-open-connection.int
XFAIL: test/integration/start-auth-session.int
FAIL: test/integration/tcti-cancel.int
FAIL: test/integration/tcti-connections-max.int
FAIL: test/integration/tcti-double-finalize.int
FAIL: test/integration/tcti-set-locality.int
FAIL: test/integration/hash-sequence.int
FAIL: test/integration/not-enough-handles-for-command.int
FAIL: test/integration/password-authorization.int
FAIL: test/integration/tpm2-command-flush-no-handle.int
FAIL: test/integration/util-buf-max-upper-bound.int
============================================================================
Testsuite summary for tpm2-abrmd 2.3.3-11-g6b1a88a
============================================================================
# TOTAL: 21
# PASS:  0
# SKIP:  0
# XFAIL: 1
# FAIL:  20
# XPASS: 0
# ERROR: 0
============================================================================`

specifically, the test-suite.log seeing:

====================================================
   tpm2-abrmd 2.3.3-11-g6b1a88a: ./test-suite.log
====================================================

# TOTAL: 21
# PASS:  0
# SKIP:  0
# XFAIL: 1
# FAIL:  20
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test/integration/auth-session-max
=======================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/auth-session-max.int (exit status: 1)

FAIL: test/integration/auth-session-start-flush
===============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/auth-session-start-flush.int (exit status: 1)

FAIL: test/integration/auth-session-start-save
==============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/auth-session-start-save.int (exit status: 1)

FAIL: test/integration/auth-session-start-save-load
===================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/auth-session-start-save-load.int (exit status: 1)

FAIL: test/integration/max-transient-upperbound
===============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/max-transient-upperbound.int (exit status: 1)

FAIL: test/integration/get-capability-handles-transient
=======================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/get-capability-handles-transient.int (exit status: 1)

FAIL: test/integration/manage-transient-keys
============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/manage-transient-keys.int (exit status: 1)

FAIL: test/integration/session-gap
==================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/session-gap.int (exit status: 1)

FAIL: test/integration/session-load-from-closed-connection
==========================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/session-load-from-closed-connection.int (exit status: 1)

FAIL: test/integration/session-load-from-closed-connections-lru
===============================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/session-load-from-closed-connections-lru.int (exit status: 1)

FAIL: test/integration/session-load-from-open-connection
========================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/session-load-from-open-connection.int (exit status: 1)

XFAIL: test/integration/start-auth-session
==========================================

Invalid TABRMD_TCTI, see --help.
XFAIL test/integration/start-auth-session.int (exit status: 1)

FAIL: test/integration/tcti-cancel
==================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/tcti-cancel.int (exit status: 1)

FAIL: test/integration/tcti-connections-max
===========================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/tcti-connections-max.int (exit status: 1)

FAIL: test/integration/tcti-double-finalize
===========================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/tcti-double-finalize.int (exit status: 1)

FAIL: test/integration/tcti-set-locality
========================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/tcti-set-locality.int (exit status: 1)

FAIL: test/integration/hash-sequence
====================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/hash-sequence.int (exit status: 1)

FAIL: test/integration/not-enough-handles-for-command
=====================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/not-enough-handles-for-command.int (exit status: 1)

FAIL: test/integration/password-authorization
=============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/password-authorization.int (exit status: 1)

FAIL: test/integration/tpm2-command-flush-no-handle
===================================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/tpm2-command-flush-no-handle.int (exit status: 1)

FAIL: test/integration/util-buf-max-upper-bound
===============================================

Invalid TABRMD_TCTI, see --help.
FAIL test/integration/util-buf-max-upper-bound.int (exit status: 1)


zhenyih avatar Jan 11 '21 22:01 zhenyih

Seems to be failing in the lookup: https://github.com/tpm2-software/tpm2-abrmd/blob/6b1a88a05542289c0217ce7a72bf964212fafc67/scripts/int-test-setup.sh#L70-L88

Can you apply the patch below and let me know what the output is? Do you have the ibmtpm simulator or the software simulator installed? When you pulled did you reconfigure the project, configure.ac changed?

diff --git a/scripts/int-test-setup.sh b/scripts/int-test-setup.sh
index e93a0b6f5a97..d6d6308ecb04 100755
--- a/scripts/int-test-setup.sh
+++ b/scripts/int-test-setup.sh
@@ -82,7 +82,7 @@ in
         fi
         ;;
     *)
-        echo "Invalid TABRMD_TCTI, see --help."
+        echo "Invalid TABRMD_TCTI, got: \"${TABRMD_TCTI}\" see --help."
         exit 1

williamcroberts avatar Jan 12 '21 14:01 williamcroberts

Do you have a TABRMD_TCTI env variable set by any chance? Is it still an issue?

tstruk avatar Mar 18 '21 18:03 tstruk

I also encountered the similar error on my testing machine with an physical TPM2.0 Noted that there is no TABRMD_TCTI pre-defined.

Invalid TABRMD_TCTI, got: "" see --help. FAIL test/integration/auth-session-max.int (exit status: 1)

sickc avatar Mar 30 '21 01:03 sickc