[PATCH] ppc64: Reserve FDT memory for full elfcorehdr memory size

Simon Horman horms at kernel.org
Tue Feb 17 08:11:37 PST 2026


On Tue, Feb 10, 2026 at 10:35:36AM +0530, Sourabh Jain wrote:
> With --hotplug support, extra memory is added to elfcorehdr kexec
> segment to accommodate additional resources during memory hotplug
> events. However, the FDT is not updated with the same size, which
> can lead to elfcorehdr corruption in the kdump kernel.
> 
> Fix this by updating the elfcorehdr size in the FDT memory
> reservation entry to use its actual memsz instead of the current
> buffer size.
> 
> Fixes: b8408c95e7c0 ("powerpc/kexec_load: add hotplug support")
> Cc: Shivang Upadhyay <shivangu at linux.ibm.com>
> Cc: Simon Horman <horms at kernel.org>
> Signed-off-by: Sourabh Jain <sourabhjain at linux.ibm.com>

Thanks, applied.

- ppc64: Reserve FDT memory for full elfcorehdr memory size
  https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=600c2f9512b5



More information about the kexec mailing list