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

Twice call C_GenerateKeyPair method causes hangs.

Open Dvergatal opened this issue 3 years ago • 6 comments

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.

Dvergatal avatar Nov 10 '21 11:11 Dvergatal

What version of tpm2-tss? Can we get an strace dump?

williamcroberts avatar Nov 10 '21 14:11 williamcroberts

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)

Dvergatal avatar Nov 10 '21 17:11 Dvergatal

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 .

Dvergatal avatar Nov 14 '21 13:11 Dvergatal

@williamcroberts btw. is this log sufficient for you?

Dvergatal avatar Nov 19 '21 10:11 Dvergatal

I don't know yet, I need to spend some more time with this bug

williamcroberts avatar Nov 24 '21 16:11 williamcroberts

If you will need some more informations please keep me posted.

Dvergatal avatar Nov 29 '21 21:11 Dvergatal