(subset) [PATCH v2 0/2] arm64: use typed entries into copied code for kCFI

Catalin Marinas catalin.marinas at arm.com
Wed Nov 18 10:26:38 PST 2026


On Wed, 11 Nov 2026 15:26:03 -0800, Ben Cressey wrote:
> An arm64 kernel built with CONFIG_CFI=y oopses after "Bye!" on every
> kexec that relocates the image. v1 [1] marked machine_kexec() __nocfi.
> This version types the copied relocation code instead, as Kees Cook
> suggested [2], and does the same for hibernate, as Mark Rutland asked
> [3], so that swsusp_arch_resume() loses its __nocfi. Only kexec faults
> today, and its fix does not depend on the hibernate patch. x86 follows
> as a separate patch.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks! The second patch is for 7.5.

[1/2] arm64: kexec: use a typed entry to fix kCFI oops
      https://git.kernel.org/arm64/c/b059e957d07b



More information about the linux-arm-kernel mailing list