linux-kernelorg-stable/arch/s390/kernel
Sven Schnelle 5ecb2da660 s390: support command lines longer than 896 bytes
Currently s390 supports a fixed maximum command line length of 896
bytes. This isn't enough as some installers are trying to pass all
configuration data via kernel command line, and even with zfcp alone
it is easy to generate really long command lines. Therefore extend
the command line to 4 kbytes.

In the parm area where the command line is stored there is no indication
of the maximum allowed length, so a new field which contains the maximum
length is added.

The parm area has always been initialized to zero, so with old kernels
this field would read zero. This is important because tools like zipl
could read this field. If it contains a number larger than zero zipl
knows the maximum length that can be stored in the parm area, otherwise
it must assume that it is booting a legacy kernel and only 896 bytes are
available.

The removing of trailing whitespace in head.S is also removed because
code to do this is already present in setup_boot_command_line().

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2021-10-26 15:21:31 +02:00
..
syscalls compat: remove some compat entry points 2021-09-08 15:32:35 -07:00
vdso32 s390 updates for 5.15 merge window 2021-08-30 13:07:15 -07:00
vdso64 s390 updates for 5.15 merge window 2021-08-30 13:07:15 -07:00
.gitignore
Makefile s390: rename dma section to amode31 2021-08-05 14:10:53 +02:00
alternative.c s390: introduce text_poke_sync() 2021-10-11 20:55:58 +02:00
asm-offsets.c s390: support command lines longer than 896 bytes 2021-10-26 15:21:31 +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 s390/signal: switch to using vdso for sigreturn and syscall restart 2021-07-08 22:09:47 +02:00
cpcmd.c s390/cpcmd: use physical address for command and response 2021-10-26 15:21:28 +02:00
crash_dump.c s390/dump: introduce boot data 'oldmem_data' 2021-07-27 09:39:16 +02:00
debug.c s390/sclp: add tracing of SCLP interactions 2021-08-25 11:03:35 +02:00
diag.c s390: rename dma section to amode31 2021-08-05 14:10:53 +02:00
dis.c s390/disassembler: add instructions 2021-07-27 09:39:19 +02:00
dumpstack.c s390/ptrace: add last_break member to pt_regs 2021-10-26 15:21:28 +02:00
early.c s390: support command lines longer than 896 bytes 2021-10-26 15:21:31 +02:00
early_printk.c
ebcdic.c
entry.S s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
entry.h s390/boot: allocate amode31 section in decompressor 2021-10-04 09:49:37 +02:00
fpu.c
ftrace.c s390/ftrace: add missing serialization for graph caller patching 2021-10-11 20:55:58 +02:00
ftrace.h s390/ftrace: implement hotpatching 2021-08-03 14:31:40 +02:00
guarded_storage.c
head64.S s390/boot: initialize control registers in decompressor 2021-10-04 09:49:37 +02:00
idle.c
ima_arch.c
ipl.c s390/smp: enable DAT before CPU restart callback is called 2021-08-26 20:22:12 +02:00
ipl_vmparm.c s390/cio: remove unused include linux/spinlock.h from cio.h 2021-07-27 09:39:13 +02:00
irq.c s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
jump_label.c s390/jump_label: add __init_or_module annotation 2021-10-11 20:55:58 +02:00
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes.c s390/kprobes: add sanity check 2021-10-04 09:49:36 +02:00
kprobes_insn_page.S
lgr.c
machine_kexec.c s390/smp: enable DAT before CPU restart callback is called 2021-08-26 20:22:12 +02:00
machine_kexec_file.c s390: support command lines longer than 896 bytes 2021-10-26 15:21:31 +02:00
machine_kexec_reloc.c
mcount.S s390/ftrace: add HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALL support 2021-10-19 15:39:53 +02:00
module.c s390/ftrace: implement hotpatching 2021-08-03 14:31:40 +02:00
nmi.c s390/mcck: move register validation to C code 2021-07-05 12:44:23 +02:00
nospec-branch.c s390: introduce nospec_uses_trampoline() 2021-10-26 15:21:29 +02:00
nospec-sysfs.c s390: introduce nospec_uses_trampoline() 2021-10-26 15:21:29 +02:00
numa.c
os_info.c s390/dump: introduce boot data 'oldmem_data' 2021-07-27 09:39:16 +02:00
perf_cpum_cf.c s390/cpumf: Allow multiple processes to access /dev/hwc 2021-10-26 15:21:29 +02:00
perf_cpum_cf_common.c s390/cpumf: Allow concurrent access for CPU Measurement Counter Facility 2021-07-05 12:44:23 +02:00
perf_cpum_cf_events.c
perf_cpum_sf.c
perf_event.c
perf_regs.c
process.c s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
processor.c s390: replace deprecated CPU-hotplug functions 2021-08-05 14:10:53 +02:00
ptrace.c
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
signal.c s390: remove do_signal() prototype and do_notify_resume() function 2021-08-25 11:03:34 +02:00
smp.c s390/topology: fix topology information when calling cpu hotplug notifiers 2021-09-07 13:38:41 +02:00
stacktrace.c
sthyi.c
syscall.c s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
sysinfo.c
text_amode31.S s390/diag: make restart_part2 a local label 2021-08-25 11:03:34 +02:00
time.c
topology.c s390/topology: fix topology information when calling cpu hotplug notifiers 2021-09-07 13:38:41 +02:00
trace.c
traps.c s390: add support for BEAR enhancement facility 2021-10-26 15:21:29 +02:00
unwind_bc.c
uprobes.c s390: Fix fall-through warnings for Clang 2021-07-13 14:43:09 -05:00
uv.c s390/uv: de-duplicate checks for Protected Host Virtualization 2021-07-27 09:39:14 +02:00
vdso.c s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
vmlinux.lds.S s390/boot: allocate amode31 section in decompressor 2021-10-04 09:49:37 +02:00
vtime.c