RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1990152 - Remove libtpms 1.2 support from RHEL9
Summary: Remove libtpms 1.2 support from RHEL9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libtpms
Version: 9.0
Hardware: All
OS: Unspecified
high
high
Target Milestone: beta
: ---
Assignee: Marc-Andre Lureau
QA Contact: Qinghua Cheng
URL:
Whiteboard:
Depends On: 1990153 1991494 2021628
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-04 21:24 UTC by John Ferlan
Modified: 2022-05-17 13:18 UTC (History)
8 users (show)

Fixed In Version: libtpms-0.9.0-0.20211004gitdc4e3f6313.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1991494 (view as bug list)
Environment:
Last Closed: 2022-05-17 13:00:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-92413 0 None None None 2021-08-04 21:34:11 UTC
Red Hat Product Errata RHEA-2022:2435 0 None None None 2022-05-17 13:00:52 UTC

Description John Ferlan 2021-08-04 21:24:09 UTC
Let's "officially" drop 1.2 support, for some more details/context see:

https://bugzilla.redhat.com/show_bug.cgi?id=1967919#c11 

should just require adding --without-tpm12

Comment 1 Marc-Andre Lureau 2021-08-09 09:39:45 UTC
Upstream PR is merged, we can work on the backport for libtpms:
https://github.com/stefanberger/libtpms/pull/244

However, we should first fix swtpm to build with such changes.

Comment 12 Qinghua Cheng 2021-11-18 06:18:47 UTC
Verified on rhel 9

swtpm-0.7.0-1.20211109gitb79fd91.el9.x86_64
libtpms-0.9.0-0.20211004gitdc4e3f6313.el9.x86_64
edk2-ovmf-20210527gite1999b264f1f-7.el9.noarch
kernel: 5.14.0-15.el9.x86_64
qemu-kvm: qemu-kvm-6.1.0-6.el9.x86_64

# swtpm socket --print-capabilities
{ "type": "swtpm", "features": [ "tpm-2.0", "tpm-send-command-header", "flags-opt-startup", "cmdarg-seccomp", "cmdarg-key-fd", "cmdarg-pwd-fd", "cmdarg-print-states", "nvram-backend-dir", "nvram-backend-file" ], "version": "0.7.0" }

Start a guest with tpm1.2

 <tpm model='tpm-tis'>
      <backend type='emulator' version='1.2'/>
 </tpm>

Get error:
error: internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/win11-swtpm.log' for details.

# cat /var/log/swtpm/libvirt/qemu/win11-swtpm.log
swtpm at /usr/bin/swtpm does not support TPM 1.2

Bug verified.

Comment 14 errata-xmlrpc 2022-05-17 13:00:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: libtpms), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:2435


Note You need to log in before you can comment on or make changes to this bug.