x86/smpboot: Load TSS and getcpu GDT entry before loading IDT
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:16:08 +0000 (15:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:20 +0000 (11:33 +0200)
commit520d030852b4c9babfce9a79d8b5320b6b5545e6
treeeba2437f1b2a41d21ede8ca9e81e1fb0f7ebd8a5
parent8940ac9ced8bc1c48c4e28b0784e3234c9d14469
x86/smpboot: Load TSS and getcpu GDT entry before loading IDT

The IDT on 64-bit contains vectors which use paranoid_entry() and/or IST
stacks. To make these vectors work, the TSS and the getcpu GDT entry need
to be set up before the IDT is loaded.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-68-joro@8bytes.org
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/smpboot.c