[tpm2] Re: tpm2_nvdefine fails with inconsistent attributes...

Kenneth Goldman <kgoldman at us.ibm.com>
Newsgroups dev.linux.lists.tpm2
Message-ID <OFF31632E1.42591036-ON002587A0.00516E2E-852587A0.0051AFEF@ibm.com>

My guess is that you do not set the TPMA_NVA_PLATFORMCREATE attribute.

The IBM utility sets it for you when the platform hierarchy authorizes the
command, since it must be set.

--
Ken Goldman   kgoldman(a)us.ibm.com
914-945-2415 (862-2415)




From:	"Sievert, James" <james.sievert(a)bsci.com>
To:	"tpm2(a)lists.01.org" <tpm2(a)lists.01.org>
Date:	12/03/2021 09:37 AM
Subject:	[EXTERNAL] [tpm2] tpm2_nvdefine fails with inconsistent
            attributes...



Hi, I’m using tpm2-tools 4.1.1 on Ubuntu 20.04. I’m issuing the following
command which is returning an inconsistent attributes error:
bsci(a)ip-10-132-42-225:~$ tpm2_nvdefine 0x1000025 -C p -s 1
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Hi,

I’m using tpm2-tools 4.1.1 on Ubuntu 20.04.  I’m issuing the following
command which is returning an inconsistent attributes error:

bsci(a)ip-10-132-42-225:~$ tpm2_nvdefine   0x1000025 -C p -s 1
WARNING:esys:src/tss2-esys/api/Esys_NV_DefineSpace.c:333:Esys_NV_DefineSpace_Finish()
 Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_NV_DefineSpace.c:122:Esys_NV_DefineSpace()
 Esys Finish ErrorCode (0x00000182)
ERROR: Failed to define NV area at index 0x1000025
ERROR: Esys_NV_DefineSpace(0x182) - tpm:handle(1):inconsistent attributes
ERROR: Unable to run tpm2_nvdefine

and yes, I am attempting to define the index using the platform hierarchy.
?  This does work using the IBM utilities.

Here are the current properties:

bsci(a)ip-10-132-42-225:~$ tpm2_getcap properties-variable
TPM2_PT_PERSISTENT:
  ownerAuthSet:              0
  endorsementAuthSet:        0
  lockoutAuthSet:            0
  reserved1:                 0
  disableClear:              0
  inLockout:                 0
  tpmGeneratedEPS:           0
  reserved2:                 0
TPM2_PT_STARTUP_CLEAR:
  phEnable:                  1
  shEnable:                  1
  ehEnable:                  1
  phEnableNV:                1
  reserved1:                 0
  orderly:                   0
TPM2_PT_HR_NV_INDEX: 0x6
TPM2_PT_HR_LOADED: 0x0
TPM2_PT_HR_LOADED_AVAIL: 0x3
TPM2_PT_HR_ACTIVE: 0x0
TPM2_PT_HR_ACTIVE_AVAIL: 0x40
TPM2_PT_HR_TRANSIENT_AVAIL: 0x3
TPM2_PT_HR_PERSISTENT: 0x0
TPM2_PT_HR_PERSISTENT_AVAIL: 0x11
TPM2_PT_NV_COUNTERS: 0x0
TPM2_PT_NV_COUNTERS_AVAIL: 0xD
TPM2_PT_ALGORITHM_SET: 0x0
TPM2_PT_LOADED_CURVES: 0x2
TPM2_PT_LOCKOUT_COUNTER: 0x0
TPM2_PT_MAX_AUTH_FAIL: 0x20
TPM2_PT_LOCKOUT_INTERVAL: 0x1C20
TPM2_PT_LOCKOUT_RECOVERY: 0x15180
TPM2_PT_AUDIT_COUNTER_0: 0x0
TPM2_PT_AUDIT_COUNTER_1: 0x0

