acrn-kernel/arch/s390/boot
Sven Schnelle f99450d919 s390/ipl: add missing intersection check to ipl_report handling
commit a52e5cdbe8 upstream.

The code which handles the ipl report is searching for a free location
in memory where it could copy the component and certificate entries to.
It checks for intersection between the sections required for the kernel
and the component/certificate data area, but fails to check whether
the data structures linking these data areas together intersect.

This might cause the iplreport copy code to overwrite the iplreport
itself. Fix this by adding two addtional intersection checks.

Cc: <stable@vger.kernel.org>
Fixes: 9641b8cc73 ("s390/ipl: read IPL report at early boot")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-22 13:33:56 +01:00
..
.gitignore
Makefile
als.c
boot.h s390/boot: fix mem_detect extended area allocation 2023-03-10 09:33:00 +01:00
clz_ctz.c
cmdline.c
ctype.c
decompressor.c s390/boot: cleanup decompressor header files 2023-03-10 09:33:00 +01:00
decompressor.h s390/boot: cleanup decompressor header files 2023-03-10 09:33:00 +01:00
ebcdic.c
head.S
head_kdump.S
install.sh
ipl_data.c
ipl_parm.c
ipl_report.c s390/ipl: add missing intersection check to ipl_report handling 2023-03-22 13:33:56 +01:00
ipl_vmparm.c
kaslr.c s390/boot: fix mem_detect extended area allocation 2023-03-10 09:33:00 +01:00
machine_kexec_reloc.c
mem.S
mem_detect.c s390/boot: fix mem_detect extended area allocation 2023-03-10 09:33:00 +01:00
pgm_check_info.c
sclp_early_core.c
startup.c s390/boot: fix mem_detect extended area allocation 2023-03-10 09:33:00 +01:00
string.c
uv.c
uv.h
version.c
vmlinux.lds.S