]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Fix module loading error with JUMP_LABEL feature
authorHelge Deller <deller@gmx.de>
Sat, 8 Jun 2019 18:04:46 +0000 (20:04 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 8 Jun 2019 18:06:20 +0000 (20:06 +0200)
commitd8925b642ab07e74027271bd7c730db948f6de23
tree617685f312be53f72de93f9c03fb6bb57c460441
parent6c896a8e19a1d1a8d1d9184885f6eb60465fd6f6
parisc: Fix module loading error with JUMP_LABEL feature

Commit 6a5a01bf330e ("parisc: Add static branch and JUMP_LABEL feature") missed
to add code to handle PCREL64 relocations which are generated when creating a
jump label on a 64-bit kernel.

This patch fixes module load errors like this one:
# modprobe -v ipv6
insmod /lib/modules/5.2.0-rc1-JeR/kernel/net/ipv6/ipv6.ko
modprobe: ERROR: could not insert 'ipv6': Exec format error
dmesg reports:
module ipv6: Unknown relocation: 72

Reported-by: Jeroen Roovers <jer@gentoo.org>
Tested-by: Jeroen Roovers <jer@gentoo.org>
Fixes: 6a5a01bf330e ("parisc: Add static branch and JUMP_LABEL feature")
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/module.c