Re: [RFC PATCH 2/2] x86/kexec: Add data section to relocate_kernel

From: David Woodhouse
Date: Fri Nov 08 2024 - 00:36:18 EST


On Fri, 2024-11-08 at 05:22 +0000, David Woodhouse wrote:
>
> @@ -128,7 +138,7 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped)
>         /* set return address to 0 if not preserving context */
>         pushq   $0
>         /* store the start address on the stack */
> -       pushq   %rdx
> +       pushq   start_address(%rip)
>  
>         /*
>          * Clear X86_CR4_CET (if it was set) such that we can clear CR0_WP

Oops, drop that part; I did that (and actually defined it, and stored
the value in it) just to test that everything was actually *working*,
since I think the rest of the data fields are only used for
preserve_context mode. Fixed in the tree at

https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads//kexec-lds

Attachment: smime.p7s
Description: S/MIME cryptographic signature