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 2136215 - tpm2_eventlog --eventlog-version=2 fails with ERROR: Failled to allocate data: Cannot allocate memory [rhel-9.1.0.z]
Summary: tpm2_eventlog --eventlog-version=2 fails with ERROR: Failled to allocate data...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: tpm2-tools
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Štěpán Horáček
QA Contact: Vilém Maršík
URL:
Whiteboard:
Depends On: 2114026
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-19 15:48 UTC by RHEL Program Management Team
Modified: 2022-11-16 12:58 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2114026
Environment:
Last Closed: 2022-11-15 16:02:21 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-137062 0 None None None 2022-10-19 16:05:52 UTC
Red Hat Product Errata RHBA-2022:8451 0 None None None 2022-11-15 16:02:23 UTC

Comment 9 Jeff Bastian 2022-10-28 16:42:10 UTC
Verified with  on RHEL-9.1.0-20221028.2

::::::::::::
:: Before ::
::::::::::::

[root@intel-eaglestream-spr-02 ~]# uname -r
5.14.0-162.6.1.el9_1.x86_64

[root@intel-eaglestream-spr-02 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.1 (Plow)

[root@intel-eaglestream-spr-02 ~]# rpm -q tpm2-tools
tpm2-tools-5.2-1.el9.x86_64

[root@intel-eaglestream-spr-02 ~]# ls -l /sys/kernel/security/tpm0/binary_bios_measurements 
-r--r-----. 1 root root 0 Oct 28 12:26 /sys/kernel/security/tpm0/binary_bios_measurements

[root@intel-eaglestream-spr-02 ~]# tpm2_eventlog --eventlog-version=2 /sys/kernel/security/tpm0/binary_bios_measurements 2>&1 | tail 
  Event:
    VariableName: 605dab50-e046-4300-abb6-3dd810dd8b23
    UnicodeNameLength: 14
    VariableDataLength: 1
    UnicodeName: MokListTrusted
    VariableData:
ERROR: Failled to allocate data: Cannot allocate memory

ERROR: failed to parse tpm2 eventlog
ERROR: Unable to run tpm2_eventlog



:::::::::::
:: After ::
:::::::::::

[root@intel-eaglestream-spr-02 ~]# rpm -q tpm2-tools
tpm2-tools-5.2-2.el9_1.x86_64

[root@intel-eaglestream-spr-02 ~]# tpm2_eventlog --eventlog-version=2 /sys/kernel/security/tpm0/binary_bios_measurements 2>&1 | tail
    1  : 0xff2b2ba0f198156f77da73f5f641b1c2374f019d48b2cad874beedd80f04493f
    2  : 0x1bbd909f44e88f520ed1ffbc5e2c3aea7d3f5ba53e7cc87b0c964d9e89cfe320
    3  : 0x3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969
    4  : 0x1e7725fd8b0ed572ad2d9453986b253381895945b6afea82ea6c25bbdc762b4e
    5  : 0x4cbeda4a809680a96ec227f611ad4c7ba8bb47f7502f0ed97eac32af05872b1d
    6  : 0x3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969
    7  : 0x5d3653dd376a10680ace93ebf6db89f5641a7047fa9264c0e897177a3cb52b8b
    8  : 0xd384d7452952e5378876834e13be97df626d1e7f598611b6127e496ab2a09acb
    9  : 0x3bee04dcdf84dd97d1868fbf7742f51c8415a68c33384f263dc557317f4de590
    14 : 0xa4dad77fb3b6cacbd20f556986c5d917f5e322c123af82d12c5e5b7ef7ae9938

[root@intel-eaglestream-spr-02 ~]# tpm2_eventlog --eventlog-version=2 /sys/kernel/security/tpm0/binary_bios_measurements 2>&1 | grep ERROR

[root@intel-eaglestream-spr-02 ~]#

Comment 10 Jeff Bastian 2022-10-28 16:43:03 UTC
(In reply to Jeff Bastian from comment #9)
> Verified with  on RHEL-9.1.0-20221028.2


Oops, copy/paste error; that should be:

Verified with tpm2-tools-5.2-2.el9_1 on RHEL-9.1.0-20221028.2

Comment 12 Vilém Maršík 2022-10-31 11:24:42 UTC
Reproduced, and verified with tpm2-tools-5.2-2.el9_1.x86_64 on latest-RHEL-9.1.0 . Jeff was faster.

Comment 15 errata-xmlrpc 2022-11-15 16:02:21 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 (tpm2-tools bug fix and enhancement update), 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/RHBA-2022:8451


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