[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-09-02 Thread Doug Jacobs
** Tags added: lookout-canyon

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  Invalid
Status in linux-intel package in Ubuntu:
  Invalid

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-08-12 Thread Anthony Wong
** Changed in: linux-intel (Ubuntu)
   Status: New => Invalid

** Changed in: intel
   Status: New => Invalid

** Changed in: intel
   Importance: Critical => Undecided

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  Invalid
Status in linux-intel package in Ubuntu:
  Invalid

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-08-11 Thread Ivan Hu
For the tpm2_loadexternal, and tpm2_import tests, the failure seems from
RSA private key 1024 bit no support for this platform. So TPM returned
ErrorCode (0x02c4), "value is out of range or is not correct for the
context"

+ openssl genrsa -aes128 -passout pass:mypassword -out private.pem 1024
Generating RSA private key, 1024 bit long modulus (2 primes)
.+
...+
e is 65537 (0x010001)
+ '[' pass:mypassword '!=' stdin ']'
+ cmd='tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin 
pass:mypassword'
+ eval tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin 
pass:mypassword
++ tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin 
pass:mypassword
WARNING:esys:src/tss2-esys/api/Esys_LoadExternal.c:304:Esys_LoadExternal_Finish()
 Received TPM Error 
ERROR:esys:src/tss2-esys/api/Esys_LoadExternal.c:108:Esys_LoadExternal() Esys 
Finish ErrorCode (0x02c4) 
ERROR: Esys_LoadExternal(0x2C4) - tpm:parameter(2):value is out of range or is 
not correct for the context
ERROR: Unable to run tpm2_loadexternal

>From the PTP spec"TCG PC Client Platform TPM Profile Specification for TPM 
>2.0",
Table2. PC Client TPM Algorithms
It described,
TPM_ALG_RSA M Support for 2048-bit keys is required; the TPM SHOULD NOT support 
1024-bit keys.

So I think this could be safely ignored, if 1024 key is not supported.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  New
Status in linux-intel package in Ubuntu:
  New

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-08-11 Thread Ivan Hu
For the tpm2_createprimary tests,

The failures are both from tpm2_createprimary whit hash-algorithm
sm3_256

+ tpm2_createprimary -Q -g sm3_256 -G rsa -c context.out
ERROR:esys_crypto:src/tss2-esys/esys_crypto_ossl.c:103:iesys_cryptossl_hash_start()
 ErrorCode (0x00070002) Unsupported hash algorithm (18) 
ERROR:esys:src/tss2-esys/esys_iutil.c:1493:iesys_get_name() crypto hash start 
ErrorCode (0x00070002) 
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:426:Esys_CreatePrimary_Finish()
 ErrorCode (0x00070011) in Public name not equal name in response 
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:135:Esys_CreatePrimary() Esys 
Finish ErrorCode (0x00070011) 
ERROR: Esys_CreatePrimary(0x70011) - esapi:Response is malformed
ERROR:esys:src/tss2-esys/esys_iutil.c:1134:iesys_check_sequence_async() Esys 
called in bad sequence. 
ERROR:esys:src/tss2-esys/api/Esys_FlushContext.c:66:Esys_FlushContext() Error 
in async function ErrorCode (0x00070007) 
ERROR: Esys_FlushContext(0x70007) - esapi:Function called in the wrong order
ERROR: Unable to run tpm2_createprimary

the latest tpm2_tests will first check the platform supported hash algorithms, 
then do the tests with the hash algorithms.
But test with it, got
ERROR:esys_crypto:src/tss2-esys/esys_crypto_ossl.c:103:iesys_cryptossl_hash_start()
 ErrorCode (0x00070002) Unsupported hash algorithm (18)

Checking the tpm2-tss code, the sm3_256, so got the Unsupported hash algorithm 
return from tpm2-tss.
Below is the tss support hash,
get_ossl_hash_md(TPM2_ALG_ID hashAlg)
{
switch (hashAlg) {
case TPM2_ALG_SHA1:
return EVP_sha1();
break;
case TPM2_ALG_SHA256:
return EVP_sha256();
break;
case TPM2_ALG_SHA384:
return EVP_sha384();
break;
case TPM2_ALG_SHA512:
return EVP_sha512();
break;
default:
return NULL;
}
}

>From the latest Spec "TCG PC Client Platform TPM Profile Specification for TPM 
>2.0, Version 1.05
Revision 14 September 4, 2020"
I found that "sm3_256" is optional.
So, I think this failure could be safely ignored.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  New
Status in linux-intel package in Ubuntu:
  New

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-08-10 Thread Ivan Hu
For the tpm2_clockrateadjust test fail,

+ tpm2_clockrateadjust s
WARNING:esys:src/tss2-esys/api/Esys_ClockRateAdjust.c:287:Esys_ClockRateAdjust_Finish()
 Received TPM Error 
ERROR:esys:src/tss2-esys/api/Esys_ClockRateAdjust.c:100:Esys_ClockRateAdjust() 
Esys Finish ErrorCode (0x01c4) 
ERROR: Esys_ClockRateAdjust(0x1C4) - tpm:parameter(1):value is out of range or 
is not correct for the context
ERROR: Unable to run tpm2_clockrateadjust

it occurred on the tpm2_clockrateadjust to slow down the clock period
one fine increment and got the "value is out of range or is not correct
for the context" from TPM.

It is due to the platform unsupported the clock rate adjust, it is known
that some firmware TPM do not support this function, please check if
this platform is firmware TPM, and check with your TPM vendors.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  New
Status in linux-intel package in Ubuntu:
  New

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1936899] Re: [IoTG] [TGL-H] TPM tests fail

2021-08-10 Thread Kent Lin
** Also affects: linux-intel (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1936899

Title:
  [IoTG] [TGL-H] TPM tests fail

Status in intel:
  New
Status in linux-intel package in Ubuntu:
  New

Bug description:
  [Summary]TPM tests from CDTS 20 automated fail

  [Steps to reproduce]Run cdts.odm_certification, select TPM

  [Expected result]All tests should pass.

  [Actual result]
  Failed Jobs (TPM 2.0):
  tpm2.0_4.1.1/tpm2_clockratedadjust
  tpm2.0_4.1.1/tpm2_createprimary
  tpm2.0_4.1.1/tpm2_import
  tpm2.0_4.1.1/tpm2_loadexternal

  Jobs with failed dependencies
  tpm2.0_4.1.1/tpm2_rc_decode

  [Failure rate]100%

  [Additional information]
  CID: 202106-29175
  SKU: 
  system-manufacturer: Intel Corporation
  system-product-name: Tiger Lake Client Platform
  bios-version: TGLIFUI1.R00.3455.A03.2011281547
  CPU: Genuine Intel(R) CPU  @ 2.60GHz (16x)
  GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device 
[8086:9a60]
  kernel-version: 5.11.0-1009-intel


  [Stage]
  Issue reported and logs collected right after it happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp