android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Edward Humes 737985dbcb alpha: fix R_ALPHA_LITERAL reloc for large modules
[ Upstream commit b6b17a8b3ecd878d98d5472a9023ede9e669ca72 ]

Previously, R_ALPHA_LITERAL relocations would overflow for large kernel
modules.

This was because the Alpha's apply_relocate_add was relying on the kernel's
module loader to have sorted the GOT towards the very end of the module as it
was mapped into memory in order to correctly assign the global pointer. While
this behavior would mostly work fine for small kernel modules, this approach
would overflow on kernel modules with large GOT's since the global pointer
would be very far away from the GOT, and thus, certain entries would be out of
range.

This patch fixes this by instead using the Tru64 behavior of assigning the
global pointer to be 32KB away from the start of the GOT. The change made
in this patch won't work for multi-GOT kernel modules as it makes the
assumption the module only has one GOT located at the beginning of .got,
although for the vast majority kernel modules, this should be fine. Of the
kernel modules that would previously result in a relocation error, none of
them, even modules like nouveau, have even come close to filling up a single
GOT, and they've all worked fine under this patch.

Signed-off-by: Edward Humes <[email protected]>
Signed-off-by: Matt Turner <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-03-17 08:32:52 +01:00
..
alpha alpha: fix R_ALPHA_LITERAL reloc for large modules 2023-03-17 08:32:52 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:56:54 +09:00
arm ARM: dts: spear320-hmi: correct STMPE GPIO compatible 2023-03-11 16:44:12 +01:00
arm64 arm64: dts: mediatek: mt7622: Add missing pwm-cells to pwm node 2023-03-11 16:43:34 +01:00
c6x
csky csky: Fix function name in csky_alignment() and die() 2023-02-06 07:52:49 +01:00
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:52:49 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:52:49 +01:00
ia64 ia64: make IA64_MCA_RECOVERY bool instead of tristate 2023-02-06 07:52:49 +01:00
m68k m68k: Check syscall_trace_enter() return code 2023-03-11 16:43:55 +01:00
microblaze exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
mips MIPS: Fix a compilation issue 2023-03-17 08:32:52 +01:00
nds32 exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
nios2 exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
parisc parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case 2023-02-22 12:50:28 +01:00
powerpc powerpc: Remove linker flag from KBUILD_AFLAGS 2023-03-11 16:43:53 +01:00
riscv riscv: Use READ_ONCE_NOCHECK in imprecise unwinding stack mode 2023-03-17 08:32:52 +01:00
s390 KVM: s390: disable migration mode when dirty tracking is disabled 2023-03-11 16:44:01 +01:00
sh exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
sparc sparc: allow PM configs for sparc32 COMPILE_TEST 2023-03-11 16:43:50 +01:00
um um: vector: Fix memory leak in vector_config 2023-03-11 16:44:08 +01:00
unicore32
x86 x86/CPU/AMD: Disable XSAVES on AMD family 0x17 2023-03-17 08:32:47 +01:00
xtensa exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
.gitignore
Kconfig locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00