acrn-kernel/arch/s390
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
..
appldata
boot s390/ipl: add missing intersection check to ipl_report handling 2023-03-22 13:33:56 +01:00
configs
crypto
hypfs
include s390/ap: fix status returned by ap_qact() 2023-03-10 09:33:02 +01:00
kernel s390/kprobes: fix current_kprobe never cleared after kprobes reenter 2023-03-10 09:34:04 +01:00
kvm KVM: s390: disable migration mode when dirty tracking is disabled 2023-03-10 09:34:05 +01:00
lib
mm s390/extmem: return correct segment type in __segment_load() 2023-03-10 09:34:04 +01:00
net s390/bpf: Add expoline to tail calls 2023-03-10 09:32:57 +01:00
pci PCI: s390: Fix use-after-free of PCI resources with per-function hotplug 2023-03-22 13:33:45 +01:00
purgatory
tools
Kbuild
Kconfig
Kconfig.debug
Makefile