linux/arch/s390/kernel
Alexander Gordeev d38e48563c s390/crash: Do not use VM info if os_info does not have it
The virtual memory information stored in os_info area is
required for creation of the kernel image PT_LOAD program
header for kernels since commit a2ec5bec56dd ("s390/mm:
uncouple physical vs virtual address spaces").

By contrast, if such information in os_info is absent the
PT_LOAD program header should not be created.

Currently the proper PT_LOAD program header is created for
kernels that contain the virtual memory information, but
for kernels without one an invalid header of zero size is
created. That in turn leads to stand-alone dump failures.

Use OS_INFO_KASLR_OFFSET variable to check whether os_info
is present or not (same as crash and makedumpfile tools do)
and based on that create or do not create the kernel image
PT_LOAD program header.

Fixes: f4cac27dc0 ("s390/crash: Use old os_info to create PT_LOAD headers")
Tested-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Acked-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2024-06-05 17:03:24 +02:00
..
syscalls mseal: wire up mseal syscall 2024-05-23 19:40:26 -07:00
vdso32 more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
vdso64 more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
.gitignore
abs_lowcore.c
alternative.c s390/alternatives: Convert runtime sanity check into compile time check 2024-05-14 20:21:23 +02:00
asm-offsets.c s390/idle: Rewrite psw_idle() in C 2024-05-14 13:37:07 +02:00
audit.c
audit.h
cache.c s390/cache: prevent rebuild of shared_cpu_list 2024-03-07 14:41:15 +01:00
cert_store.c fix missing vmalloc.h includes 2024-04-25 20:55:49 -07:00
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c s390/fpu: rename save_fpu_regs() to save_user_fpu_regs(), etc 2024-02-16 14:30:15 +01:00
cpcmd.c
cpufeature.c
crash_dump.c s390/crash: Do not use VM info if os_info does not have it 2024-06-05 17:03:24 +02:00
ctlreg.c
debug.c
diag.c s390/diag: add missing virt_to_phys() translation to diag14() 2024-02-09 13:58:14 +01:00
dis.c
dumpstack.c
early_printk.c
early.c s390/fpu: move, rename, and merge header files 2024-02-16 14:30:14 +01:00
earlypgm.S
ebcdic.c
entry.h s390/switch_to: use generic header file 2024-02-12 15:03:33 +01:00
entry.S s390/idle: Rewrite psw_idle() in C 2024-05-14 13:37:07 +02:00
facility.c
fpu.c s390/fpu: limit save and restore to used registers 2024-02-16 14:30:16 +01:00
ftrace.c Probes updates for v6.10: 2024-05-17 18:29:30 -07:00
ftrace.h
guarded_storage.c
head64.S
idle.c s390/idle: Rewrite psw_idle() in C 2024-05-14 13:37:07 +02:00
ima_arch.c
ipl_vmparm.c
ipl.c more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
irq.c more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
jump_label.c
kdebugfs.c
kexec_elf.c s390, crash: wrap crash dumping code into crash related ifdefs 2024-02-23 17:48:23 -08:00
kexec_image.c s390, crash: wrap crash dumping code into crash related ifdefs 2024-02-23 17:48:23 -08:00
kprobes.c more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
lgr.c
machine_kexec_file.c s390, crash: wrap crash dumping code into crash related ifdefs 2024-02-23 17:48:23 -08:00
machine_kexec_reloc.c
machine_kexec.c - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames 2024-03-14 17:43:30 -07:00
Makefile s390/kprobes: Remove custom insn slot allocator 2024-05-16 10:31:32 +02:00
mcount.S
module.c arch: make execmem setup available regardless of CONFIG_MODULES 2024-05-14 00:31:44 -07:00
nmi.c s390/irq,nmi: Include <asm/vtime.h> header directly 2024-04-17 13:37:22 +02:00
nospec-branch.c s390/nospec: Correct modules thunk offset calculation 2024-04-17 13:38:02 +02:00
nospec-sysfs.c
numa.c
os_info.c s390/os_info: Fix array size in struct os_info 2024-04-29 17:33:29 +02:00
perf_cpum_cf_events.c s390/cpum_cf: make crypto counters upward compatible across machine types 2024-04-09 17:29:56 +02:00
perf_cpum_cf.c s390/cpum_cf: make crypto counters upward compatible across machine types 2024-04-09 17:29:56 +02:00
perf_cpum_sf.c
perf_event.c s390/stacktrace: Merge perf_callchain_user() and arch_stack_walk_user() 2024-05-14 13:37:06 +02:00
perf_pai_crypto.c s390/pai: fix sampling event removal for PMU device driver 2024-04-03 15:00:20 +02:00
perf_pai_ext.c s390/pai: fix sampling event removal for PMU device driver 2024-04-03 15:00:20 +02:00
perf_regs.c s390/fpu: remove anonymous union from struct fpu 2024-02-16 14:30:16 +01:00
process.c s390/fpu: Remove comment about TIF_FPU 2024-05-14 13:37:08 +02:00
processor.c
ptrace.c s390/fpu: remove anonymous union from struct fpu 2024-02-16 14:30:16 +01:00
reipl.S
relocate_kernel.S
rethook.c
rethook.h
runtime_instr.c
setup.c s390/boot: Remove alt_stfle_fac_list from decompressor 2024-05-16 10:17:12 +02:00
signal.c s390/fpu: rename save_fpu_regs() to save_user_fpu_regs(), etc 2024-02-16 14:30:15 +01:00
smp.c s390/fpu: move, rename, and merge header files 2024-02-16 14:30:14 +01:00
stacktrace.c s390/stackstrace: Detect vdso stack frames 2024-05-14 13:37:07 +02:00
sthyi.c
syscall.c
sysinfo.c s390/sysinfo: allow response buffer in normal memory 2024-03-13 09:23:44 +01:00
text_amode31.S s390/hypfs_diag0c: fix virtual vs physical address confusion 2024-02-09 13:58:13 +01:00
time.c s390/time: make stp_subsys const 2024-02-09 13:58:15 +01:00
topology.c
trace.c
traps.c s390/fpu: rename save_fpu_regs() to save_user_fpu_regs(), etc 2024-02-16 14:30:15 +01:00
unwind_bc.c
uprobes.c s390/switch_to: use generic header file 2024-02-12 15:03:33 +01:00
uv.c s390/mm: Convert gmap_make_secure to use a folio 2024-04-09 17:29:57 +02:00
vdso.c s390/stackstrace: Detect vdso stack frames 2024-05-14 13:37:07 +02:00
vmcore_info.c s390/vmcoreinfo: Store virtual memory layout 2024-04-17 13:38:01 +02:00
vmlinux.lds.S s390: Compile kernel with -fPIC and link with -no-pie 2024-04-29 17:33:30 +02:00
vtime.c s390/vtime: Use get_cpu_timer() 2024-05-14 13:37:07 +02:00