tpm2-software / tpm2-tools

The source repository for the Trusted Platform Module (TPM2.0) tools
https://tpm2-software.github.io
721 stars 379 forks source link

Tests errors in PPC #3055

Open aplanas opened 2 years ago

aplanas commented 2 years ago

I am running the tests (units and integration) under a PPC architecture and I have errors in 5 tests.

Even I am not sure if the errors are in tpm2-tools, or more deep in the stack, I will create this issue to report them and maybe work on them in separate issues (if the maintainer seems them as relevant):

[  344s] FAIL: test/unit/test_tpm2_header
[  344s] ================================
[  344s] 
[  344s] [==========] Running 2 test(s).
[  344s] [ RUN      ] test_tpm_command_header
[  344s] [  ERROR   ] --- c->tag == 0x0180
[  344s] [   LINE   ] --- test/unit/test_tpm2_header.c:23: error: Failure!
[  344s] [  FAILED  ] test_tpm_command_header
[  344s] [ RUN      ] test_tpm_response_header
[  344s] [  ERROR   ] --- r->tag == 0x0180
[  344s] [   LINE   ] --- test/unit/test_tpm2_header.c:99: error: Failure!
[  344s] [  FAILED  ] test_tpm_response_header
[  344s] [==========] 2 test(s) run.
[  344s] [  PASSED  ] 0 test(s).
[  344s] [  FAILED  ] 2 test(s), listed below:
[  344s] [  FAILED  ] test_tpm_command_header
[  344s] [  FAILED  ] test_tpm_response_header
[  344s] 
[  344s]  2 FAILED TEST(S)
[  344s] FAIL test/unit/test_tpm2_header (exit status: 2)
[  344s] FAIL: test/integration/tests/abrmd_policyticket
[  344s] ===============================================
[  344s] 
[  344s] creating simulator working dir: /tmp/tpm2_test_vH1lFC
[  344s] /tmp/tpm2_test_vH1lFC ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Switched to CWD: /tmp/tpm2_test_vH1lFC
[  344s] Starting the simulator
[  344s] Attempting to start simulator on port: 9580
[  344s] LISTEN 0      0            0.0.0.0:9580       0.0.0.0:*    users:(("tpm_server",pid=7589,fd=6))
[  344s] LISTEN 0      0            0.0.0.0:9581       0.0.0.0:*    users:(("tpm_server",pid=7589,fd=7))
[  344s] Started simulator on port 9580 in dir "/tmp/tpm2_test_vH1lFC"
[  344s] tpm2tools_tcti="mssim:host=localhost,port=9580"
[  344s] Started the simulator
[  344s] Starting tpm2-abrmd
[  344s] TPM2ABRMD_TCTI is empty, configuring
[  344s] TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd9580 --tcti=mssim:port=9580"
[  344s] tpm2-abrmd command: tpm2-abrmd --session --dbus-name=com.intel.tss2.Tabrmd9580 --tcti=mssim:port=9580 --session --dbus-name=com.intel.tss2.Tabrmd9580 --tcti=mssim:port=9580
[  344s] 
[  344s] ** (process:7770): WARNING **: 14:58:52.023: tcti_conf before: "device:/dev/tpm0"
[  344s] 
[  344s] ** (tpm2-abrmd:7770): WARNING **: 14:58:52.023: tcti_conf after: "mssim:port=9580"
[  344s] tpm2tools_tcti="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd9580"
[  344s] TPM2TOOLS_TEST_TCTI=
[  344s] TPM2TOOLS_TEST_TCTI not set, attempting to figure out default
[  344s] export TPM2TOOLS_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd9580"
[  344s] 
[  344s] --- To recreate this test run the following: ---
[  344s] #!/usr/bin/env bash
[  344s] export TPM2_ABRMD="tpm2-abrmd"
[  344s] export TPM2_SIM="tpm_server"
[  344s] export TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd9580 --tcti=mssim:port=9580"
[  344s] export TPM2_SIMPORT="9580"
[  344s] export TPM2TOOLS_TEST_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd9580"
[  344s] export TPM2TOOLS_TEST_PERSISTENT=""
[  344s] export PATH="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/misc:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/fapi:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/libexec/ibmtss"
[  344s] export srcdir="."
[  344s] export abs_srcdir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] export abs_builddir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] 
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/tests/abrmd_policyticket.sh
[  344s] --- EOF ---
[  344s] 
[  344s] run_startup: false
[  344s] Generating RSA private key, 2048 bit long modulus (2 primes)
[  344s] .....................................................................................................................................................+++++
[  344s] ................+++++
[  344s] e is 65537 (0x010001)
[  344s] writing RSA key
[  344s] name: 000bb5fce76b217bde2d9304bf5ae061e3830c94f8c51466ba8e66a03ac7202e9a01
[  344s] df5a4753d122f301bc9958b15c03e0c1b677d5d54241ac8ef7760e7bbecbd5a5
[  344s] WARNING:esys:src/tss2-esys/api/Esys_PolicySigned.c:343:Esys_PolicySigned_Finish() Received TPM Error 
[  344s] ERROR:esys:src/tss2-esys/api/Esys_PolicySigned.c:117:Esys_PolicySigned() Esys Finish ErrorCode (0x000005db) 
[  344s] ERROR: Esys_PolicySigned(0x5DB) - tpm:parameter(5):the signature is not valid
[  344s] ERROR: Could not build policysigned TPM
[  344s] ERROR: Unable to run policysigned
[  344s] tpm2 policysigned -S session.ctx -g sha256 -s signature.dat -f rsassa -c signing_key.ctx -x --ticket tic.ket --timeout time.out -t -500 on line 50 failed: 1
[  344s] Shutting down
[  344s] ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Removing sim dir: /tmp/tpm2_test_vH1lFC
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  7589 Killed                  "$TPM2_SIM" -port "$tpm2_sim_port"  (wd: /tmp/tpm2_test_vH1lFC)
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  7770 Killed                  $TPM2_ABRMD $tpm2_tabrmd_opts $TPM2ABRMD_TCTI  (wd: /tmp/tpm2_test_vH1lFC)
[  344s] FAIL test/integration/tests/abrmd_policyticket.sh (exit status: 1)
[  344s] FAIL: test/integration/tests/attestation
[  344s] ========================================
[  344s] 
[  344s] creating simulator working dir: /tmp/tpm2_test_iDbIlT
[  344s] /tmp/tpm2_test_iDbIlT ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Switched to CWD: /tmp/tpm2_test_iDbIlT
[  344s] Starting the simulator
[  344s] Attempting to start simulator on port: 18258
[  344s] LISTEN 0      0            0.0.0.0:18258      0.0.0.0:*    users:(("tpm_server",pid=7915,fd=6))
[  344s] LISTEN 0      0            0.0.0.0:18259      0.0.0.0:*    users:(("tpm_server",pid=7915,fd=8))
[  344s] Started simulator on port 18258 in dir "/tmp/tpm2_test_iDbIlT"
[  344s] tpm2tools_tcti="mssim:host=localhost,port=18258"
[  344s] Started the simulator
[  344s] Starting tpm2-abrmd
[  344s] TPM2ABRMD_TCTI is empty, configuring
[  344s] TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd18258 --tcti=mssim:port=18258"
[  344s] tpm2-abrmd command: tpm2-abrmd --session --dbus-name=com.intel.tss2.Tabrmd18258 --tcti=mssim:port=18258 --session --dbus-name=com.intel.tss2.Tabrmd18258 --tcti=mssim:port=18258
[  344s] 
[  344s] ** (process:8042): WARNING **: 14:58:53.922: tcti_conf before: "device:/dev/tpm0"
[  344s] 
[  344s] ** (tpm2-abrmd:8042): WARNING **: 14:58:53.922: tcti_conf after: "mssim:port=18258"
[  344s] tpm2tools_tcti="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd18258"
[  344s] TPM2TOOLS_TEST_TCTI=
[  344s] TPM2TOOLS_TEST_TCTI not set, attempting to figure out default
[  344s] export TPM2TOOLS_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd18258"
[  344s] 
[  344s] --- To recreate this test run the following: ---
[  344s] #!/usr/bin/env bash
[  344s] export TPM2_ABRMD="tpm2-abrmd"
[  344s] export TPM2_SIM="tpm_server"
[  344s] export TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd18258 --tcti=mssim:port=18258"
[  344s] export TPM2_SIMPORT="18258"
[  344s] export TPM2TOOLS_TEST_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd18258"
[  344s] export TPM2TOOLS_TEST_PERSISTENT=""
[  344s] export PATH="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/misc:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/fapi:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/libexec/ibmtss"
[  344s] export srcdir="."
[  344s] export abs_srcdir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] export abs_builddir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] 
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/tests/attestation.sh
[  344s] --- EOF ---
[  344s] 
[  344s] run_startup: false
[  344s] WARN: Tool optionally uses SAPI. Continuing with tcti=none
[  344s] 837197674484b3f81a90cc8d46a5d724fd52d76e06520b64f2a1da1b331469aa
[  344s] ERROR: Malformed PCR file, pcr count cannot be greater than 32, got: 4294967296 
[  344s] ERROR: Unable to run checkquote
[  344s] tpm2 checkquote -Q -u $output_ak_pub_pem -m $output_quote -s $output_quotesig -f $output_quotepcr -g $digestAlg -q $loaded_randomness on line 101 failed: 1
[  344s] Shutting down
[  344s] ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Removing sim dir: /tmp/tpm2_test_iDbIlT
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  8042 Killed                  $TPM2_ABRMD $tpm2_tabrmd_opts $TPM2ABRMD_TCTI  (wd: /tmp/tpm2_test_iDbIlT)
[  344s] FAIL test/integration/tests/attestation.sh (exit status: 1)
[  344s] FAIL: test/integration/tests/checkquote
[  344s] =======================================
[  344s] 
[  344s] creating simulator working dir: /tmp/tpm2_test_GsLY8M
[  344s] /tmp/tpm2_test_GsLY8M ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Switched to CWD: /tmp/tpm2_test_GsLY8M
[  344s] Starting the simulator
[  344s] Attempting to start simulator on port: 59836
[  344s] LISTEN 0      0            0.0.0.0:59836      0.0.0.0:*    users:(("tpm_server",pid=9002,fd=6))
[  344s] LISTEN 0      0            0.0.0.0:59837      0.0.0.0:*    users:(("tpm_server",pid=9002,fd=8))
[  344s] Started simulator on port 59836 in dir "/tmp/tpm2_test_GsLY8M"
[  344s] tpm2tools_tcti="mssim:host=localhost,port=59836"
[  344s] Started the simulator
[  344s] Starting tpm2-abrmd
[  344s] TPM2ABRMD_TCTI is empty, configuring
[  344s] TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd59836 --tcti=mssim:port=59836"
[  344s] tpm2-abrmd command: tpm2-abrmd --session --dbus-name=com.intel.tss2.Tabrmd59836 --tcti=mssim:port=59836 --session --dbus-name=com.intel.tss2.Tabrmd59836 --tcti=mssim:port=59836
[  344s] 
[  344s] ** (process:9168): WARNING **: 14:59:00.670: tcti_conf before: "device:/dev/tpm0"
[  344s] 
[  344s] ** (tpm2-abrmd:9168): WARNING **: 14:59:00.671: tcti_conf after: "mssim:port=59836"
[  344s] tpm2tools_tcti="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd59836"
[  344s] TPM2TOOLS_TEST_TCTI=
[  344s] TPM2TOOLS_TEST_TCTI not set, attempting to figure out default
[  344s] export TPM2TOOLS_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd59836"
[  344s] 
[  344s] --- To recreate this test run the following: ---
[  344s] #!/usr/bin/env bash
[  344s] export TPM2_ABRMD="tpm2-abrmd"
[  344s] export TPM2_SIM="tpm_server"
[  344s] export TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd59836 --tcti=mssim:port=59836"
[  344s] export TPM2_SIMPORT="59836"
[  344s] export TPM2TOOLS_TEST_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd59836"
[  344s] export TPM2TOOLS_TEST_PERSISTENT=""
[  344s] export PATH="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/misc:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/fapi:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/libexec/ibmtss"
[  344s] export srcdir="."
[  344s] export abs_srcdir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] export abs_builddir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] 
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/tests/checkquote.sh
[  344s] --- EOF ---
[  344s] 
[  344s] run_startup: false
[  344s] loaded-key:
[  344s]   name: 000bd420a40c72178a55e4ea49422c04b8607401ec69285e02b4a64bd72015447182
[  344s]   qualified name: 000bc34df7fc7894bd8ed80af9ddaaf1d4e89c4c7155f1eb394a25c84fd6ab3bfccc
[  344s] quoted: ff54434780180022000bc34df7fc7894bd8ed80af9ddaaf1d4e89c4c7155f1eb394a25c84fd6ab3bfccc00141300508458f42d4e9d47089f020927bb026f7e070000000000000779000000000000000001201910230016363600000001000b03008041002051cdfd15463a712da38c49e9390d861030e28cf1f19ebe9f5a8b6901a9df64fc
[  344s] signature:
[  344s]   alg: rsassa
[  344s]   sig: 03a66a2293e87a78bfa03eb1006472ad74117c6a6e2d0c51634230b1ec9a10999f3f771d7f264e62f2262b94ff9246fdeaf040ab9102073bb8e3380f7ab79538c9954ae73a39f5b65b4a413771fd29c8528bc4bfe0ee35228c9f3a782e4b525f89d4d433a0c5a311a0c65302a5f70d63b3be538000487a01090561cfbaf4415b2ef4fb0be7045de6571854f61a078971267f5d6e368881eb097bfb7349431bb4eefbf1172d06d1e1aaebf455e7ed2956881d43472ac8a1b0f52326306804d09a97bb9b06f617a03c0dd66c24124b65636bb8f60d278869b38bc8dbb756fb8a641f9363d3fa7b82481d6f9c0ea16b7d4d8d22de327114a73535ac857e0684e332
[  344s] pcrs:
[  344s]   sha256:
[  344s]     15: 0x0000000000000000000000000000000000000000000000000000000000000000
[  344s]     16: 0x0000000000000000000000000000000000000000000000000000000000000000
[  344s]     22: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
[  344s] calcDigest: 51cdfd15463a712da38c49e9390d861030e28cf1f19ebe9f5a8b6901a9df64fc
[  344s] ERROR: Malformed PCR file, pcr count cannot be greater than 32, got: 4294967296 
[  344s] ERROR: Unable to run checkquote
[  344s] tpm2 checkquote -u $output_ak_pub_pem -m $output_quote -s $output_quotesig -f $output_quotepcr -g $digestAlg -q $loaded_randomness on line 60 failed: 1
[  344s] persistent-handle: 0x81010009
[  344s] action: evicted
[  344s] persistent-handle: 0x8101000a
[  344s] action: evicted
[  344s] Shutting down
[  344s] ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Removing sim dir: /tmp/tpm2_test_GsLY8M
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  9002 Killed                  "$TPM2_SIM" -port "$tpm2_sim_port"  (wd: /tmp/tpm2_test_GsLY8M)
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  9168 Killed                  $TPM2_ABRMD $tpm2_tabrmd_opts $TPM2ABRMD_TCTI  (wd: /tmp/tpm2_test_GsLY8M)
[  344s] shutdown
[  344s] FAIL test/integration/tests/checkquote.sh (exit status: 1)
[  344s] FAIL: test/integration/tests/createprimary
[  344s] ==========================================
[  344s] 
[  344s] creating simulator working dir: /tmp/tpm2_test_ofJUx8
[  344s] /tmp/tpm2_test_ofJUx8 ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Switched to CWD: /tmp/tpm2_test_ofJUx8
[  344s] Starting the simulator
[  344s] Attempting to start simulator on port: 17078
[  344s] LISTEN 0      0            0.0.0.0:17078      0.0.0.0:*    users:(("tpm_server",pid=9920,fd=6))
[  344s] LISTEN 0      0            0.0.0.0:17079      0.0.0.0:*    users:(("tpm_server",pid=9920,fd=8))
[  344s] Started simulator on port 17078 in dir "/tmp/tpm2_test_ofJUx8"
[  344s] tpm2tools_tcti="mssim:host=localhost,port=17078"
[  344s] Started the simulator
[  344s] Starting tpm2-abrmd
[  344s] TPM2ABRMD_TCTI is empty, configuring
[  344s] TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd17078 --tcti=mssim:port=17078"
[  344s] tpm2-abrmd command: tpm2-abrmd --session --dbus-name=com.intel.tss2.Tabrmd17078 --tcti=mssim:port=17078 --session --dbus-name=com.intel.tss2.Tabrmd17078 --tcti=mssim:port=17078
[  344s] 
[  344s] ** (process:10059): WARNING **: 14:59:07.031: tcti_conf before: "device:/dev/tpm0"
[  344s] 
[  344s] ** (tpm2-abrmd:10059): WARNING **: 14:59:07.031: tcti_conf after: "mssim:port=17078"
[  344s] tpm2tools_tcti="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd17078"
[  344s] TPM2TOOLS_TEST_TCTI=
[  344s] TPM2TOOLS_TEST_TCTI not set, attempting to figure out default
[  344s] export TPM2TOOLS_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd17078"
[  344s] 
[  344s] --- To recreate this test run the following: ---
[  344s] #!/usr/bin/env bash
[  344s] export TPM2_ABRMD="tpm2-abrmd"
[  344s] export TPM2_SIM="tpm_server"
[  344s] export TPM2ABRMD_TCTI="--session --dbus-name=com.intel.tss2.Tabrmd17078 --tcti=mssim:port=17078"
[  344s] export TPM2_SIMPORT="17078"
[  344s] export TPM2TOOLS_TEST_TCTI="tabrmd:bus_type=session,bus_name=com.intel.tss2.Tabrmd17078"
[  344s] export TPM2TOOLS_TEST_PERSISTENT=""
[  344s] export PATH="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/misc:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration:/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/tools/fapi:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/libexec/ibmtss"
[  344s] export srcdir="."
[  344s] export abs_srcdir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] export abs_builddir="/home/abuild/rpmbuild/BUILD/tpm2-tools-5.2"
[  344s] 
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/tests/createprimary.sh
[  344s] --- EOF ---
[  344s] 
[  344s] run_startup: false
[  344s] tpm2 createprimary -Q -g sha1 -G rsa -c context.out
[  344s] tpm2 createprimary -Q -g sha1 -G xor -c context.out
[  344s] tpm2 createprimary -Q -g sha1 -G ecc -c context.out
[  344s] tpm2 createprimary -Q -g sha1 -G aes -c context.out
[  344s] tpm2 createprimary -Q -g sha256 -G rsa -c context.out
[  344s] tpm2 createprimary -Q -g sha256 -G xor -c context.out
[  344s] tpm2 createprimary -Q -g sha256 -G ecc -c context.out
[  344s] tpm2 createprimary -Q -g sha256 -G aes -c context.out
[  344s] tpm2 createprimary -Q -g sha384 -G rsa -c context.out
[  344s] tpm2 createprimary -Q -g sha384 -G xor -c context.out
[  344s] tpm2 createprimary -Q -g sha384 -G ecc -c context.out
[  344s] tpm2 createprimary -Q -g sha384 -G aes -c context.out
[  344s] tpm2 createprimary -Q -g sha512 -G rsa -c context.out
[  344s] tpm2 createprimary -Q -g sha512 -G xor -c context.out
[  344s] tpm2 createprimary -Q -g sha512 -G ecc -c context.out
[  344s] tpm2 createprimary -Q -g sha512 -G aes -c context.out
[  344s] 1+0 records in
[  344s] 1+0 records out
[  344s] 256 bytes copied, 0.000202244 s, 1.3 MB/s
[  344s] name-alg:
[  344s]   value: sha256
[  344s]   raw: 0xb
[  344s] attributes:
[  344s]   value: fixedtpm|fixedparent|sensitivedataorigin|userwithauth|noda|restricted|decrypt
[  344s]   raw: 0x30472
[  344s] type:
[  344s]   value: rsa
[  344s]   raw: 0x1
[  344s] exponent: 65537
[  344s] bits: 2048
[  344s] scheme:
[  344s]   value: null
[  344s]   raw: 0x10
[  344s] scheme-halg:
[  344s]   value: (null)
[  344s]   raw: 0x0
[  344s] sym-alg:
[  344s]   value: aes
[  344s]   raw: 0x6
[  344s] sym-mode:
[  344s]   value: cfb
[  344s]   raw: 0x43
[  344s] sym-keybits: 128
[  344s] rsa: cbd58b1be94b8eccf03ab81b07c984f066ca9ec28ced68f2f729c2d41d05d9e22d8a3379feeb695d4dd05f895e696b4836a839aab5ebc8d96e851e0108b5d58fae1c7d29b086244e931adf385102ec8c36ae69808b1dfbfc35ca5a63dd5d4c25c7e8f1614318fb38186b49f23b9077e77d2ded80a977bb3bc3dc97e62686d468729982e92fb7a2823965f9fc83d1cbdac69d232e01eac24256019a695864d419ac88c2939bdce1b30cfe8cc8ab895ea8059204d7850045d92dd548df5fdc4c55f9f32a8a9a4741f6054ecbe97cb423ab532f02b7d87057790555d0eab2240b4dc26a83e2738dbf350ff073d3c462faf0a5d109d0a2250542263f89e8edfebb11
[  344s] 1+0 records in
[  344s] 1+0 records out
[  344s] 32 bytes copied, 0.000144805 s, 221 kB/s
[  344s] ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:228:Esys_CreatePrimary_Async() SAPI Prepare returned error. ErrorCode (0x00090006) 
[  344s] ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:110:Esys_CreatePrimary() Error in async function ErrorCode (0x00090006) 
[  344s] ERROR: Esys_CreatePrimary(0x90006) - mu:A buffer isn't large enough
[  344s] ERROR: Unable to run createprimary
[  344s] tpm2 createprimary -C o -G ecc -g sha256 -c prim.ctx -u unique.dat -a "restricted|decrypt|fixedtpm|fixedparent|sensitivedataorigin|userwithauth|noda" on line 67 failed: 1
[  344s] Shutting down
[  344s] ~/rpmbuild/BUILD/tpm2-tools-5.2
[  344s] Removing sim dir: /tmp/tpm2_test_ofJUx8
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443:  9920 Killed                  "$TPM2_SIM" -port "$tpm2_sim_port"  (wd: /tmp/tpm2_test_ofJUx8)
[  344s] /home/abuild/rpmbuild/BUILD/tpm2-tools-5.2/test/integration/helpers.sh: line 443: 10059 Killed                  $TPM2_ABRMD $tpm2_tabrmd_opts $TPM2ABRMD_TCTI  (wd: /tmp/tpm2_test_ofJUx8)
[  344s] FAIL test/integration/tests/createprimary.sh (exit status: 1)
idesai commented 2 years ago

I am running the tests (units and integration) under a PPC architecture and I have error is 5 tests.

Even I am not sure if the errors are in tpm2-tools, or more deep in the stack, I will create this issue to report them and maybe work on them in separate issues (if the maintainer seems them as relevant):

@aplanas, absolutely. Much appreciated!