]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/spectre_v2: Add spectre_v2_heuristics=
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 5 Feb 2018 19:34:55 +0000 (14:34 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Feb 2018 18:17:17 +0000 (10:17 -0800)
commit2768230b60c362512f3837db2742706859cd79e5
treea834ebab3f84bd16738e8fc02db541375a5fb78c
parent5fabaf42f225b7c0ce5ba080ea5aec517eca27ec
x86/spectre_v2: Add spectre_v2_heuristics=

As we have one already in the tree:
 x86/spectre: Favor IBRS on Skylake over retpoline

But we may want a knob to turn that off altgoether. The
hard to remember spectre_v2_heuristics=off or
spectre_v2_heuristics=skylake=off

will take care of disabling that optimization.

Orabug: 27477743
CVE: CVE-2017-5715
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Documentation/kernel-parameters.txt
arch/x86/kernel/cpu/bugs_64.c