0054-x86-head-Remove-unused-bad_address-code.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From 5ba2d2eca16a62a64166661ea849c4916ae2f44f Mon Sep 17 00:00:00 2001
  2. From: Josh Poimboeuf <[email protected]>
  3. Date: Mon, 18 Sep 2017 21:43:32 -0500
  4. Subject: [PATCH 054/242] x86/head: Remove unused 'bad_address' code
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. It's no longer possible for this code to be executed, so remove it.
  10. Signed-off-by: Josh Poimboeuf <[email protected]>
  11. Cc: Andy Lutomirski <[email protected]>
  12. Cc: Boris Ostrovsky <[email protected]>
  13. Cc: Jiri Slaby <[email protected]>
  14. Cc: Juergen Gross <[email protected]>
  15. Cc: Linus Torvalds <[email protected]>
  16. Cc: Peter Zijlstra <[email protected]>
  17. Cc: Thomas Gleixner <[email protected]>
  18. Link: http://lkml.kernel.org/r/32a46fe92d2083700599b36872b26e7dfd7b7965.1505764066.git.jpoimboe@redhat.com
  19. Signed-off-by: Ingo Molnar <[email protected]>
  20. (cherry picked from commit a8b88e84d124bc92c4808e72b8b8c0e0bb538630)
  21. Signed-off-by: Andy Whitcroft <[email protected]>
  22. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  23. (cherry picked from commit d790ff35a3a49ef0942a3484f024551433fd2ddf)
  24. Signed-off-by: Fabian Grünbichler <[email protected]>
  25. ---
  26. arch/x86/kernel/head_64.S | 3 ---
  27. 1 file changed, 3 deletions(-)
  28. diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
  29. index 627c798b2f15..37d9905d38d6 100644
  30. --- a/arch/x86/kernel/head_64.S
  31. +++ b/arch/x86/kernel/head_64.S
  32. @@ -249,9 +249,6 @@ ENDPROC(start_cpu0)
  33. .quad init_thread_union + THREAD_SIZE - SIZEOF_PTREGS
  34. __FINITDATA
  35. -bad_address:
  36. - jmp bad_address
  37. -
  38. __INIT
  39. ENTRY(early_idt_handler_array)
  40. i = 0
  41. --
  42. 2.14.2