]> Gentwo Git Trees - linux/.git/commit
x86/kexec: Invalidate GDT/IDT from relocate_kernel() instead of earlier
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 26 Mar 2025 14:16:03 +0000 (14:16 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Apr 2025 10:17:14 +0000 (12:17 +0200)
commitde085ddd493bccb77a3ec1b99ae7466133540f4d
tree1cdb0bfa0be7fa4b284974246bfd6bc6608f8a1e
parent7516e7216bdfb9e2fab0a0ca3bd23cb2e61e46ed
x86/kexec: Invalidate GDT/IDT from relocate_kernel() instead of earlier

Reduce the window during which exceptions are unhandled, by leaving the
GDT/IDT in place all the way into the relocate_kernel() function, until
the moment that %cr3 gets replaced.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250326142404.256980-4-dwmw2@infradead.org
arch/x86/kernel/machine_kexec_64.c
arch/x86/kernel/relocate_kernel_64.S