0021-xen-x86-Remove-SME-feature-in-PV-guests.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From aa2a95a84f2cbd92b10887f3c99c7858fae9e7e4 Mon Sep 17 00:00:00 2001
  2. From: Tom Lendacky <[email protected]>
  3. Date: Mon, 17 Jul 2017 16:10:29 -0500
  4. Subject: [PATCH 021/242] xen/x86: Remove SME feature in PV guests
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. Xen does not currently support SME for PV guests. Clear the SME CPU
  10. capability in order to avoid any ambiguity.
  11. Signed-off-by: Tom Lendacky <[email protected]>
  12. Reviewed-by: Thomas Gleixner <[email protected]>
  13. Reviewed-by: Borislav Petkov <[email protected]>
  14. Reviewed-by: Juergen Gross <[email protected]>
  15. Cc: <[email protected]>
  16. Cc: Alexander Potapenko <[email protected]>
  17. Cc: Andrey Ryabinin <[email protected]>
  18. Cc: Andy Lutomirski <[email protected]>
  19. Cc: Arnd Bergmann <[email protected]>
  20. Cc: Boris Ostrovsky <[email protected]>
  21. Cc: Borislav Petkov <[email protected]>
  22. Cc: Brijesh Singh <[email protected]>
  23. Cc: Dave Young <[email protected]>
  24. Cc: Dmitry Vyukov <[email protected]>
  25. Cc: Jonathan Corbet <[email protected]>
  26. Cc: Konrad Rzeszutek Wilk <[email protected]>
  27. Cc: Larry Woodman <[email protected]>
  28. Cc: Linus Torvalds <[email protected]>
  29. Cc: Matt Fleming <[email protected]>
  30. Cc: Michael S. Tsirkin <[email protected]>
  31. Cc: Paolo Bonzini <[email protected]>
  32. Cc: Peter Zijlstra <[email protected]>
  33. Cc: Radim Krčmář <[email protected]>
  34. Cc: Rik van Riel <[email protected]>
  35. Cc: Toshimitsu Kani <[email protected]>
  36. Cc: [email protected]
  37. Cc: [email protected]
  38. Cc: [email protected]
  39. Cc: [email protected]
  40. Cc: [email protected]
  41. Cc: [email protected]
  42. Link: http://lkml.kernel.org/r/3b605622a9fae5e588e5a13967120a18ec18071b.1500319216.git.thomas.lendacky@amd.com
  43. Signed-off-by: Ingo Molnar <[email protected]>
  44. (cherry picked from commit f2f931c6819467af5260a21c59fb787ce2863f92)
  45. Signed-off-by: Andy Whitcroft <[email protected]>
  46. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  47. (cherry picked from commit 8370907399392a637a2e51b4db3368fb594db3a6)
  48. Signed-off-by: Fabian Grünbichler <[email protected]>
  49. ---
  50. arch/x86/xen/enlighten_pv.c | 1 +
  51. 1 file changed, 1 insertion(+)
  52. diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
  53. index 290bc5ac9852..df1921751aa5 100644
  54. --- a/arch/x86/xen/enlighten_pv.c
  55. +++ b/arch/x86/xen/enlighten_pv.c
  56. @@ -263,6 +263,7 @@ static void __init xen_init_capabilities(void)
  57. setup_clear_cpu_cap(X86_FEATURE_MTRR);
  58. setup_clear_cpu_cap(X86_FEATURE_ACC);
  59. setup_clear_cpu_cap(X86_FEATURE_X2APIC);
  60. + setup_clear_cpu_cap(X86_FEATURE_SME);
  61. /*
  62. * Xen PV would need some work to support PCID: CR3 handling as well
  63. --
  64. 2.14.2