kernel_optimize_test/arch/s390/kernel
Gerald Schaefer 4c1cbcbd6c s390/kaslr: add support for R_390_JMP_SLOT relocation type
With certain kernel configurations, the R_390_JMP_SLOT relocation type
might be generated, which is not expected by the KASLR relocation code,
and the kernel stops with the message "Unknown relocation type".

This was found with a zfcpdump kernel config, where CONFIG_MODULES=n
and CONFIG_VFIO=n. In that case, symbol_get() is used on undefined
__weak symbols in virt/kvm/vfio.c, which results in the generation
of R_390_JMP_SLOT relocation types.

Fix this by handling R_390_JMP_SLOT similar to R_390_GLOB_DAT.

Fixes: 805bc0bc23 ("s390/kernel: build a relocatable kernel")
Cc: <stable@vger.kernel.org> # v5.2+
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-05-20 10:13:27 +02:00
..
syscalls threads-v5.6 2020-01-29 19:38:34 -08:00
vdso64 .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
alternative.c
asm-offsets.c s390: prevent leaking kernel address in BEAR 2020-03-10 15:16:25 +01:00
audit.c
audit.h
base.S
cache.c
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
cpcmd.c
crash_dump.c
debug.c
diag.c s390/ftrace: fix potential crashes when switching tracers 2020-04-22 16:20:55 +02:00
dis.c s390/disassembler: don't hide instruction addresses 2019-11-12 11:24:10 +01:00
dumpstack.c sched/rt, s390: Use CONFIG_PREEMPTION 2019-12-08 14:37:35 +01:00
early_printk.c
early.c s390: remove last diag 0x44 caller 2019-12-11 19:53:24 +01:00
ebcdic.c
entry.h s390/mm: add (non)secure page access exceptions handlers 2020-02-27 19:44:40 +01:00
entry.S s390: prevent leaking kernel address in BEAR 2020-03-10 15:16:25 +01:00
fpu.c
ftrace.c s390: support KPROBES_ON_FTRACE 2020-01-30 13:07:55 +01:00
guarded_storage.c
head64.S s390/head64: correct init_task stack setup 2019-11-30 10:52:45 +01:00
idle.c
ima_arch.c
ipl_vmparm.c
ipl.c s390/ipl: add support to control memory clearing for FCP and CCW re-IPL 2020-03-23 13:41:54 +01:00
irq.c s390/irq: make init_ext_interrupts static 2020-03-11 14:18:44 +01:00
jump_label.c
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes.c s390: support KPROBES_ON_FTRACE 2020-01-30 13:07:55 +01:00
lgr.c
machine_kexec_file.c s390/kexec_file: fix initrd location for kdump kernel 2020-05-14 23:21:37 +02:00
machine_kexec_reloc.c s390/kaslr: add support for R_390_JMP_SLOT relocation type 2020-05-20 10:13:27 +02:00
machine_kexec.c s390: remove broken hibernate / power management support 2020-03-23 13:41:55 +01:00
Makefile s390 updates for the 5.7 merge window 2020-04-04 09:45:50 -07:00
mcount.S s390: support KPROBES_ON_FTRACE 2020-01-30 13:07:55 +01:00
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
os_info.c
perf_cpum_cf_common.c
perf_cpum_cf_diag.c s390/cpumf: Adjust registration of s390 PMU device drivers 2019-11-20 17:16:01 +01:00
perf_cpum_cf_events.c s390/cpum_cf: Add new extended counters for IBM z15 2020-03-10 15:16:25 +01:00
perf_cpum_cf.c s390/cpumf: Adjust registration of s390 PMU device drivers 2019-11-20 17:16:01 +01:00
perf_cpum_sf.c s390/cpum_sf: Fix wrong page count in error message 2020-03-25 12:39:37 +01:00
perf_event.c
perf_regs.c
pgm_check.S s390/mm: add (non)secure page access exceptions handlers 2020-02-27 19:44:40 +01:00
process.c s390: prevent leaking kernel address in BEAR 2020-03-10 15:16:25 +01:00
processor.c s390/cpuinfo: do not skip info for CPUs without MHz feature 2020-03-23 13:41:55 +01:00
ptrace.c
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c s390 updates for the 5.7 merge window 2020-04-04 09:45:50 -07:00
signal.c s390: use fallthrough; 2020-03-25 12:39:37 +01:00
smp.c s390/ftrace: fix potential crashes when switching tracers 2020-04-22 16:20:55 +02:00
stacktrace.c s390/livepatch: Implement reliable stack tracing for the consistency model 2019-11-30 10:52:48 +01:00
sthyi.c
sys_s390.c
sysinfo.c
time.c
topology.c s390: use fallthrough; 2020-03-25 12:39:37 +01:00
trace.c s390/ftrace: fix potential crashes when switching tracers 2020-04-22 16:20:55 +02:00
traps.c s390/traps: mark test_monitor_call __init 2020-03-11 14:18:44 +01:00
unwind_bc.c s390/unwind: stop gracefully at user mode pt_regs in irq stack 2019-12-18 23:29:26 +01:00
uprobes.c
uv.c s390/protvirt: fix compilation issue 2020-04-25 10:17:24 +02:00
vdso.c s390: remove compat vdso code 2019-12-01 12:48:49 +01:00
vmlinux.lds.S
vtime.c