s390/setup: preserve memory at OLDMEM_BASE and OLDMEM_SIZE
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Wed, 9 Feb 2022 10:25:09 +0000 (11:25 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 19:41:28 +0000 (20:41 +0100)
commit6b4b54c7ca347bcb4aa7a3cc01aa16e84ac7fbe4
treeb078a8a1af95c55b0e8ab6ae1437461682f9dea1
parentdd9cb842fa9d90653a9b48aba52f89c069f3bc50
s390/setup: preserve memory at OLDMEM_BASE and OLDMEM_SIZE

We need to preserve the values at OLDMEM_BASE and OLDMEM_SIZE which are
used by zgetdump in case when kdump crashes. In that case zgetdump will
attempt to read OLDMEM_BASE and OLDMEM_SIZE in order to find out where
the memory range [0 - OLDMEM_SIZE] belonging to the production kernel is.

Fixes: f1a546947431 ("s390/setup: don't reserve memory that occupied decompressor's head")
Cc: stable@vger.kernel.org # 5.15+
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/setup.c