0

我在 Ubuntu 17.10 上发现了 tpm2.0 芯片。我在 1.1.0 版中使用 tpm2-tools 包。(我的笔记本电脑上有物理芯片)。但是,当我尝试清除芯片时出现错误。

$ tpm2_takeownership -c
Clear Failed ! ErrorCode: 0x921

我也启动了 tpmtest 并且几乎没有错误。

9 - DICTIONARY ATTACK LOCK RESET TEST
DICTIONARY ATTACK LOCK RESET TEST:
    passing case:   FAILED!  TPM Error: 0x921

16 - POLICY TESTS
POLICY TESTS:
Policy Test: PASSWORD
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   PASSED!
    passing case:   FAILED!  TPM Error: 0x9a2

24 - QUOTE CONTROL TESTS
QUOTE CONTROL TESTS:
    passing case:   FAILED!  TPM Error: 0x184

我在 tpmclient 中也有一个失败的测试。

$ tpmclient
[...]
STARTUP TESTS:
passing case:   PASSED!
passing case:   FAILED!  TPM Error: 0x100

我检查了resourcemgr 服务是否已很好地激活。我在 tpm 上尝试了一些基本命令(tpm2_create、tpm2_load、tpm2_rsaencrypt、tpm2_sign 等),它们都起作用了。

这是 tpm2_rc_decode 的输出:

$ tpm2_rc_decode 0x921
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 0 warning code
  hex: 0x21
  name: TPM_RC_LOCKOUT
  description: authorizations for objects subject to DA protection are not allowed at this time because the TPM is in DA lockout mode

$ tpm2_rc_decode 0x9a2
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 1 error code
  hex: 0x22
  identifier: TPM_RC_BAD_AUTH
  description: authorization failure without DA implications
session
  hex: 0x100
  identifier: TPM_RC_1
  description:  (null) 

$ tpm2_rc_decode 0x184
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 1 error code
  hex: 0x04
  identifier: TPM_RC_VALUE
  description: value is out of range or is not correct for the context
handle
  hex:0x100
  identifier:  TPM_RC_1
  description:  (null)

$ tpm2_rc_decode 0x100
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 0 error code
  hex: 0x00
  name: TPM_RC_INITIALIZE
  description: TPM not initialized

我是 tpm 技术的新手,所以我想知道这些错误是来自 tpm 本身还是来自 tpm2-tools 包。谢谢您的帮助 !

4

1 回答 1

0

RC = 0x100 确实不是 100% 错误。我看了一下 tpm2-tss 来源。在他们的集成测试中,错误(并且只有它)在测试启动时被忽略(文件:test/integration/main-sapi.c test/integration/main-esapi.c)

此外,他们在标题中将错误描述为“TPM 未由 TPM2_Startup 初始化或已初始化”。因此,最有可能的是,您的错误只是初始化重复。

于 2018-07-20T15:26:54.310 回答