[PATCH v7 8/8] [DO NOT MERGE] x86/kexec: Add CFI type information to relocate_kernel()
David Woodhouse
dwmw2 at infradead.org
Sat Mar 22 04:38:24 PDT 2025
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.
It's just causing noise around the *actual* stuff we want to get in, to
do the exception handling.
For that, I think the only thing outstanding is to add a userspace test
based on http://david.woodhou.se/loadret.c which invokes the int3 from
the 'payload' to test it. I think this is better than doing it inside
the kernel itself, as it gives us a selftest for the kexec jump
mechanism too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5069 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20250322/4ff51ed8/attachment.p7s>
More information about the kexec
mailing list