0140-x86-irq-Remove-an-old-outdated-comment-about-context.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. From 2b0f4b4c0431f0e68a01a51b889c7935f6920765 Mon Sep 17 00:00:00 2001
  2. From: Andy Lutomirski <[email protected]>
  3. Date: Mon, 4 Dec 2017 15:07:10 +0100
  4. Subject: [PATCH 140/232] x86/irq: Remove an old outdated comment about context
  5. tracking races
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. CVE-2017-5754
  10. That race has been fixed and code cleaned up for a while now.
  11. Signed-off-by: Andy Lutomirski <[email protected]>
  12. Signed-off-by: Thomas Gleixner <[email protected]>
  13. Reviewed-by: Borislav Petkov <[email protected]>
  14. Reviewed-by: Thomas Gleixner <[email protected]>
  15. Cc: Boris Ostrovsky <[email protected]>
  16. Cc: Borislav Petkov <[email protected]>
  17. Cc: Borislav Petkov <[email protected]>
  18. Cc: Brian Gerst <[email protected]>
  19. Cc: Dave Hansen <[email protected]>
  20. Cc: Dave Hansen <[email protected]>
  21. Cc: David Laight <[email protected]>
  22. Cc: Denys Vlasenko <[email protected]>
  23. Cc: Eduardo Valentin <[email protected]>
  24. Cc: Greg KH <[email protected]>
  25. Cc: H. Peter Anvin <[email protected]>
  26. Cc: Josh Poimboeuf <[email protected]>
  27. Cc: Juergen Gross <[email protected]>
  28. Cc: Linus Torvalds <[email protected]>
  29. Cc: Peter Zijlstra <[email protected]>
  30. Cc: Rik van Riel <[email protected]>
  31. Cc: Will Deacon <[email protected]>
  32. Cc: [email protected]
  33. Cc: [email protected]
  34. Cc: [email protected]
  35. Cc: [email protected]
  36. Link: https://lkml.kernel.org/r/[email protected]
  37. Signed-off-by: Ingo Molnar <[email protected]>
  38. (cherry picked from commit 6669a692605547892a026445e460bf233958bd7f)
  39. Signed-off-by: Andy Whitcroft <[email protected]>
  40. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  41. (cherry picked from commit 7344db7580965d6f9994b6d7b1a74206d7635565)
  42. Signed-off-by: Fabian Grünbichler <[email protected]>
  43. ---
  44. arch/x86/kernel/irq.c | 12 ------------
  45. 1 file changed, 12 deletions(-)
  46. diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
  47. index 4ed0aba8dbc8..a84142a910f3 100644
  48. --- a/arch/x86/kernel/irq.c
  49. +++ b/arch/x86/kernel/irq.c
  50. @@ -222,18 +222,6 @@ __visible unsigned int __irq_entry do_IRQ(struct pt_regs *regs)
  51. /* high bit used in ret_from_ code */
  52. unsigned vector = ~regs->orig_ax;
  53. - /*
  54. - * NB: Unlike exception entries, IRQ entries do not reliably
  55. - * handle context tracking in the low-level entry code. This is
  56. - * because syscall entries execute briefly with IRQs on before
  57. - * updating context tracking state, so we can take an IRQ from
  58. - * kernel mode with CONTEXT_USER. The low-level entry code only
  59. - * updates the context if we came from user mode, so we won't
  60. - * switch to CONTEXT_KERNEL. We'll fix that once the syscall
  61. - * code is cleaned up enough that we can cleanly defer enabling
  62. - * IRQs.
  63. - */
  64. -
  65. entering_irq();
  66. /* entering_irq() tells RCU that we're not quiescent. Check it. */
  67. --
  68. 2.14.2