[PATCH v1 5/8] s390/kdump: Exclude crashkernel CMA memory from vmcore

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 12 03:30:48 PST 2026


> The kdump kernel will be using the crashkernel CMA memory of the
> crashed kernel, so it must not be a part of the dump.
> 
> Keep the CMA ranges handed over by the crashed kernel in oldmem_data.
> Add them to oldmem_type next to the crashkernel memory, so that no
> PT_LOAD headers are created for them.
> 
> Merge adjacent regions, such as CMA areas placed back to back or next
> to the crashkernel memory. Otherwise for_each_physmem_range() returns an
> empty range between them, which ends up as an empty PT_LOAD header.
> 
> Use the original ranges even if mem= limits usable memory in the kdump
> kernel. Build the list without depending on CONFIG_CMA in that kernel.
> 
> Co-developed-by: Vasily Gorbik <gor at linux.ibm.com>
> Signed-off-by: Vasily Gorbik <gor at linux.ibm.com>
> Signed-off-by: Mikhail Zaslonko <zaslonko at linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261112112105.1169118-1-zaslonko@linux.ibm.com?part=5




More information about the kexec mailing list