diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2024-12-05 15:05:14 +0000 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2024-12-06 10:41:59 +0100 |
| commit | cb33ff9e063c1230d557d97ff6e87d097821d517 (patch) | |
| tree | 356d6cddbd810f7dd44b4b3632f4c8bf2ff77f27 /arch/x86/include/asm/sections.h | |
| parent | x86/kexec: Invoke copy of relocate_kernel() instead of the original (diff) | |
| download | linux-cb33ff9e063c1230d557d97ff6e87d097821d517.tar.gz linux-cb33ff9e063c1230d557d97ff6e87d097821d517.zip | |
x86/kexec: Move relocate_kernel to kernel .data section
Now that the copy is executed instead of the original, the relocate_kernel
page can live in the kernel's .text section. This will allow subsequent
commits to actually add real data to it and clean up the code somewhat as
well as making the control page ROX.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20241205153343.3275139-9-dwmw2@infradead.org
Diffstat (limited to 'arch/x86/include/asm/sections.h')
| -rw-r--r-- | arch/x86/include/asm/sections.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/sections.h b/arch/x86/include/asm/sections.h index 3fa87e5e11ab..30e8ee7006f9 100644 --- a/arch/x86/include/asm/sections.h +++ b/arch/x86/include/asm/sections.h @@ -5,6 +5,7 @@ #include <asm-generic/sections.h> #include <asm/extable.h> +extern char __relocate_kernel_start[], __relocate_kernel_end[]; extern char __brk_base[], __brk_limit[]; extern char __end_rodata_aligned[]; |
