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

Unable to create more than 16 NV indexes #3382

Closed
akumarray008 opened this issue Apr 24, 2024 · 1 comment
Closed

Unable to create more than 16 NV indexes #3382

akumarray008 opened this issue Apr 24, 2024 · 1 comment

Comments

@akumarray008
Copy link

Using tpm2-tools, I am exploring NV indexes creation using the available commands:
My tpm is already having 13 indexes defined and I can see it through
sudo tpm2_getcap handles-nv-index
<list of 13 NV handles>

After that I try to create 4 NV indexes
sudo tpm2_nvdefine -C o -s 32
sudo tpm2_nvdefine -C o -s 32
sudo tpm2_nvdefine -C o -s 32
sudo tpm2_nvdefine -C o -s 32

The first three gets successfully created but the 4th tpm2_nvdefine fails. Even if I try to create 4 NV indexes of 1 byte each, still 4th one fails. In short, after 16(13 existing + 3 new) indexes, when I try to define space for 17th index, it gives me error of insufficient space for NV as below:
ERROR: Esys_NV_DefineSpace(0x14B) - tpm:error(2.0): insufficient space for NV allocation

Is there any property or variable defined for how many NV indexes we can create ? I went through spec as well but could not find anything related to this.

@AndreasFuchsTPM
Copy link
Member

AndreasFuchsTPM commented May 8, 2024

The amount of NV indices depends on the specific TPM you have.
Then it depends on the sizes of the NV indices.
The PC Client TPM profile specifies the minimum numbers somewhere: https://trustedcomputinggroup.org/wp-content/uploads/PC-Client-Specific-Platform-TPM-Profile-for-TPM-2p0-v1p05p_r14_pub.pdf
But actual TPMs but offer more space.

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