0174-x86-uv-Use-the-right-TLB-flush-API.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 37d56f22c5e02a6594bdae33e257d9ee420a83df Mon Sep 17 00:00:00 2001
  2. From: Peter Zijlstra <[email protected]>
  3. Date: Tue, 5 Dec 2017 13:34:50 +0100
  4. Subject: [PATCH 174/232] x86/uv: Use the right TLB-flush API
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. Since uv_flush_tlb_others() implements flush_tlb_others() which is
  10. about flushing user mappings, we should use __flush_tlb_single(),
  11. which too is about flushing user mappings.
  12. Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
  13. Signed-off-by: Thomas Gleixner <[email protected]>
  14. Acked-by: Andrew Banman <[email protected]>
  15. Cc: Andy Lutomirski <[email protected]>
  16. Cc: Boris Ostrovsky <[email protected]>
  17. Cc: Borislav Petkov <[email protected]>
  18. Cc: Brian Gerst <[email protected]>
  19. Cc: Dave Hansen <[email protected]>
  20. Cc: David Laight <[email protected]>
  21. Cc: Denys Vlasenko <[email protected]>
  22. Cc: Eduardo Valentin <[email protected]>
  23. Cc: Greg KH <[email protected]>
  24. Cc: H. Peter Anvin <[email protected]>
  25. Cc: Josh Poimboeuf <[email protected]>
  26. Cc: Juergen Gross <[email protected]>
  27. Cc: Linus Torvalds <[email protected]>
  28. Cc: Mike Travis <[email protected]>
  29. Cc: Peter Zijlstra <[email protected]>
  30. Cc: Will Deacon <[email protected]>
  31. Cc: [email protected]
  32. Cc: [email protected]
  33. Cc: [email protected]
  34. Cc: [email protected]
  35. Cc: [email protected]
  36. Signed-off-by: Ingo Molnar <[email protected]>
  37. (cherry picked from commit 3e46e0f5ee3643a1239be9046c7ba6c66ca2b329)
  38. Signed-off-by: Andy Whitcroft <[email protected]>
  39. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  40. (cherry picked from commit 532216cdf02174dc08ca998b570c4699899fa355)
  41. Signed-off-by: Fabian Grünbichler <[email protected]>
  42. ---
  43. arch/x86/platform/uv/tlb_uv.c | 2 +-
  44. 1 file changed, 1 insertion(+), 1 deletion(-)
  45. diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
  46. index f44c0bc95aa2..8538a6723171 100644
  47. --- a/arch/x86/platform/uv/tlb_uv.c
  48. +++ b/arch/x86/platform/uv/tlb_uv.c
  49. @@ -299,7 +299,7 @@ static void bau_process_message(struct msg_desc *mdp, struct bau_control *bcp,
  50. local_flush_tlb();
  51. stat->d_alltlb++;
  52. } else {
  53. - __flush_tlb_one(msg->address);
  54. + __flush_tlb_single(msg->address);
  55. stat->d_onetlb++;
  56. }
  57. stat->d_requestee++;
  58. --
  59. 2.14.2