WSL2-Linux-Kernel/arch/s390/kernel
Ilya Leoshkevich f3b7e73b2c s390/module: fix loading modules with a lot of relocations
If the size of the PLT entries generated by apply_rela() exceeds
64KiB, the first ones can no longer reach __jump_r1 with brc. Fix by
using brcl. An alternative solution is to add a __jump_r1 copy after
every 64KiB, however, the space savings are quite small and do not
justify the additional complexity.

Fixes: f19fbd5ed6 ("s390: introduce execute-trampolines for branches")
Cc: stable@vger.kernel.org
Reported-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2022-01-24 09:10:37 +01:00
..
syscalls
vdso32
vdso64
.gitignore
Makefile
alternative.c
asm-offsets.c
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
dis.c
dumpstack.c
early.c
early_printk.c
ebcdic.c
entry.S
entry.h
fpu.c
ftrace.c
ftrace.h
guarded_storage.c
head64.S
idle.c
ima_arch.c
ipl.c
ipl_vmparm.c
irq.c
jump_label.c
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes.c
kprobes_insn_page.S
lgr.c
machine_kexec.c
machine_kexec_file.c
machine_kexec_reloc.c
mcount.S
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
numa.c
os_info.c
perf_cpum_cf.c
perf_cpum_cf_common.c
perf_cpum_cf_events.c
perf_cpum_sf.c
perf_event.c
perf_regs.c
process.c
processor.c
ptrace.c
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c
signal.c
smp.c
stacktrace.c
sthyi.c
syscall.c
sysinfo.c
text_amode31.S
time.c
topology.c
trace.c
traps.c
unwind_bc.c
uprobes.c
uv.c
vdso.c
vmlinux.lds.S
vtime.c