Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2021580

Summary: Rebase swtpm to at least 0.7.0 for rhel-9.0
Product: Red Hat Enterprise Linux 9 Reporter: Klaus Heinrich Kiwi <kkiwi>
Component: swtpmAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED ERRATA QA Contact: Yanqiu Zhang <yanqzhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: abologna, coli, jferlan, jsuchane, marcandre.lureau, qcheng, virt-bugs, virt-maint, xuzhang, yanqzhan
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: swtpm-0.7.0-1.20211109gitb79fd91.el9 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1972785
: 2021628 2029612 (view as bug list) Environment:
Last Closed: 2022-05-17 13:00:59 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1940893, 1972785, 2021628    
Bug Blocks: 1935497, 1990153, 2029612    

Description Klaus Heinrich Kiwi 2021-11-09 16:48:18 UTC
+++ This bug was initially created as a clone of Bug #1972785 +++

+++ This bug was initially created as a clone of Bug #1972783 +++

Please rebase swtpm to at least 0.7.0 (to be released soon)

This is necessary to pick-up the necessary changes to disable SHA-1 PCR banks (see Bug 1935497)

Those are the relevant patches:
  * gets a config file option to specify the pcr banks which should be
    active by default.
https://github.com/stefanberger/swtpm/commit/a5cc0bf6e26eb4af5cbfd0e66fcd7e6af13f503d

  * gets support for reconfiguring the active pcr banks in an existing
    swtpm config
https://github.com/stefanberger/swtpm/commit/25d4ac2d3a7bf63ea2eb0621f0a1f416b7ce5481

Comment 3 Marc-Andre Lureau 2021-11-09 19:00:38 UTC
upstream got released: https://github.com/stefanberger/swtpm/releases/tag/v0.7.0

Comment 9 Yanqiu Zhang 2021-11-24 07:29:49 UTC
Vtpm regression test for linux guest passed:
  swtpm-0.7.0-1.20211109gitb79fd91.el9
  libtpms-0.9.0-0.20211004gitdc4e3f6313.el9
  edk2-ovmf-20210527gite1999b264f1f-7.el
  libvirt-7.9.0-1.el9.x86_64
  qemu-kvm-6.1.0-6.el9.x86_64
  kernel-5.14.0-17.el9.x86_64
Job url:
  https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/libvirt-RHEL-9.0-runtest-x86_64-function-tpm_emulator/89/testReport/
    2 failed by kernel issue: bz2025520

Comment 13 Yanqiu Zhang 2022-01-24 03:38:00 UTC
Vtpm regression test for linux guest PASS:
https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/libvirt/view/RHEL-9.0%20x86_64/job/libvirt-RHEL-9.0-runtest-x86_64-function-tpm_emulator/109/testReport/  
(2 skipped by bz2025520)
libvirt-8.0.0-1.el9.x86_64
qemu-kvm-6.2.0-4.el9.x86_64
kernel-5.14.0-42.el9.x86_64
swtpm-0.7.0-1.20211109gitb79fd91.el9
libtpms-0.9.1-0.20211126git1ff6fe1f43.el9

Comment 15 errata-xmlrpc 2022-05-17 13:00:59 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: swtpm), 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:2436