Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 870599 Details for
Bug 914222
app-crypt/tpm2-tss-4.0.1 fails tests (PYTHON-3.12-SYSTEM): because of a heap-use-after-free
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
1-test-suite.log
1-test-suite.log (text/plain), 31.03 KB, created by
Agostino Sarubbo
on 2023-09-15 08:27:09 UTC
(
hide
)
Description:
1-test-suite.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2023-09-15 08:27:09 UTC
Size:
31.03 KB
patch
obsolete
>====================================== > tpm2-tss 4.0.1: ./test-suite.log >====================================== > ># TOTAL: 260 ># PASS: 250 ># SKIP: 6 ># XFAIL: 0 ># FAIL: 4 ># XPASS: 0 ># ERROR: 0 > >.. contents:: :depth: 2 > >FAIL: test/unit/tctildr-dl >========================== > >AddressSanitizer: CHECK failed: asan_posix.cpp:125 "((tsd_key_inited)) != (0)" (0x0, 0x0) (tid=61436) > <empty stack> > >FAIL test/unit/tctildr-dl (exit status: 1) > >FAIL: test/unit/dlopen-fail >=========================== > >FAIL test/unit/dlopen-fail (exit status: 139) > >SKIP: test/integration/esys-act-set-timeout >=========================================== > >Trying to start simulator swtpm >Starting simulator on port 45132 >successfully started daemon: swtpm with PID: 64841 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 64841 >LISTEN 0 1 127.0.0.1:45132 0.0.0.0:* users:(("swtpm",pid=64841,fd=3)) >LISTEN 0 1 127.0.0.1:45133 0.0.0.0:* users:(("swtpm",pid=64841,fd=2)) >Simulator with PID 64841 bound to port 45132 and 45133 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=45132 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=45132 >Execute the test script >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_ACT_SetTimeout.c:291:Esys_ACT_SetTimeout_Finish() Received TPM Error >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_ACT_SetTimeout.c:101:Esys_ACT_SetTimeout() Esys Finish ErrorCode (0x00000143) >ERROR:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/esys-act-set-timeout.int.c:65:test_esys_act_set_timeout() Error: Clear ErrorCode (0x00000143) >Script returned 77 >SKIP test/integration/esys-act-set-timeout.int (exit status: 77) > >SKIP: test/integration/esys-field-upgrade >========================================= > >Trying to start simulator swtpm >Starting simulator on port 22050 >successfully started daemon: swtpm with PID: 8413 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 8413 >LISTEN 0 1 127.0.0.1:22050 0.0.0.0:* users:(("swtpm",pid=8413,fd=3)) >LISTEN 0 1 127.0.0.1:22051 0.0.0.0:* users:(("swtpm",pid=8413,fd=2)) >Simulator with PID 8413 bound to port 22050 and 22051 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=22050 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=22050 >Execute the test script >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FieldUpgradeData.c:289:Esys_FieldUpgradeData_Finish() Received TPM Error >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FieldUpgradeData.c:98:Esys_FieldUpgradeData() Esys Finish ErrorCode (0x00000143) >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/esys-field-upgrade.int.c:57:test_esys_field_upgrade() Command TPM2_FieldUpgradeData not supported by TPM. >Script returned 77 >SKIP test/integration/esys-field-upgrade.int (exit status: 77) > >SKIP: test/integration/esys-firmware-read >========================================= > >Trying to start simulator swtpm >Starting simulator on port 55782 >successfully started daemon: swtpm with PID: 8441 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 8441 >LISTEN 0 1 127.0.0.1:55782 0.0.0.0:* users:(("swtpm",pid=8441,fd=3)) >LISTEN 0 1 127.0.0.1:55783 0.0.0.0:* users:(("swtpm",pid=8441,fd=2)) >Simulator with PID 8441 bound to port 55782 and 55783 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=55782 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=55782 >Execute the test script >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FirmwareRead.c:279:Esys_FirmwareRead_Finish() Received TPM Error >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FirmwareRead.c:96:Esys_FirmwareRead() Esys Finish ErrorCode (0x00000143) >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/esys-firmware-read.int.c:50:test_esys_firmware_read() Command TPM2_FirmwareRead not supported by TPM. >Script returned 77 >SKIP test/integration/esys-firmware-read.int (exit status: 77) > >SKIP: test/integration/fapi-data-crypt >====================================== > >Trying to start simulator swtpm >Starting simulator on port 14998 >successfully started daemon: swtpm with PID: 9122 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 9122 >LISTEN 0 1 127.0.0.1:14998 0.0.0.0:* users:(("swtpm",pid=9122,fd=3)) >LISTEN 0 1 127.0.0.1:14999 0.0.0.0:* users:(("swtpm",pid=9122,fd=2)) >Simulator with PID 9122 bound to port 14998 and 14999 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=14998 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=14998 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1367 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c00002 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1164 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c0000a >Execute the test script >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.d8EgA8/user/dir", > "system_dir": "/tmp/fapi_tmpdir.d8EgA8/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.d8EgA8", > "tcti": "swtpm:host=127.0.0.1,port=14998", >} >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.d8EgA8/user/dir does not exist, creating >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.d8EgA8/system_dir/policy does not exist, creating >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Encrypt.c:333:Fapi_Encrypt_Finish() ErrorCode (0x00060002) ECC Encryption not yet supported >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Encrypt.c:126:Fapi_Encrypt() ErrorCode (0x00060002) Data_Encrypt >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Delete.c:405:Fapi_Delete_Async() ErrorCode (0x00060034) FAPI not provisioned. >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Delete.c:313:Fapi_Delete() ErrorCode (0x00060034) Entity_Delete >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:504:main() Test returned 77 >Script returned 77 >SKIP test/integration/fapi-data-crypt.fint (exit status: 77) > >SKIP: test/integration/fapi-data-crypt-persistent >================================================= > >Trying to start simulator swtpm >Starting simulator on port 64890 >successfully started daemon: swtpm with PID: 9157 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 9157 >LISTEN 0 1 127.0.0.1:64890 0.0.0.0:* users:(("swtpm",pid=9157,fd=3)) >LISTEN 0 1 127.0.0.1:64891 0.0.0.0:* users:(("swtpm",pid=9157,fd=2)) >Simulator with PID 9157 bound to port 64890 and 64891 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=64890 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=64890 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1389 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c00002 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1186 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c0000a >Execute the test script >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.wR0uLg/user/dir", > "system_dir": "/tmp/fapi_tmpdir.wR0uLg/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.wR0uLg", > "tcti": "swtpm:host=127.0.0.1,port=64890", >} >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.wR0uLg/user/dir does not exist, creating >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.wR0uLg/system_dir/policy does not exist, creating >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Encrypt.c:333:Fapi_Encrypt_Finish() ErrorCode (0x00060002) ECC Encryption not yet supported >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FlushContext.c:234:Esys_FlushContext_Finish() Received TPM Error >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FlushContext.c:89:Esys_FlushContext() Esys Finish ErrorCode (0x000001c4) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Encrypt.c:126:Fapi_Encrypt() ErrorCode (0x00060002) Data_Encrypt >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Delete.c:405:Fapi_Delete_Async() ErrorCode (0x00060034) FAPI not provisioned. >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Delete.c:313:Fapi_Delete() ErrorCode (0x00060034) Entity_Delete >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:504:main() Test returned 77 >Script returned 77 >SKIP test/integration/fapi-data-crypt-persistent.fint (exit status: 77) > >FAIL: test/integration/fapi-key-create-null-key-sign >==================================================== > >Trying to start simulator swtpm >Starting simulator on port 45196 >successfully started daemon: swtpm with PID: 12166 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 12166 >LISTEN 0 1 127.0.0.1:45196 0.0.0.0:* users:(("swtpm",pid=12166,fd=3)) >LISTEN 0 1 127.0.0.1:45197 0.0.0.0:* users:(("swtpm",pid=12166,fd=2)) >Simulator with PID 12166 bound to port 45196 and 45197 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=45196 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=45196 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1395 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c00002 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1192 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c0000a >Execute the test script >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.J3rvXu/user/dir", > "system_dir": "/tmp/fapi_tmpdir.J3rvXu/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.J3rvXu", > "tcti": "swtpm:host=127.0.0.1,port=45196", >} >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.J3rvXu/user/dir does not exist, creating >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.J3rvXu/system_dir/policy does not exist, creating >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_CreateKey.c:211:Fapi_CreateKey_Async() ErrorCode (0x0006000b) Key HN/myNullPrimary in the NULL hiearchy cannot be persistent. >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_CreateKey.c:99:Fapi_CreateKey() ErrorCode (0x0006000b) Key_Create >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_CreateKey.c:211:Fapi_CreateKey_Async() ErrorCode (0x0006000b) Key HN/myNullPrimary/myNullSignKey in the NULL hiearchy cannot be persistent. >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_CreateKey.c:99:Fapi_CreateKey() ErrorCode (0x0006000b) Key_Create >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.J3rvXu/user/dir", > "system_dir": "/tmp/fapi_tmpdir.J3rvXu/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.J3rvXu", > "tcti": "swtpm:host=127.0.0.1,port=45196", >} >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:504:main() Test returned 0 >================================================================= >==12927==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000000020 at pc 0x55b129b130bf bp 0x7ffc601a39f0 sp 0x7ffc601a3198 >READ of size 1 at 0x606000000020 thread T0 > #0 0x55b129b130be in strncmp (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-key-create-null-key-sign.fint+0x380be) > #1 0x7f73cbce759c (/usr/lib64/libsandbox.so+0x659c) > #2 0x7f73cbcece24 in system (/usr/lib64/libsandbox.so+0xbe24) > #3 0x55b129bd2439 in main /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:513:9 > #4 0x7f73cb423c89 (/lib64/libc.so.6+0x23c89) > #5 0x7f73cb423d44 in __libc_start_main (/lib64/libc.so.6+0x23d44) > #6 0x55b129afb4c0 in _start (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-key-create-null-key-sign.fint+0x204c0) > >0x606000000020 is located 0 bytes inside of 55-byte region [0x606000000020,0x606000000057) >freed by thread T0 here: > #0 0x55b129b95066 in __interceptor_free (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-key-create-null-key-sign.fint+0xba066) > #1 0x55b129bd1cc7 in init_fapi /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:213:5 > #2 0x55b129bd0541 in test_fapi_key_create_null_sign /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/fapi-key-create-null-key-sign.int.c:143:14 > #3 0x55b129bd23ad in main /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:502:11 > #4 0x7f73cb423c89 (/lib64/libc.so.6+0x23c89) > >previously allocated by thread T0 here: > #0 0x55b129b9530e in malloc (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-key-create-null-key-sign.fint+0xba30e) > #1 0x7f73cb47a9d7 (/lib64/libc.so.6+0x7a9d7) > >SUMMARY: AddressSanitizer: heap-use-after-free (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-key-create-null-key-sign.fint+0x380be) in strncmp >Shadow bytes around the buggy address: > 0x605ffffffd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605ffffffe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605ffffffe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605fffffff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605fffffff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >=>0x606000000000: fa fa fa fa[fd]fd fd fd fd fd fd fa fa fa fa fa > 0x606000000080: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd > 0x606000000100: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fa > 0x606000000180: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa > 0x606000000200: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd > 0x606000000280: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd >Shadow byte legend (one shadow byte represents 8 application bytes): > Addressable: 00 > Partially addressable: 01 02 03 04 05 06 07 > Heap left redzone: fa > Freed heap region: fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned by user: f7 > Container overflow: fc > Array cookie: ac > Intra object redzone: bb > ASan internal: fe > Left alloca redzone: ca > Right alloca redzone: cb >==12927==ABORTING >Script returned 1 >FAIL test/integration/fapi-key-create-null-key-sign.fint (exit status: 1) > >SKIP: test/integration/fapi-key-create-policy-physical-presence-sign >==================================================================== > >Trying to start simulator swtpm >Starting simulator on port 63530 >successfully started daemon: swtpm with PID: 16996 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 16996 >LISTEN 0 1 127.0.0.1:63530 0.0.0.0:* users:(("swtpm",pid=16996,fd=3)) >LISTEN 0 1 127.0.0.1:63531 0.0.0.0:* users:(("swtpm",pid=16996,fd=2)) >Simulator with PID 16996 bound to port 63530 and 63531 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=63530 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=63530 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1427 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c00002 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1224 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c0000a >Execute the test script >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.0U9qSD/user/dir", > "system_dir": "/tmp/fapi_tmpdir.0U9qSD/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.0U9qSD", > "tcti": "swtpm:host=127.0.0.1,port=63530", >} >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.0U9qSD/user/dir does not exist, creating >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.0U9qSD/system_dir/policy does not exist, creating >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_Sign.c:311:Esys_Sign_Finish() Received TPM Error >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/fapi_util.c:2974:ifapi_key_sign() Error: Sign ErrorCode (0x00000990) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Sign.c:299:Fapi_Sign_Finish() Fapi sign. ErrorCode (0x00000990) >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/esys_iutil.c:1108:esys_GetResourceObject() Error: Esys handle does not exist (70018). >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FlushContext.c:138:Esys_FlushContext_Async() flushHandle unknown. ErrorCode (0x00070018) >ERROR:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_FlushContext.c:66:Esys_FlushContext() Error in async function ErrorCode (0x00070018) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Sign.c:130:Fapi_Sign() ErrorCode (0x00000990) Key_Sign >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/fapi-key-create-policies-sign.int.c:166:test_fapi_key_create_policies_sign() Test requires physical presence. >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:504:main() Test returned 77 >Script returned 77 >SKIP test/integration/fapi-key-create-policy-physical-presence-sign.fint (exit status: 77) > >FAIL: test/integration/fapi-second-provisioning >=============================================== > >Trying to start simulator swtpm >Starting simulator on port 46224 >successfully started daemon: swtpm with PID: 22071 >/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64 >simulator PID: 22071 >LISTEN 0 1 127.0.0.1:46224 0.0.0.0:* users:(("swtpm",pid=22071,fd=3)) >LISTEN 0 1 127.0.0.1:46225 0.0.0.0:* users:(("swtpm",pid=22071,fd=2)) >Simulator with PID 22071 bound to port 46224 and 46225 successfully. >TPM20TEST_TCTI_NAME=swtpm >TPM20TEST_DEVICE_FILE= >TPM20TEST_SOCKET_ADDRESS=127.0.0.1 >TPM20TEST_SOCKET_PORT=46224 >TPM20TEST_TCTI=swtpm:host=127.0.0.1,port=46224 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1385 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c00002 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:93:main() Cert input size is 1182 >WARNING:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/helper/tpm_writeekcert.c:96:main() Define NV cert with nv index: 1c0000a >Execute the test script >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.OoshYR/user/dir", > "system_dir": "/tmp/fapi_tmpdir.OoshYR/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.OoshYR", > "tcti": "swtpm:host=127.0.0.1,port=46224", >} >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.OoshYR/user/dir does not exist, creating >WARNING:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/fapi_tmpdir.OoshYR/system_dir/policy does not exist, creating >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_RSA2", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.OoshYR/user/dir", > "system_dir": "/tmp/fapi_tmpdir.OoshYR/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.OoshYR", > "tcti": "swtpm:host=127.0.0.1,port=46224", >} >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/fapi_util.c:457:ifapi_set_auth() Authorization callback not defined. ErrorCode (0x0006002a) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/fapi_util.c:2150:ifapi_authorize_object() Set auth value ErrorCode (0x0006002a) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/fapi_util.c:736:ifapi_init_primary_finish() ErrorCode (0x0006002a) Authorize hierarchy. >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Provision.c:653:Fapi_Provision_Finish() Init primary finish ErrorCode (0x0006002a) >ERROR:fapi:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-fapi/api/Fapi_Provision.c:174:Fapi_Provision() ErrorCode (0x0006002a) Provision >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_RSA2", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.OoshYR/user/dir", > "system_dir": "/tmp/fapi_tmpdir.OoshYR/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.OoshYR", > "tcti": "swtpm:host=127.0.0.1,port=46224", >} >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_CreatePrimary.c:401:Esys_CreatePrimary_Finish() Received TPM Error >WARNING:esys:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/src/tss2-esys/api/Esys_NV_Read.c:315:Esys_NV_Read_Finish() Received TPM Error >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC_sh_eh_policy", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.OoshYR/user/dir", > "system_dir": "/tmp/fapi_tmpdir.OoshYR/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.OoshYR", > "tcti": "swtpm:host=127.0.0.1,port=46224", >} >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:413:init_fapi() Using config: >{ > "profile_name": "P_ECC", > "profile_dir": "/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/data/fapi/", > "user_dir": "/tmp/fapi_tmpdir.OoshYR/user/dir", > "system_dir": "/tmp/fapi_tmpdir.OoshYR/system_dir", > "system_pcrs" : [], > "log_dir" : "/tmp/fapi_tmpdir.OoshYR", > "tcti": "swtpm:host=127.0.0.1,port=46224", >} >info:test:/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:504:main() Test returned 0 >================================================================= >==22780==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000000020 at pc 0x55f2cd5de07f bp 0x7ffdf7648150 sp 0x7ffdf76478f8 >READ of size 1 at 0x606000000020 thread T0 > #0 0x55f2cd5de07e in strncmp (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-second-provisioning.fint+0x3807e) > #1 0x7f365e36a59c (/usr/lib64/libsandbox.so+0x659c) > #2 0x7f365e36fe24 in system (/usr/lib64/libsandbox.so+0xbe24) > #3 0x55f2cd69ce39 in main /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:513:9 > #4 0x7f365da23c89 (/lib64/libc.so.6+0x23c89) > #5 0x7f365da23d44 in __libc_start_main (/lib64/libc.so.6+0x23d44) > #6 0x55f2cd5c6480 in _start (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-second-provisioning.fint+0x20480) > >0x606000000020 is located 0 bytes inside of 55-byte region [0x606000000020,0x606000000057) >freed by thread T0 here: > #0 0x55f2cd660026 in __interceptor_free (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-second-provisioning.fint+0xba026) > #1 0x55f2cd69c6c7 in init_fapi /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:213:5 > #2 0x55f2cd69aea6 in test_fapi_test_second_provisioning /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/fapi-second-provisioning.int.c:80:14 > #3 0x55f2cd69cdad in main /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1/test/integration/main-fapi.c:502:11 > #4 0x7f365da23c89 (/lib64/libc.so.6+0x23c89) > >previously allocated by thread T0 here: > #0 0x55f2cd6602ce in malloc (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-second-provisioning.fint+0xba2ce) > #1 0x7f365da7a9d7 (/lib64/libc.so.6+0x7a9d7) > >SUMMARY: AddressSanitizer: heap-use-after-free (/var/tmp/portage/app-crypt/tpm2-tss-4.0.1/work/tpm2-tss-4.0.1-abi_x86_64.amd64/test/integration/.libs/fapi-second-provisioning.fint+0x3807e) in strncmp >Shadow bytes around the buggy address: > 0x605ffffffd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605ffffffe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605ffffffe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605fffffff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x605fffffff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >=>0x606000000000: fa fa fa fa[fd]fd fd fd fd fd fd fa fa fa fa fa > 0x606000000080: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd > 0x606000000100: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fa > 0x606000000180: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa > 0x606000000200: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd > 0x606000000280: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd >Shadow byte legend (one shadow byte represents 8 application bytes): > Addressable: 00 > Partially addressable: 01 02 03 04 05 06 07 > Heap left redzone: fa > Freed heap region: fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned by user: f7 > Container overflow: fc > Array cookie: ac > Intra object redzone: bb > ASan internal: fe > Left alloca redzone: ca > Right alloca redzone: cb >==22780==ABORTING >Script returned 1 >FAIL test/integration/fapi-second-provisioning.fint (exit status: 1) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 914222
:
870598
| 870599