kexec fails with "Unhandled rela relocation: R_X86_64_PLT32"

Bug #1791804 reported by Thadeu Lima de Souza Cascardo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Fix Released
High
Thadeu Lima de Souza Cascardo
Bionic
Invalid
Undecided
Unassigned
Cosmic
Fix Released
High
Thadeu Lima de Souza Cascardo

Bug Description

[Impact]
Without this fix, kexec won't be able to load kernels on amd64.

[Test Case]
kexec has been tested to be able to load a 4.18 kernel.

[Regression Potential]
As the fix is only applied to the x86_64 portion of kexec, only this platform should be affected. Package with fix has been tested there.

When running kexec with 4.18, it fails.

$ sudo kexec -l /boot/vmlinuz-4.18.0-5-generic --initrd /boot/initrd.img-4.18.0-5-generic --append "`cat /proc/cmdline`"
Unhandled rela relocation: R_X86_64_PLT32

Changed in makedumpfile (Ubuntu):
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Build with upstream patch and tested on my system, it fixes the problem. Attaching the debdiff.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :
description: updated
affects: makedumpfile (Ubuntu Bionic) → kexec-tools (Ubuntu Bionic)
Changed in kexec-tools (Ubuntu Cosmic):
status: In Progress → Fix Committed
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Bionic is not affected, because this relocation seems to be generated by new binutils. Tested that bionic kexec-tools can load a linux-hwe-edge 4.18 kernel.

Changed in kexec-tools (Ubuntu Bionic):
status: New → Invalid
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Unsubscribing ~ubuntu-sponsors because there is nothing more to sponsor.

If this was done in error, please resubscribe us.

Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kexec-tools - 1:2.0.16-1ubuntu3

---------------
kexec-tools (1:2.0.16-1ubuntu3) cosmic; urgency=medium

  * Fix for "Unhandled rela relocation: R_X86_64_PLT32" error. LP: #1791804

 -- Thadeu Lima de Souza Cascardo <email address hidden> Mon, 10 Sep 2018 16:46:00 -0300

Changed in kexec-tools (Ubuntu Cosmic):
status: Fix Committed → 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.