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 1749085 - Backport workaround for "bfd elf.c assertion for multiple relocations to same section" [rhel-7.8]
Summary: Backport workaround for "bfd elf.c assertion for multiple relocations to same...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 1749084
Blocks: 1755778 1755779
TreeView+ depends on / blocked
 
Reported: 2019-09-04 20:22 UTC by Joe Lawrence
Modified: 2020-03-31 20:07 UTC (History)
14 users (show)

Fixed In Version: binutils-2.27-42.base.el7
Doc Type: No Doc Update
Doc Text:
Clone Of: 1749084
: 1755778 1755779 (view as bug list)
Environment:
Last Closed: 2020-03-31 20:07:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1156 0 None None None 2020-03-31 20:07:36 UTC

Description Joe Lawrence 2019-09-04 20:22:14 UTC
+++ This bug was initially created as a clone of Bug #1749084 +++

Livepatch kernel module ELF files may be constructed with relocation sections that target the same ELF (usually .text) section.  This was reported upstream:

  https://sourceware.org/bugzilla/show_bug.cgi?id=24456

with a workaround to stop the BFD library from failing when encountering the second set of relocs for the same section:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a7ba389645d178c43100ec47e513389ae8bf8f93

Without this workaround, it may be difficult to debug livepatch / kernel bugs as client programs like objdump cannot process livepatch kernel modules.  See bz-1733816 for example.

Note that this affects serviceability by Red Hat rather than the customer livepatch experience (customers are not expected to run such utilities against livepatch kernel modules).

--- Additional comment from Joe Lawrence on 2019-09-04 20:11:02 UTC ---

Comment 7 Nick Clifton 2019-09-10 10:23:01 UTC
Fixed in: binutils-2.27-42.base.el7

Comment 11 Alexandra Petlanová Hájková 2019-10-23 12:40:35 UTC
Verified with binutils-2.27-42.base.el7.

objdump -p livepatch-annotated-sample.ko
objdump: livepatch-annotated-sample.ko: warning: multiple relocation sections for section .text found - ignoring all but the first

livepatch-annotated-sample.ko:     file format elf64-x86-64

Comment 13 errata-xmlrpc 2020-03-31 20:07:14 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, 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-2020:1156


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