]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/bugs/IBRS: Turn on IBRS in spectre_v2_select_mitigation
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 12 May 2018 00:12:34 +0000 (20:12 -0400)
committerBrian Maly <brian.maly@oracle.com>
Mon, 21 May 2018 22:01:53 +0000 (18:01 -0400)
commitedd22967f272aafa4dfbbaf294e28942728dc95c
tree7d22cb583d67545930e59f14c1ee2dcc4da343fe
parent82a4e1a676d422c71e601e43f5a4a4878cf83f2b
x86/bugs/IBRS: Turn on IBRS in spectre_v2_select_mitigation

instead of during early bootup. This makes the bootup much
faster as we may get an NMI (watchdog) during booting before we
make it to spectre_v2_select_mitigation - which means we would
be running with IBRS enabled.

OraBug: 28041771
CVE: CVE-2018-3639

Fixes: XYZ ("x86/bugs/IBRS: Use variable instead of defines for enabling IBRS")
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/include/asm/spec_ctrl.h
arch/x86/kernel/cpu/bugs_64.c