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