linux_dsm_epyc7002/arch/s390/kernel
Vasily Gorbik 95e61b1b5d s390/setup: init jump labels before command line parsing
Command line parameters might set static keys. This is true for s390 at
least since commit 6471384af2 ("mm: security: introduce init_on_alloc=1
and init_on_free=1 boot options"). To avoid the following WARN:

static_key_enable_cpuslocked(): static key 'init_on_alloc+0x0/0x40' used
before call to jump_label_init()

call jump_label_init() just before parse_early_param().
jump_label_init() is safe to call multiple times (x86 does that), doesn't
do any memory allocations and hence should be safe to call that early.

Fixes: 6471384af2 ("mm: security: introduce init_on_alloc=1 and init_on_free=1 boot options")
Cc: <stable@vger.kernel.org> # 5.3: d6df52e999: s390/maccess: add no DAT mode to kernel_write
Cc: <stable@vger.kernel.org> # 5.3
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2020-06-29 16:28:39 +02:00
..
syscalls
vdso64 s390/vdso: fix vDSO clock_getres() 2020-06-16 13:44:05 +02:00
.gitignore
alternative.c
asm-offsets.c s390/vdso: fix vDSO clock_getres() 2020-06-16 13:44:05 +02: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 s390/debug: avoid kernel warning on too large number of pages 2020-06-23 14:05:55 +02:00
diag.c
dis.c
dumpstack.c kernel: rename show_stack_loglvl() => show_stack() 2020-06-09 09:39:13 -07:00
early_printk.c
early.c s390/kasan: fix early pgm check handler execution 2020-06-23 14:05:50 +02:00
ebcdic.c
entry.h
entry.S s390: fix system call single stepping 2020-06-23 14:05:45 +02:00
fpu.c
ftrace.c maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2020-06-17 10:57:41 -07:00
guarded_storage.c
head64.S
idle.c
ima_arch.c
ipl_vmparm.c
ipl.c s390: use scnprintf() in sys_##_prefix##_##_name##_show 2020-06-16 13:44:05 +02:00
irq.c
jump_label.c
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes.c
lgr.c
machine_kexec_file.c
machine_kexec_reloc.c
machine_kexec.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
Makefile
mcount.S
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
os_info.c
perf_cpum_cf_common.c
perf_cpum_cf_diag.c
perf_cpum_cf_events.c
perf_cpum_cf.c
perf_cpum_sf.c
perf_event.c
perf_regs.c
pgm_check.S
process.c
processor.c
ptrace.c s390/ptrace: fix setting syscall number 2020-06-16 13:44:04 +02:00
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c s390/setup: init jump labels before command line parsing 2020-06-29 16:28:39 +02:00
signal.c
smp.c s390 updates for the 5.8 merge window 2020-06-08 12:05:31 -07:00
stacktrace.c
sthyi.c
sys_s390.c
sysinfo.c
time.c s390/vdso: fix vDSO clock_getres() 2020-06-16 13:44:05 +02:00
topology.c
trace.c
traps.c
unwind_bc.c
uprobes.c
uv.c s390/protvirt: use scnprintf() instead of snprintf() 2020-06-16 13:44:05 +02:00
vdso.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
vmlinux.lds.S
vtime.c