diff options
author | Heiko Carstens | 2016-12-06 15:52:10 +0100 |
---|---|---|
committer | Martin Schwidefsky | 2016-12-12 12:11:20 +0100 |
commit | d543a106f96d6f15e4507cf349128912d44356d9 (patch) | |
tree | fa6fee4676c09b7a36a190e1c4121b9041f0b9b9 /arch/s390/include | |
parent | s390: exclude early C code from gcov profiling (diff) | |
download | kernel-qcow2-linux-d543a106f96d6f15e4507cf349128912d44356d9.tar.gz kernel-qcow2-linux-d543a106f96d6f15e4507cf349128912d44356d9.tar.xz kernel-qcow2-linux-d543a106f96d6f15e4507cf349128912d44356d9.zip |
s390: fix initrd corruptions with gcov/kcov instrumented kernels
The early C code within arch/s390/kernel/early.c saves ipl parameters
before the bss section is cleared. When doing that it jumps to code
that is potentially gcov/kcov instrumented. That code in turn will
corrupt an initrd that potentially may reside in the not yet ready to
be used bss section.
Instead of excluding more and more code from gcov/kcov instrumentation
provide an early memmove function which will be used to save ipl
parameters. The verification if these parameters are actually valid
will be done later.
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/ipl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ipl.h b/arch/s390/include/asm/ipl.h index 4da22b2f0521..edb5161df7e2 100644 --- a/arch/s390/include/asm/ipl.h +++ b/arch/s390/include/asm/ipl.h @@ -97,7 +97,7 @@ void __init save_area_add_vxrs(struct save_area *, __vector128 *vxrs); extern void do_reipl(void); extern void do_halt(void); extern void do_poff(void); -extern void ipl_save_parameters(void); +extern void ipl_verify_parameters(void); extern void ipl_update_parameters(void); extern size_t append_ipl_vmparm(char *, size_t); extern size_t append_ipl_scpdata(char *, size_t); |