[PATCH] arm64: kexec: load from kimage prior to clobbering
Will Deacon
will at kernel.org
Tue May 17 07:04:43 PDT 2022
On Mon, 16 May 2022 17:07:35 +0100, Mark Rutland wrote:
> In arm64_relocate_new_kernel() we load some fields out of the kimage
> structure after relocation has occurred. As the kimage structure isn't
> allocate to be relocation-safe, it may be clobbered during relocation,
> and we may load junk values out of the structure.
>
> Due to this, kexec may fail when the kimage allocation happens to fall
> within a PA range that an object will be relocated to. This has been
> observed to occur for regular kexec on a QEMU TCG 'virt' machine with
> 2GiB of RAM, where the PA range of the new kernel image overlaps the
> kimage structure.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: kexec: load from kimage prior to clobbering
https://git.kernel.org/arm64/c/eb3d8ea3e1f0
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list