Any insight would be appreciated.
Thanks!_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
attachment.htm (text/html, 6.7 KB)
<html><body><p><font size="2" face="sans-serif">My guess is that you do not set the TPMA_NVA_PLATFORMCREATE attribute.</font><br><br><font size="2" face="sans-serif">The IBM utility sets it for you when the platform hierarchy authorizes the command, since it must be set.<br><br>--<br>Ken Goldman &nbsp; [email protected] &nbsp; <br>914-945-2415 (862-2415)<br></font><br><br><img width="16" height="16" src="cid:[email protected]" border="0" alt="Inactive hide details for &quot;Sievert, James&quot; ---12/03/2021 09:37:25 AM---Hi, I’m using tpm2-tools 4.1.1 on Ubuntu 20.04.  I’m i"><font size="2" color="#424282" face="sans-serif">&quot;Sievert, James&quot; ---12/03/2021 09:37:25 AM---Hi, I’m using tpm2-tools 4.1.1 on Ubuntu 20.04. &nbsp;I’m issuing the following command which is returnin</font><br><br><font size="1" color="#5F5F5F" face="sans-serif">From:        </font><font size="1" face="sans-serif">&quot;Sievert, James&quot; &lt;[email protected]&gt;</font><br><font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">&quot;[email protected]&quot; &lt;[email protected]&gt;</font><br><font size="1" color="#5F5F5F" face="sans-serif">Date:        </font><font size="1" face="sans-serif">12/03/2021 09:37 AM</font><br><font size="1" color="#5F5F5F" face="sans-serif">Subject:        </font><font size="1" face="sans-serif">[EXTERNAL] [tpm2] tpm2_nvdefine fails with inconsistent attributes...</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="1" color="#FFFFFF" face="serif">Hi, I’m using tpm2-tools 4.1.1 on Ubuntu 20.04. I’m issuing the following command which is returning an inconsistent attributes error: bsci@ip-10-132-42-225:~$ tpm2_nvdefine 0x1000025 -C p -s 1 žžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžž</font><br><font size="2" face="Calibri">Hi,</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">I’m using tpm2-tools 4.1.1 on Ubuntu 20.04. &nbsp;I’m issuing the following command which is returning an inconsistent attributes error:</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">bsci@ip-10-132-42-225:~$ tpm2_nvdefine &nbsp; 0x1000025 -C p -s 1</font><br><font size="2" face="Calibri">WARNING:esys:src/tss2-esys/api/Esys_NV_DefineSpace.c:333:Esys_NV_DefineSpace_Finish() Received TPM Error</font><br><font size="2" face="Calibri">ERROR:esys:src/tss2-esys/api/Esys_NV_DefineSpace.c:122:Esys_NV_DefineSpace() Esys Finish ErrorCode (0x00000182)</font><br><font size="2" face="Calibri">ERROR: Failed to define NV area at index 0x1000025</font><br><font size="2" face="Calibri">ERROR: Esys_NV_DefineSpace(0x182) - tpm:handle(1):inconsistent attributes</font><br><font size="2" face="Calibri">ERROR: Unable to run tpm2_nvdefine</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">and yes, I am attempting to define the index using the platform hierarchy. &nbsp;</font><font size="2" face="Segoe UI Emoji">?</font><font size="2" face="Calibri">&nbsp; This does work using the IBM utilities. &nbsp;</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">Here are the current properties:</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">bsci@ip-10-132-42-225:~$ tpm2_getcap properties-variable</font><br><font size="2" face="Calibri">TPM2_PT_PERSISTENT:</font><br><font size="2" face="Calibri">&nbsp; ownerAuthSet: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</font><br><font size="2" face="Calibri">&nbsp; endorsementAuthSet: &nbsp; &nbsp; &nbsp; &nbsp;0</font><br><font size="2" face="Calibri">&nbsp; lockoutAuthSet: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</font><br><font size="2" face="Calibri">&nbsp; reserved1: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">&nbsp; disableClear: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</font><br><font size="2" face="Calibri">&nbsp; inLockout: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">&nbsp; tpmGeneratedEPS: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">&nbsp; reserved2: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">TPM2_PT_STARTUP_CLEAR:</font><br><font size="2" face="Calibri">&nbsp; phEnable: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</font><br><font size="2" face="Calibri">&nbsp; shEnable: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</font><br><font size="2" face="Calibri">&nbsp; ehEnable: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</font><br><font size="2" face="Calibri">&nbsp; phEnableNV: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</font><br><font size="2" face="Calibri">&nbsp; reserved1: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">&nbsp; orderly: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</font><br><font size="2" face="Calibri">TPM2_PT_HR_NV_INDEX: 0x6</font><br><font size="2" face="Calibri">TPM2_PT_HR_LOADED: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_HR_LOADED_AVAIL: 0x3</font><br><font size="2" face="Calibri">TPM2_PT_HR_ACTIVE: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_HR_ACTIVE_AVAIL: 0x40</font><br><font size="2" face="Calibri">TPM2_PT_HR_TRANSIENT_AVAIL: 0x3</font><br><font size="2" face="Calibri">TPM2_PT_HR_PERSISTENT: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_HR_PERSISTENT_AVAIL: 0x11</font><br><font size="2" face="Calibri">TPM2_PT_NV_COUNTERS: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_NV_COUNTERS_AVAIL: 0xD</font><br><font size="2" face="Calibri">TPM2_PT_ALGORITHM_SET: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_LOADED_CURVES: 0x2</font><br><font size="2" face="Calibri">TPM2_PT_LOCKOUT_COUNTER: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_MAX_AUTH_FAIL: 0x20</font><br><font size="2" face="Calibri">TPM2_PT_LOCKOUT_INTERVAL: 0x1C20</font><br><font size="2" face="Calibri">TPM2_PT_LOCKOUT_RECOVERY: 0x15180</font><br><font size="2" face="Calibri">TPM2_PT_AUDIT_COUNTER_0: 0x0</font><br><font size="2" face="Calibri">TPM2_PT_AUDIT_COUNTER_1: 0x0</font><br><font size="2" face="Calibri">&nbsp;</font><br><font size="2" face="Calibri">Any insight would be appreciated. &nbsp;</font><br><font size="2" face="Calibri">Thanks!</font><tt><font size="2">_______________________________________________<br>tpm2 mailing list -- [email protected]<br>To unsubscribe send an email to [email protected]<br>%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s</font></tt><br><br><BR>
<BR>
</body></html>
graycol.gif (image/gif, 105 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.