From: Alexander Graf
Kexec has 2 modes: A user space driven mode and a kernel driven mode.
For the kernel driven mode, kernel code determines the physical
addresses of all target buffers that the payload gets copied into.
With KHO, we can only safely copy payloads into the "scratch area".
Teach
On Wed, 2025-03-19 at 08:47 -0700, Josh Poimboeuf wrote:
>
> Looking at machine_kexec(), it calls cet_disable() before the indirect
> call. So yeah, it seems fine for relocate_kernel() to not have a CFI
> prologue or ENDBR.
Yeah. I'm just going to throw that into a branch and forget it for now.