Re: [PATCH v9] arm64: kexec_file: Do not use CMA for images with a non-zero text_offset

From: Catalin Marinas

Date: Thu Nov 12 2026 - 16:04:36 EST


On Mon, 09 Nov 2026 12:13:24 +0800, Jinjie Ruan wrote:
> image_load() adds text_offset to kernel_segment->mem and subtracts it
> from kernel_segment->memsz. For CMA backed segments this breaks the
> load path: the payload is copied to page_address(cma), which is the CMA
> base, while image->start is set to the adjusted address, so kexec jumps
> into the middle of the kernel. kimage_map_segment() has the same
> mismatch when a segment has been moved.
>
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: kexec_file: Do not use CMA for images with a non-zero text_offset
https://git.kernel.org/arm64/c/18f2d01bfce9