[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
Launchpad has imported 18 comments from the remote bug at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79041. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2017-01-10T11:17:05+00:00 Robert Schiele wrote: Created attachment 40487 test case to reproduce the problem To support older Cortex A53 CPUs that suffer from erratum 843419 the Linux kernel has some option not to allow certain relocations in kernel modules. To achieve that it utilizes the options -mcmodel=large -mpc- relative-literal-loads. Unfortunately we found a case where gcc does still produce such relocations despite the options being used if optimization level is at least -O2. The code in question is attached and the problem can be reproduced like this: $ aarch64-linux-gnu-gcc -O2 -mcmodel=large -mpc-relative-literal-loads -c t.c $ aarch64-linux-gnu-objdump -r t.o t.o: file format elf64-littleaarch64 RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 0018 R_AARCH64_CALL26 strcmp 0030 R_AARCH64_ADR_PREL_PG_HI21 .text+0x0060 0034 R_AARCH64_ADD_ABS_LO12_NC .text+0x0060 0050 R_AARCH64_ABS64 .rodata.str1.8 Obviously the attached code by itself might not be very useful but it is a stripped-down code example of a real-world kernel driver just to demonstrate the problem. Some observations: 1. The problem did reproduce with the latest patches from Linaro and with the upstream version (without the Linaro patches) of latest gcc 6 branch. 2. The problem did also reproduce with the gcc 5 branch including the Linaro patches on that branch. I did not check the gcc 5 branch without the Linaro patches. 3. The problem disappears if the useless (not used in the code) second entry in the array gets removed from the code. 4. The problem seems to be in the code that is generated for the strcpy by the compiler. 5. The problem disappears if the string is made longer. In that case the string ends up in .rodata.str1.8 section like the other string, while in the problematic case it is stored as .xword type in .text section. So my personal conclusion is that some code in the backend involved in this strcpy optimization does not honor the -mpc-relative-literal-loads option properly. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/0 On 2017-01-10T11:36:04+00:00 Ktkachov wrote: Confirmed on GCC 6.3.1 This doesn't appear on trunk. Trunk generates a pc-relative load. aarch64-none-elf-objdump -r t.o reloc.o: file format elf64-littleaarch64 RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 0018 R_AARCH64_CALL26 strcmp 0038 R_AARCH64_ABS64 .rodata.str1.8 0040 R_AARCH64_ABS64 .rodata.str1.8+0x0008 Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/1 On 2017-01-10T16:22:55+00:00 Ktkachov wrote: This was fixed by a trunk patch that has been only partially backported to GCC 6. Testing a patch to fix it. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/2 On 2017-01-11T06:25:55+00:00 Robert Schiele wrote: If you point me to the specific patch that you have in mind I can in parallel already test whether besides the test case I provided it also fixes the original problem this was detected with. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/3 On 2017-01-11T16:34:07+00:00 Ktkachov wrote: (In reply to Robert Schiele from comment #3) > If you point me to the specific patch that you have in mind I can in > parallel already test whether besides the test case I provided it also fixes > the original problem this was detected with. I've posted a patch for review at: https://gcc.gnu.org/ml/gcc-patches/2017-01/msg00736.html It should apply to a GCC 6-based tree (but not GCC 7 trunk which doesn't exhibit this bug) Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/4 On 2017-01-12T07:39:19+00:00 Robert Schiele wrote: Thanks! I can confirm that this also fixes the original problem for all cases we observed so far. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/comments/5 On 2017-01-12T17:42:22+00:00 Ktkachov wrote: thanks for
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Changed in: linux (Ubuntu Zesty) Status: Fix Committed => Won't Fix ** Changed in: linux (Ubuntu Xenial) Status: Fix Committed => Fix Released ** Changed in: linux (Ubuntu) Status: Triaged => Fix Released ** Changed in: gcc-6 (Ubuntu Zesty) Status: Triaged => Won't Fix ** Changed in: gcc-5 (Ubuntu Zesty) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Fix Released Status in gcc-5 source package in Xenial: Fix Released Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Fix Released Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Won't Fix Status in gcc-6 source package in Zesty: Won't Fix Status in linux source package in Zesty: Won't Fix Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
I've verified that this is resolved in both linux_4.4.0-101.124 and linux-hwe_4.10.0-40.44~16.04.1. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Fix Released Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Fix Committed Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Fix Committed Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Changed in: linux (Ubuntu Xenial) Status: Triaged => Fix Committed ** Changed in: linux (Ubuntu Zesty) Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Fix Released Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Fix Committed Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Fix Committed Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
This bug was fixed in the package gcc-5 - 5.4.0-6ubuntu1~16.04.5 --- gcc-5 (5.4.0-6ubuntu1~16.04.5) xenial-proposed; urgency=medium * SRU * Fix PR target/77267 (x86), taken from the trunk. LP: #1623418. * Fix hangs w/ asan binaries on arm64 (Dann Frazier). LP: #1709727. * Linaro branch only: Fix PR target/79041, aarch64 backend emitting R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads option being used (Dan Frazier). LP: #1695093. -- Matthias Klose Wed, 23 Aug 2017 11:35:00 +0200 ** Changed in: gcc-5 (Ubuntu Xenial) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Fix Released Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
gcc-5/xenial verified: ubuntu@neander:~$ cat /proc/version Linux version 4.4.0-96-generic (buildd@bos01-arm64-013) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #119-Ubuntu SMP Tue Sep 12 15:00:28 UTC 2017 ubuntu@neander:~$ sudo dmesg -c > /dev/null ubuntu@neander:~$ sudo modprobe scsi_debug modprobe: ERROR: could not insert 'scsi_debug': Exec format error ubuntu@neander:~$ dmesg [ 65.658638] module scsi_debug: unsupported RELA relocation: 275 ubuntu@neander:~$ sudo dpkg -i linux-image-4.4.0-96-generic_4.4.0-96.119+gccsru.1_arm64.deb && sudo reboot (Reading database ... 112555 files and directories currently installed.) Preparing to unpack linux-image-4.4.0-96-generic_4.4.0-96.119+gccsru.1_arm64.deb ... Done. Unpacking linux-image-4.4.0-96-generic (4.4.0-96.119+gccsru.1) over (4.4.0-96.119) ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic run-parts: executing /etc/kernel/postrm.d/zz-flash-kernel 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic Setting up linux-image-4.4.0-96-generic (4.4.0-96.119+gccsru.1) ... Running depmod. update-initramfs: deferring update (hook will be called later) Not updating initrd symbolic links since we are being updated/reinstalled (4.4.0-96.119 was configured last, according to dpkg) Not updating image symbolic links since we are being updated/reinstalled (4.4.0-96.119 was configured last, according to dpkg) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic update-initramfs: Generating /boot/initrd.img-4.4.0-96-generic W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. flash-kernel: deferring update (trigger activated) run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic flash-kernel: deferring update (trigger activated) run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-4.4.0-96-generic Found initrd image: /boot/initrd.img-4.4.0-96-generic Found linux image: /boot/vmlinuz-4.4.0-93-generic Found initrd image: /boot/initrd.img-4.4.0-93-generic Adding boot menu entry for EFI firmware configuration done Processing triggers for flash-kernel (3.0~rc.4ubuntu62.2) ... Unsupported platform on EFI system, doing nothing. Shared connection to 10.229.65.157 closed. @@@ REBOOT @@@ ubuntu@neander:~$ cat /proc/version Linux version 4.4.0-96-generic (root@neander) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5) ) #119+gccsru.1 SMP Thu Sep 14 21:43:33 UTC 2017 ubuntu@neander:~$ sudo modprobe scsi_debug ubuntu@neander:~$ sudo modprobe -r scsi_debug ubuntu@neander:~$ sudo dmesg -c > /dev/null (failed reverse-i-search)`modpor': sudo ^Cdprobe -r scsi_debug ubuntu@neander:~$ sudo modprobe scsi_debug ubuntu@neander:~$ dmesg [ 71.235619] scsi_debug:sdebug_driver_probe: host protection [ 71.235628] scsi host5: scsi_debug, version 1.85 [20141022], dev_size_mb=8, opts=0x0 [ 71.236469] scsi 5:0:0:0: Direct-Access Linuxscsi_debug 0184 PQ: 0 ANSI: 6 [ 71.237326] sd 5:0:0:0: Attached scsi generic sg3 type 0 [ 71.243989] sd 5:0:0:0: [sdd] 16384 512-byte logical blocks: (8.39 MB/8.00 MiB) [ 71.248044] sd 5:0:0:0: [sdd] Write Protect is off [ 71.248051] sd 5:0:0:0: [sdd] Mode Sense: 73 00 10 08 [ 71.255975] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 71.343980] sd 5:0:0:0: [sdd] Attached SCSI disk ubuntu@neander:~$ ** Tags removed: verification-needed verification-needed-xenial ** Tags added: verification-done verification-done-xenial -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Fix Committed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged St
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
Hello dann, or anyone else affected, Accepted gcc-5 into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gcc-5/5.4.0-6ubuntu1~16.04.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: gcc-5 (Ubuntu Xenial) Status: Triaged => Fix Committed ** Tags added: verification-needed verification-needed-xenial -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Fix Committed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Description changed: + [Impact] + Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. + + This symptom is similar to LP: #1533009 but, in that case it impacted + all modules, and the fix for that appears to remain in place. + + [Test Case] + With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 - This symptom is similar to LP: #1533009 but, in that case it impacted - all modules, and the fix for that appears to remain in place. + [Regression Risk] + The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Triaged Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: [Impact] Certain kernel modules are unloadable (libceph & scsi_debug) due to the compiler generating unsupported relocations. This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. [Test Case] With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 [Regression Risk] The scope of the fix is restricted to aarch64, so regressions should only impact the arm64 port of Ubuntu. Regressions could impact when literal loads are used - which may have performance impacts or possibly cause software to fail to build/run where it previously did. This is somewhat mitigated by the fact that this has been fixed in artful gcc-5/gcc-6 and used on our buildds for some time. Only "somewhat", because gcc-7 is now the default. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
This bug was fixed in the package gcc-5 - 5.4.1-12ubuntu2 --- gcc-5 (5.4.1-12ubuntu2) artful; urgency=medium * Merge with Debian; remaining changes: - Build from upstream sources. gcc-5 (5.4.1-12) unstable; urgency=medium * Update to SVN 20170820 (r251205, 5.4.1) from the gcc-5-branch. - Fix PR libgomp/80394, PR sanitizer/77396, PR sanitizer/80166, PR c++/78761, PR gcov-profile/78783, PR c++/79641, PR c/80097, PR c++/79512, PR c/77767, PR c/67410, PR c/72816, PR libgomp/80394, PR rtl-optimization/80385, PR target/80286 (x86), PR debug/80025, PR sanitizer/80168, PR rtl-optimization/80112, PR c++/80129, PR sanitizer/79944, PR target/79932 (x86), PR target/79932 (x86), PR rtl-optimization/79901, PR rtl-optimization/79901, PR target/79807, PR target/79729 (x86), PR middle-end/79396, PR target/79570, PR target/79494 (x86), PR target/79568 (x86), PR target/79559 (x86), PR tree-optimization/79411, PR middle-end/79399, PR target/79197 (PPC), PR ipa/77905, PR target/78796 (AArch64), PR fortran/78298, PR middle-end/69183, PR middle-end/78416, PR middle-end/67335, PR rtl-optimization/78378, PR target/78227 (x86), PR sanitizer/66343, PR rtl-optimization/77919, PR fortran/77665, PR middle-end/77624, PR target/77587, PR middle-end/77594, PR sanitizer/68260, PR fortran/77516, PR debug/77363, PR middle-end/77377, PR target/71910, PR tree-optimization/72824, PR tree-optimization/72824, PR sanitizer/71953, PR middle-end/79931, PR ipa/65972, PR lto/50345, PR gcov-profile/78783, PR gcov-profile/80413, PR ipa/80212, PR sanitizer/70878, PR gcov-profile/80224, PR ipa/80205, PR ipa/80104, PR c++/80363, PR c++/80176, PR c++/80141, PR c++/79896, PR c++/79664, PR c++/79512, PR c++/78341, PR c++/78949, PR c++/78649, PR c++/77739, PR c++/77285, PR c++/78089, PR c++/77467, PR c++/77722, PR c++/77637, PR c++/77375, PR c++/72868, PR fortran/78866, PR fortran/77666, PR fortran/77500, PR middle-end/50199, PR sanitizer/78992, PR sanitizer/78532, PR libstdc++/81002, PR c/81006, PR target/81894 (x86), PR target/81861 (x86), PR tree-optimization/81354, PR sanitizer/81604, PR tree-optimization/81555, PR tree-optimization/81556, PR tree-optimization/81162, PR target/80569 (x86), PR target/81471 (x86), PR target/81375 (x86), PR target/81300 (x86), PR tree-optimization/81192, PR target/80382 (PPC), PR target/80966 (PPC), PR rtl-optimization/73650, PR target/61729 (PPC), PR target/77850 (PPC), PR target/80382 (PPC), PR middle-end/80692, PR target/80966 (PPC), PR middle-end/80902, PR target/79155 (x86), PR other/80909, PR ipa/80663, PR ipa/79850, PR driver/31468, PR other/80589, PR gcov-profile/53915, PR driver/56469, PR target/80968 (SPARC), PR target/80968 (SPARC), PR c/81006, PR fortran/70601. - Fix PR sanitizer/66343. LP: #1704401. * Don't build the gc enabled libobjc for cross compilers. Closes: #872233. * Fix hangs w/ asan binaries on arm64 (Dann Frazier). LP: #1709727. * Linaro branch only: Fix PR target/79041, aarch64 backend emitting R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads option being used (Dan Frazier). LP: #1695093. -- Matthias Klose Sun, 20 Aug 2017 16:34:04 +0200 ** Changed in: gcc-5 (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Fix Released Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Triaged Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-package
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
fixed in gcc-6 6.3.0-21ubuntu1 in artful ** Changed in: gcc-6 (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Triaged Status in gcc-6 package in Ubuntu: Fix Released Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Triaged Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
The timeout issue described in comment #8 is being tracked in LP: #1709727. ** Changed in: gcc-5 (Ubuntu) Status: New => Triaged ** Changed in: gcc-5 (Ubuntu Xenial) Status: Confirmed => Triaged ** Changed in: gcc-5 (Ubuntu Yakkety) Status: New => Won't Fix ** Changed in: gcc-5 (Ubuntu Zesty) Status: New => Triaged ** Changed in: linux (Ubuntu Zesty) Status: Confirmed => Triaged ** Changed in: gcc-6 (Ubuntu Yakkety) Status: Confirmed => Won't Fix ** Changed in: gcc-6 (Ubuntu Zesty) Status: Confirmed => Triaged ** Changed in: gcc-6 (Ubuntu) Status: Confirmed => Triaged ** Changed in: linux (Ubuntu) Status: Confirmed => Triaged ** Changed in: linux (Ubuntu Xenial) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: Triaged Status in gcc-6 package in Ubuntu: Triaged Status in linux package in Ubuntu: Triaged Status in gcc-5 source package in Xenial: Triaged Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Triaged Status in gcc-5 source package in Yakkety: Won't Fix Status in gcc-6 source package in Yakkety: Won't Fix Status in linux source package in Yakkety: Won't Fix Status in gcc-5 source package in Zesty: Triaged Status in gcc-6 source package in Zesty: Triaged Status in linux source package in Zesty: Triaged Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
I uploaded a package w/ the patch from Comment #7 to ppa:dannf/test. Note that the tests took a *very* long time on arm64, with lots of timeouts: https://launchpad.net/~dannf/+archive/ubuntu/test/+build/13073558 This was not a problem for other architectures. I did a local arm64 build of the *current* gcc-5 in xenial-updates, and observed the same symptoms - so I don't think this is a regression in my proposed fix. That said, this wasn't a problem with the current xenial-updates build: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/security/+build/11132711 So it would appear that something has regressed for xenial since that upload. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: New Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-5 source package in Xenial: Confirmed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Confirmed Status in gcc-5 source package in Yakkety: New Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-5 source package in Zesty: New Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Tags added: patch -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: New Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-5 source package in Xenial: Confirmed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Confirmed Status in gcc-5 source package in Yakkety: New Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-5 source package in Zesty: New Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
Here's a backport of the gcc-6 fix to gcc-5. It includes a backport of the -mpc-relative-literal-loads option rename change, since it was a dependent patch, and I'm not comfortable enough w/ gcc development to do the backport w/o it. ** Patch added: "gcc-5-backport.debdiff" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/+attachment/4912990/+files/gcc-5-backport.debdiff -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: New Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-5 source package in Xenial: Confirmed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Confirmed Status in gcc-5 source package in Yakkety: New Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-5 source package in Zesty: New Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Changed in: gcc-6 (Ubuntu Xenial) Status: Confirmed => Invalid ** Also affects: gcc-5 (Ubuntu) Importance: Undecided Status: New ** Changed in: gcc-5 (Ubuntu Xenial) Status: New => Confirmed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-5 package in Ubuntu: New Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-5 source package in Xenial: Confirmed Status in gcc-6 source package in Xenial: Invalid Status in linux source package in Xenial: Confirmed Status in gcc-5 source package in Yakkety: New Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-5 source package in Zesty: New Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Changed in: linux Status: Unknown => In Progress ** Changed in: linux Importance: Unknown => Medium -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: In Progress Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-6 source package in Xenial: Confirmed Status in linux source package in Xenial: Confirmed Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Bug watch added: GCC Bugzilla #79041 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79041 ** Also affects: linux via https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79041 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in Linux: Unknown Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-6 source package in Xenial: Confirmed Status in linux source package in Xenial: Confirmed Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
fyi, I verified that this is also reproducible with gcc- linaro-6.3.1-2017.05 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-6 source package in Xenial: Confirmed Status in linux source package in Xenial: Confirmed Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-6/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
I attempted to port the above patch to our branch to test it, but it has conflicts with the linaro snapshot patch we apply. It appears that the conflicts are with a backport of r237607[*] applied to Linaro's gcc-6 branch. r237607 is also supposed to be the source of the patch in Comment #4 - so perhaps that backport was incomplete? [*] https://git.linaro.org/toolchain/gcc.git/commit/?h=linaro/gcc-6-branch&id=2ace425fb0ae8502c240505448fc9befd618e279 ** Changed in: gcc-6 (Ubuntu) Status: New => Confirmed ** Changed in: gcc-6 (Ubuntu Zesty) Status: New => Confirmed ** Changed in: gcc-6 (Ubuntu Yakkety) Status: New => Confirmed ** Changed in: gcc-6 (Ubuntu Xenial) Status: New => Confirmed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in gcc-6 package in Ubuntu: Confirmed Status in linux package in Ubuntu: Confirmed Status in gcc-6 source package in Xenial: Confirmed Status in linux source package in Xenial: Confirmed Status in gcc-6 source package in Yakkety: Confirmed Status in linux source package in Yakkety: Confirmed Status in gcc-6 source package in Zesty: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-6/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Also affects: gcc-6 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in gcc-6 package in Ubuntu: New Status in linux package in Ubuntu: Confirmed Status in gcc-6 source package in Xenial: New Status in linux source package in Xenial: Confirmed Status in gcc-6 source package in Yakkety: New Status in linux source package in Yakkety: Confirmed Status in gcc-6 source package in Zesty: New Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-6/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
Hi, I think the problem has already been solved here: https://gcc.gnu.org/ml/gcc-patches/2017-01/msg00736.html This fix appeared to do the trick for gcc-6_1_0-release on my machine, I would suggest that you give it a go. [ I verified the relocations via: aarch64-linux-gnu-objdump -dr ./net/ceph/libceph.ko | less Then searched for the R_AARCH64_ADR_PREL_PG_HI21 relocation. ] Cheers, -- Steve -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Status in linux source package in Yakkety: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
Attached is a buildlog of the kernel w/ V=1 set to see the full gcc commandline. I confirmed that the symptoms are present w/ this build. ** Attachment added: "buildlog.xz" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/+attachment/4893293/+files/buildlog.xz -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Status in linux source package in Yakkety: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1695093] Re: arm64: "unsupported RELA relocation: 275" loading certain modules
** Tags added: arm64 uosci -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1695093 Title: arm64: "unsupported RELA relocation: 275" loading certain modules Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Status in linux source package in Yakkety: Confirmed Status in linux source package in Zesty: Confirmed Bug description: With the hwe-z kernel: ubuntu@grotian:~$ sudo modprobe libceph modprobe: ERROR: could not insert 'libceph': Exec format error ubuntu@grotian:~$ dmesg [66988.470307] module libceph: unsupported RELA relocation: 275 This symptom is similar to LP: #1533009 but, in that case it impacted all modules, and the fix for that appears to remain in place. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1695093/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp