]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/IBRS: Save current status of MSR_IA32_SPEC_CTRL
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 8 Jan 2018 23:30:50 +0000 (18:30 -0500)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:20:14 +0000 (10:20 -0800)
commit0d4d8920d828d4ab95897a83bc6d8f4c89d6a5ff
treee6653a107fddf81022a9bd7e8d7dfad0ff17140f
parent4d7e4f3b314102251277945644603c5f5283109a
x86/IBRS: Save current status of MSR_IA32_SPEC_CTRL

... otherwise we are restoring garbage and the MSR only allows
writes to two lower bits, causing a #GPF is other bits are set

While at it, also stuff RSB, which we typically do before enabling
IBRS

Orabug: 27365419

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/kernel/entry_64.S