]> git.baikalelectronics.ru Git - kernel.git/commit
x86,bugs: Unconditionally allow spectre_v2=retpoline,amd
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 Oct 2021 12:01:46 +0000 (14:01 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 28 Oct 2021 21:25:29 +0000 (23:25 +0200)
commit36e5ff44126b8ddb3289000063fcd8a6cb19cf52
treeaa0196edf65293f6b8daeeb7429195d776ec430a
parentac51067730bd43ca85fd69caf67aba90ea4ba771
x86,bugs: Unconditionally allow spectre_v2=retpoline,amd

Currently Linux prevents usage of retpoline,amd on !AMD hardware, this
is unfriendly and gets in the way of testing. Remove this restriction.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20211026120310.487348118@infradead.org
arch/x86/kernel/cpu/bugs.c