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

Can't clear TPM chip #188

Closed
horver opened this issue Sep 25, 2021 · 2 comments
Closed

Can't clear TPM chip #188

horver opened this issue Sep 25, 2021 · 2 comments
Assignees

Comments

@horver
Copy link

horver commented Sep 25, 2021

Hello,

I would like to ask a question about clearing the SLB9670 TPM chip.
After updating wolfTPM to v2.2.0, I had changed the handle authorization password and then I wanted to reset the chip using wolfTPM2_Clear. However the clear fails with:

TPM2_Clear failed 2337: TPM_RC_EXCLUSIVE: Command failed because audit sequence required exclusivity

Unfortunately, I didn't found any information about this error.

Can you please help, what commands can I use to fix the reset?

@dgarske dgarske self-assigned this Sep 27, 2021
@dgarske
Copy link
Contributor

dgarske commented Sep 27, 2021

Hi @horver ,

Are you using the /dev/spidev interface, /dev/tpm0, Windows TBS or something else to communicate with the TPM? The TPM2_Clear is only allowed when using the locality 0, which is our default when using the internal TIS layer and /dev/spidev. Do other TPM command was fine? Perhaps this TPM has a policy auth set to prevent this without authenticating. Have you reviewed the TPM 2.0 specification around the TPM2_Clear command?

Thanks,
David Garske, wolfSSL

@dgarske
Copy link
Contributor

dgarske commented Jul 15, 2022

Hi @horver ,

Some time has passed with no update, so I wanted to check in. Did you find a resolution to this issue?

Note it is possible to disable the TPM2_Clear with the TPM2_ClearControl.

Thanks,
David Garske, wolfSSL

@dgarske dgarske closed this as completed Jan 30, 2023
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

2 participants