]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/spectre_v2: Only use IBRS when ibrs_inuse tells us to
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 10 Feb 2018 04:16:09 +0000 (23:16 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Mon, 12 Feb 2018 21:07:11 +0000 (13:07 -0800)
commit79e253dddafcda1d23403e5250526dc4cbd3fc75
treef40ccd75d01826b5afe5c51660ede0eb4fc77ddd
parent5cca067f8b78c0d8f90cd47abdec5fd3bed28e45
x86/spectre_v2: Only use IBRS when ibrs_inuse tells us to

instead of using it if the CPU has detected that it exists.

This conflicts with retpoline - as when retpoline is enabled
we end up enabling/disabling the IBRS even though we should
not be touching this MSR.

OraBug: 27526563
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
arch/x86/kernel/process.c