]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Invalidate GDT/IDT from relocate_kernel() instead of earlier
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 16 Dec 2024 10:49:12 +0000 (10:49 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 26 Mar 2025 10:20:06 +0000 (10:20 +0000)
commit98637c78753a7e3891b26541ce50faabaabff13d
treed7c6e9d3d43272079866ffc4298c2348a6b3bfbb
parenta99ce1b0e3fa9fc5790d3c772d0e271890c0dcb3
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>
arch/x86/kernel/machine_kexec_64.c
arch/x86/kernel/relocate_kernel_64.S