[PATCH v7 0/8] x86/kexec: Add exception handling for relocate_kernel

David Woodhouse dwmw2 at infradead.org
Fri Mar 14 03:37:45 PDT 2025


On Fri, 2025-03-14 at 11:21 +0100, Ingo Molnar wrote:
> 
> I've applied patch #1 back to tip:x86/boot.
> 
> I've skipped the -v7 versions of patch #2 and #3 because AFAICS you've 
> changed exc_handler already, so a backmerge of this annotation fix 
> wouldn't be enough.

I haven't (yet) changed exc_handler, but I did post that annotation fix
as a patch against patch 3 in the series, when actually it should be
applied as as fixup to patch 2.

I *am* cleaning up exc_handler in patch 3 though, for a more 'warm and
fuzzy' experience on int3 rather than dumping the full register set. So
I'll repost it from patch 2 against the new tip/x86/boot, including the
annotation fix in the right place.

Thanks.

I haven't yet decided what to do about the unconditional int3. Slightly
tempted to suggest we put it in #ifdef CONFIG_DEBUG_ENTRY now I've been
reminded that option exists? But we should *also* be doing better
testing of kexec-jump, with something like that test case I posted, and
adding an int3 into that would be trivial 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/20250314/364b9ab6/attachment.p7s>


More information about the kexec mailing list