After executing
tpm2_evictcontrol -C o -c 0x81000000(trying to remove a key) the driver returns:
ERROR:tcti:src/tss2-tcti/tcti-device.c:198:tcti_device_receive() Failed to get response size fd 3, got errno 14: Bad address ERROR:esys:src/tss2-esys/api/Esys_EvictControl.c:334:Esys_EvictControl_Finish() Received a non-TPM Error ERROR:esys:src/tss2-esys/api/Esys_EvictControl.c:114:Esys_EvictControl() Esys Finish ErrorCode (0x000a000a) ERROR: Esys_EvictControl(0xA000A) - tcti:IO failureAnd after that I have to reboot to get the TPM module to respond to anything again. If I try any other command before rebooting I just get a timeout:
ERROR:tcti:src/tss2-tcti/tcti-device.c:503:Tss2_Tcti_Device_Init() timeout waiting for response from fd 3I receive few kernel messages with the last one going on every 10 sec:
[ 54.861019] tpm tpm0: tpm2_save_context: failed with a TPM error 0x0101 [ 54.862081] tpm tpm0: A TPM error (257) occurred flushing context [ 54.863673] tpm tpm0: A TPM error (257) occurred flushing context [ 54.863683] tpm tpm0: tpm2_commit_space: error -14 [ 54.865291] tpm tpm0: A TPM error (257) occurred flushing context [ 64.528914] tpm tpm0: A TPM error (257) occurred attempting get random [ 74.758385] tpm tpm0: A TPM error (257) occurred attempting get random [ 85.003438] tpm tpm0: A TPM error (257) occurred attempting get random [ 95.256208] tpm tpm0: A TPM error (257) occurred attempting get random ...Is this somehow a normal behavior or the virtual TPM module is crashing ?
Is there a way to reset / clear the VirtualBox's TPM "module" ?
Thanks.