| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- From aa2a95a84f2cbd92b10887f3c99c7858fae9e7e4 Mon Sep 17 00:00:00 2001
- From: Tom Lendacky <[email protected]>
- Date: Mon, 17 Jul 2017 16:10:29 -0500
- Subject: [PATCH 021/242] xen/x86: Remove SME feature in PV guests
- MIME-Version: 1.0
- Content-Type: text/plain; charset=UTF-8
- Content-Transfer-Encoding: 8bit
- CVE-2017-5754
- Xen does not currently support SME for PV guests. Clear the SME CPU
- capability in order to avoid any ambiguity.
- Signed-off-by: Tom Lendacky <[email protected]>
- Reviewed-by: Thomas Gleixner <[email protected]>
- Reviewed-by: Borislav Petkov <[email protected]>
- Reviewed-by: Juergen Gross <[email protected]>
- Cc: <[email protected]>
- Cc: Alexander Potapenko <[email protected]>
- Cc: Andrey Ryabinin <[email protected]>
- Cc: Andy Lutomirski <[email protected]>
- Cc: Arnd Bergmann <[email protected]>
- Cc: Boris Ostrovsky <[email protected]>
- Cc: Borislav Petkov <[email protected]>
- Cc: Brijesh Singh <[email protected]>
- Cc: Dave Young <[email protected]>
- Cc: Dmitry Vyukov <[email protected]>
- Cc: Jonathan Corbet <[email protected]>
- Cc: Konrad Rzeszutek Wilk <[email protected]>
- Cc: Larry Woodman <[email protected]>
- Cc: Linus Torvalds <[email protected]>
- Cc: Matt Fleming <[email protected]>
- Cc: Michael S. Tsirkin <[email protected]>
- Cc: Paolo Bonzini <[email protected]>
- Cc: Peter Zijlstra <[email protected]>
- Cc: Radim Krčmář <[email protected]>
- Cc: Rik van Riel <[email protected]>
- Cc: Toshimitsu Kani <[email protected]>
- Cc: [email protected]
- Cc: [email protected]
- Cc: [email protected]
- Cc: [email protected]
- Cc: [email protected]
- Cc: [email protected]
- Link: http://lkml.kernel.org/r/3b605622a9fae5e588e5a13967120a18ec18071b.1500319216.git.thomas.lendacky@amd.com
- Signed-off-by: Ingo Molnar <[email protected]>
- (cherry picked from commit f2f931c6819467af5260a21c59fb787ce2863f92)
- Signed-off-by: Andy Whitcroft <[email protected]>
- Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
- (cherry picked from commit 8370907399392a637a2e51b4db3368fb594db3a6)
- Signed-off-by: Fabian Grünbichler <[email protected]>
- ---
- arch/x86/xen/enlighten_pv.c | 1 +
- 1 file changed, 1 insertion(+)
- diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
- index 290bc5ac9852..df1921751aa5 100644
- --- a/arch/x86/xen/enlighten_pv.c
- +++ b/arch/x86/xen/enlighten_pv.c
- @@ -263,6 +263,7 @@ static void __init xen_init_capabilities(void)
- setup_clear_cpu_cap(X86_FEATURE_MTRR);
- setup_clear_cpu_cap(X86_FEATURE_ACC);
- setup_clear_cpu_cap(X86_FEATURE_X2APIC);
- + setup_clear_cpu_cap(X86_FEATURE_SME);
-
- /*
- * Xen PV would need some work to support PCID: CR3 handling as well
- --
- 2.14.2
|