[PATCH v2] powerpc/crash: adjust the elfcorehdr size
Madhavan Srinivasan
maddy at linux.ibm.com
Wed Mar 11 13:14:38 AEDT 2026
On Fri, 27 Feb 2026 22:48:01 +0530, Sourabh Jain wrote:
> With crash hotplug support enabled, additional memory is allocated to
> the elfcorehdr kexec segment to accommodate resources added during
> memory hotplug events. However, the kdump FDT is not updated with the
> same size, which can result in elfcorehdr corruption in the kdump
> kernel.
>
> Update elf_headers_sz (the kimage member representing the size of the
> elfcorehdr kexec segment) to reflect the total memory allocated for the
> elfcorehdr segment instead of the elfcorehdr buffer size at the time of
> kdump load. This allows of_kexec_alloc_and_setup_fdt() to reserve the
> full elfcorehdr memory in the kdump FDT and prevents elfcorehdr
> corruption.
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc/crash: adjust the elfcorehdr size
https://git.kernel.org/powerpc/c/04e707cb77c272cb0bb2e2e3c5c7f844d804a089
cheers
More information about the Linuxppc-dev
mailing list