Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPM 2.0 module disappears after trying to delete key in VirtualBox #3368

Open
TByte007 opened this issue Mar 20, 2024 · 3 comments
Open

TPM 2.0 module disappears after trying to delete key in VirtualBox #3368

TByte007 opened this issue Mar 20, 2024 · 3 comments

Comments

@TByte007
Copy link

Debian 12.5 guest under Windows 10 host, VirtualBox 7.0.14

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 failure

And 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 3

I 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 ?

Thanks.

@khalibro
Copy link

khalibro commented Apr 4, 2024

hi i have the same problem, did i find where it comes from ?

@TByte007
Copy link
Author

hi i have the same problem, did i find where it comes from ?

Not yet.

@AndreasFuchsTPM
Copy link
Member

Sounds like a VirtualBox problem, rather than our problem.
There is no command or anything that should allow a userspace program (such as tpm2-tools) to make the TPM disappear...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants