All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] Re: unable to take ownership of TPM2.0 device
@ 2020-09-10  7:50 Fuchs, Andreas
  0 siblings, 0 replies; 3+ messages in thread
From: Fuchs, Andreas @ 2020-09-10  7:50 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 2769 bytes --]

Hi...

these version are soooooo old and unsupported unfortunately.
1.0 was still quite buggy and we change a lot of the architecture.

Please upgrade to tpm2-tss-3.0.0 or 3.0.1 (in a few days), tools 4.3.0 and abrmd 2..3.3

Also note, that there is no takeownership command anymore.
The TPM 2.0 comes active and available.

But you can use tss2_provision to set passwords and populate the keystore.

Cheers,
Andreas
________________________________________
From: Chenxi Z [cxzhang1981(a)hotmail.com]
Sent: Wednesday, September 09, 2020 23:49
To: tpm2(a)lists.01.org
Subject: [tpm2] unable to take ownership of TPM2.0 device

Hi,

I am encountering an issue that TPM2 device in DA lockout mode, and I am unable to take ownership or unlock it.
Could anyone help me how to resolve it?

TPM2 tools version:
[root(a)myhost ~]# rpm -qa | grep tpm2
tpm2-tss-1.0.
tpm2-abrmd-1.0
tpm2-tools-1.1


[root(a)myhost ~]# tpm2_dump_capability -c properties-variable
TPM_PT_PERSISTENT:
  ownerAuthSet:              clear
  endorsementAuthSet:   clear
  lockoutAuthSet:            clear
  reserved1:                    clear
  disableClear:                clear
  inLockout:                     clear
  tpmGeneratedEPS:      clear
  reserved2:                 clear
TPM_PT_STARTUP_CLEAR:
  phEnable:                  set
  shEnable:                  set
  ehEnable:                  set
  phEnableNV:              set
  reserved1:                 clear
  orderly:                   clear
TPM_PT_HR_NV_INDEX:          0x00000008
TPM_PT_HR_LOADED:            0x00000000
TPM_PT_HR_LOADED_AVAIL:      0x00000004
TPM_PT_HR_ACTIVE:            0x00000000
TPM_PT_HR_ACTIVE_AVAIL:      0x00000040
TPM_PT_HR_TRANSIENT_AVAIL:   0x00000005
TPM_PT_HR_PERSISTENT:        0x00000001
TPM_PT_HR_PERSISTENT_AVAIL:  0x00000007
TPM_PT_NV_COUNTERS:          0x00000000
TPM_PT_NV_COUNTERS_AVAIL:    0x00000008
TPM_PT_ALGORITHM_SET:        0x00000000
TPM_PT_LOADED_CURVES:        0x00000003
TPM_PT_LOCKOUT_COUNTER:      0x00000000
TPM_PT_MAX_AUTH_FAIL:        0x00000020
TPM_PT_LOCKOUT_INTERVAL:     0x00001c20
TPM_PT_LOCKOUT_RECOVERY:     0x00015180
TPM_PT_NV_WRITE_RECOVERY:    0x00000000
TPM_PT_AUDIT_COUNTER_0:      0x00000000
TPM_PT_AUDIT_COUNTER_1:      0x00000000


Here is the issue:
[root(a)myhost ~]# tpm2_takeownership -c -L <PWD>  -O <PWD>  -E <PWD>
ERROR: Clearing Failed! TPM error code: 0x921


[root(a)myhost ~]# tpm2_dictionarylockout -c --lockout-passwd <PWD>
ERROR: 0x921 Error clearing dictionary lockout.
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tpm2] Re: unable to take ownership of TPM2.0 device
@ 2020-09-10  9:46 Diego Santa Cruz
  0 siblings, 0 replies; 3+ messages in thread
From: Diego Santa Cruz @ 2020-09-10  9:46 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 2919 bytes --]

Hi,

If you have lost the lockout password then you can request the BIOS to clear the TPM via the Physical Presence Interface (PPI), of course you will loose all data on the TPM and any saved keys will be invalidated.

The clear operation is 5 and you can queue the requests are via /sys/class/tpm/tpm0/ppi/request, so the following should do it

echo 5 > /sys/class/tpm/tpm0/ppi/request
reboot

Upon reboot the BIOS may pause the boot and request a confirmation on the keyboard, it depends on the BIOS settings.

Best,

Diego

-- 
Diego Santa Cruz, PhD
Technology Architect
spinetix.com

-----Original Message-----
From: Chenxi Z <cxzhang1981(a)hotmail.com> 
Sent: 09 September 2020 23:49
To: tpm2(a)lists.01.org
Subject: [tpm2] unable to take ownership of TPM2.0 device

Hi,

I am encountering an issue that TPM2 device in DA lockout mode, and I am unable to take ownership or unlock it.
Could anyone help me how to resolve it?

TPM2 tools version:
[root(a)myhost ~]# rpm -qa | grep tpm2
tpm2-tss-1.0.
tpm2-abrmd-1.0
tpm2-tools-1.1


[root(a)myhost ~]# tpm2_dump_capability -c properties-variable
TPM_PT_PERSISTENT:
  ownerAuthSet:              clear
  endorsementAuthSet:   clear
  lockoutAuthSet:            clear
  reserved1:                    clear
  disableClear:                clear
  inLockout:                     clear
  tpmGeneratedEPS:      clear
  reserved2:                 clear
TPM_PT_STARTUP_CLEAR:
  phEnable:                  set
  shEnable:                  set
  ehEnable:                  set
  phEnableNV:              set
  reserved1:                 clear
  orderly:                   clear
TPM_PT_HR_NV_INDEX:          0x00000008
TPM_PT_HR_LOADED:            0x00000000
TPM_PT_HR_LOADED_AVAIL:      0x00000004
TPM_PT_HR_ACTIVE:            0x00000000
TPM_PT_HR_ACTIVE_AVAIL:      0x00000040
TPM_PT_HR_TRANSIENT_AVAIL:   0x00000005
TPM_PT_HR_PERSISTENT:        0x00000001
TPM_PT_HR_PERSISTENT_AVAIL:  0x00000007
TPM_PT_NV_COUNTERS:          0x00000000
TPM_PT_NV_COUNTERS_AVAIL:    0x00000008
TPM_PT_ALGORITHM_SET:        0x00000000
TPM_PT_LOADED_CURVES:        0x00000003
TPM_PT_LOCKOUT_COUNTER:      0x00000000
TPM_PT_MAX_AUTH_FAIL:        0x00000020
TPM_PT_LOCKOUT_INTERVAL:     0x00001c20
TPM_PT_LOCKOUT_RECOVERY:     0x00015180
TPM_PT_NV_WRITE_RECOVERY:    0x00000000
TPM_PT_AUDIT_COUNTER_0:      0x00000000
TPM_PT_AUDIT_COUNTER_1:      0x00000000


Here is the issue:
[root(a)myhost ~]# tpm2_takeownership -c -L <PWD>  -O <PWD>  -E <PWD>
ERROR: Clearing Failed! TPM error code: 0x921


[root(a)myhost ~]# tpm2_dictionarylockout -c --lockout-passwd <PWD>
ERROR: 0x921 Error clearing dictionary lockout.
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tpm2] Re: unable to take ownership of TPM2.0 device
@ 2020-09-09 21:52 Chenxi Z
  0 siblings, 0 replies; 3+ messages in thread
From: Chenxi Z @ 2020-09-09 21:52 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 65 bytes --]

Adding more debug info.
[root(a)myhost ~]# uname -r
4.16.18-211

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-10  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10  7:50 [tpm2] Re: unable to take ownership of TPM2.0 device Fuchs, Andreas
  -- strict thread matches above, loose matches on Subject: below --
2020-09-10  9:46 Diego Santa Cruz
2020-09-09 21:52 Chenxi Z

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.