x86/cpufeatures: Add X86_BUG_SPECTRE_V[12]
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 6 Jan 2018 11:49:23 +0000 (11:49 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 6 Jan 2018 20:57:19 +0000 (21:57 +0100)
commit99c6fa2511d8a683e61468be91b83f85452115fa
treea4244ba85be2ccb87b247d0d66d31a342b34ac82
parent01c9b17bf673b05bb401b76ec763e9730ccf1376
x86/cpufeatures: Add X86_BUG_SPECTRE_V[12]

Add the bug bits for spectre v1/2 and force them unconditionally for all
cpus.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: gnomes@lxorguk.ukuu.org.uk
Cc: Rik van Riel <riel@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Kees Cook <keescook@google.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>
Cc: Paul Turner <pjt@google.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1515239374-23361-2-git-send-email-dwmw@amazon.co.uk
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/common.c