0055-x86-head-Fix-head-ELF-function-annotations.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From 2527d40adb84012c90cab350bd5ebbce65daaff7 Mon Sep 17 00:00:00 2001
  2. From: Josh Poimboeuf <[email protected]>
  3. Date: Mon, 18 Sep 2017 21:43:33 -0500
  4. Subject: [PATCH 055/242] x86/head: Fix head ELF function annotations
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. These functions aren't callable C-type functions, so don't annotate them
  10. as such.
  11. Signed-off-by: Josh Poimboeuf <[email protected]>
  12. Cc: Andy Lutomirski <[email protected]>
  13. Cc: Boris Ostrovsky <[email protected]>
  14. Cc: Jiri Slaby <[email protected]>
  15. Cc: Juergen Gross <[email protected]>
  16. Cc: Linus Torvalds <[email protected]>
  17. Cc: Peter Zijlstra <[email protected]>
  18. Cc: Thomas Gleixner <[email protected]>
  19. Link: http://lkml.kernel.org/r/36eb182738c28514f8bf95e403d89b6413a88883.1505764066.git.jpoimboe@redhat.com
  20. Signed-off-by: Ingo Molnar <[email protected]>
  21. (cherry picked from commit 015a2ea5478680fc5216d56b7ff306f2a74efaf9)
  22. Signed-off-by: Andy Whitcroft <[email protected]>
  23. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  24. (cherry picked from commit 707517a56928fed1c03eefdb4e00fa57dfddc4fd)
  25. Signed-off-by: Fabian Grünbichler <[email protected]>
  26. ---
  27. arch/x86/kernel/head_64.S | 6 +++---
  28. 1 file changed, 3 insertions(+), 3 deletions(-)
  29. diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
  30. index 37d9905d38d6..45b18b1a6417 100644
  31. --- a/arch/x86/kernel/head_64.S
  32. +++ b/arch/x86/kernel/head_64.S
  33. @@ -218,7 +218,7 @@ ENTRY(secondary_startup_64)
  34. pushq %rax # target address in negative space
  35. lretq
  36. .Lafter_lret:
  37. -ENDPROC(secondary_startup_64)
  38. +END(secondary_startup_64)
  39. #include "verify_cpu.S"
  40. @@ -261,7 +261,7 @@ ENTRY(early_idt_handler_array)
  41. i = i + 1
  42. .fill early_idt_handler_array + i*EARLY_IDT_HANDLER_SIZE - ., 1, 0xcc
  43. .endr
  44. -ENDPROC(early_idt_handler_array)
  45. +END(early_idt_handler_array)
  46. early_idt_handler_common:
  47. /*
  48. @@ -304,7 +304,7 @@ early_idt_handler_common:
  49. 20:
  50. decl early_recursion_flag(%rip)
  51. jmp restore_regs_and_iret
  52. -ENDPROC(early_idt_handler_common)
  53. +END(early_idt_handler_common)
  54. __INITDATA
  55. --
  56. 2.14.2