x86/boot/compressed/64: Reload CS in startup_32
authorJoerg Roedel <jroedel@suse.de>
Wed, 10 Mar 2021 08:43:20 +0000 (09:43 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 18 Mar 2021 15:44:43 +0000 (16:44 +0100)
commit0c289ff81c24033777fab23019039f11e1449ba4
treeb8f02c4a39c8122fcf34988b9db5dbcec48e61cb
parenteab696d8e8b9c9d600be6fad8dd8dfdfaca6ca7c
x86/boot/compressed/64: Reload CS in startup_32

Exception handling in the startup_32 boot path requires the CS
selector to be correctly set up. Reload it from the current GDT.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210312123824.306-4-joro@8bytes.org
arch/x86/boot/compressed/head_64.S