tpm2_createprimary failed on non-supported algorithm sha3_256

Bug #1884229 reported by Alex Tu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Triaged
High
Alex Tu
Provider for Plainbox - TPM2
Expired
Undecided
Unassigned
tpm2-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

tpm2-tss not yet support sha3_256.

In this test case on a machine reported it support sha3_256 then call
`tpm2_createprimary -Q -g sha3_256 -G rsa -c context.out`

The this test case will be marked as error.

tpm2_createprimary should returned "5 - Non supported scheme. Applicable to tpm2_testparams." , so that we can skip the non-supported algorithm.

upstream bug: https://github.com/tpm2-software/tpm2-tools/issues/2110

Related branches

Alex Tu (alextu)
Changed in oem-priority:
importance: Undecided → High
tags: added: oem-priority originate-from-1880048 somerville
Revision history for this message
Alex Tu (alextu) wrote :

hmm the tpm2_createprimary not actually return 5 when it encounters an unsupported algorithm.

Revision history for this message
Alex Tu (alextu) wrote :

created an upstream issue there as well : https://github.com/tpm2-software/tpm2-tools/issues/2110

description: updated
Alex Tu (alextu)
description: updated
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

The upstream bug is closed and a patch is merged.

Given so, do we still need this MP?

Revision history for this message
Alex Tu (alextu) wrote :

No, we don't need this MP while upstream fixed it. But we need another MP to check the return code.

Changed in oem-priority:
assignee: nobody → Alex Tu (alextu)
Revision history for this message
Alex Tu (alextu) wrote :

this issue is waiting for upstream release a new version included the fix. [1] [2]

[1] https://github.com/tpm2-software/tpm2-tools/issues/2110
[2] https://github.com/tpm2-software/tpm2-tools/releases

Changed in oem-priority:
status: New → Triaged
Revision history for this message
Maksim Beliaev (beliaev-maksim) wrote :

Bug was migrated to GitHub: https://github.com/canonical/checkbox/issues/169.
Bug is no more monitored here.

Changed in plainbox-provider-tpm2:
status: New → Expired
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

fix released in jammy.

Changed in tpm2-tools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.