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

Catalin Marinas catalin.marinas at arm.com
Thu Nov 12 11:52:09 PST 2026


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



More information about the linux-arm-kernel mailing list