tpm2-pkcs11
tpm2-pkcs11 copied to clipboard
Twice call C_GenerateKeyPair method causes hangs.
On system without tpm2-abrmd but with /dev/tpmrm0 and tpm2-tss configured with --with-tctidefaultconfig=/dev/tpmrm0, the application hangs right after a second call of C_GenerateKeyPair is being made.
P.S. I have forgotten to write that with tpm2-abrmd Resource Manager al is working correctly.
What version of tpm2-tss? Can we get an strace dump?
3.1.0 and it would be rather difficult to get strace dump 'cause the app is written in dotnet and uses Pkcs11Interop assembly.
Hmmm i see that strace is also working with dotnet:] gimme some time because i need to change platform configuration (revert back to /dev/tpmrm0 Resource Manager)
Ok i have finally made the strace log and found out that for some reason the resource is unavailable:
futex(0xb6ab62ec, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
The full log is in tpm2-tss-strace.log .
@williamcroberts btw. is this log sufficient for you?
I don't know yet, I need to spend some more time with this bug
If you will need some more informations please keep me posted.