0057-x86-xen-Fix-xen-head-ELF-annotations.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 6f359bcacdf28ca9f6bfc29bd0aa4e22489eb34d Mon Sep 17 00:00:00 2001
  2. From: Josh Poimboeuf <[email protected]>
  3. Date: Mon, 18 Sep 2017 21:43:35 -0500
  4. Subject: [PATCH 057/242] x86/xen: Fix xen head ELF annotations
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. Mark the ends of the startup_xen and hypercall_page code sections.
  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/3a80a394d30af43d9cefa1a29628c45ed8420c97.1505764066.git.jpoimboe@redhat.com
  19. Signed-off-by: Ingo Molnar <[email protected]>
  20. (cherry picked from commit 2582d3df95c76d3b686453baf90b64d57e87d1e8)
  21. Signed-off-by: Andy Whitcroft <[email protected]>
  22. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  23. (cherry picked from commit b9410861f1436c1e38958a9b85009ad252aad9f5)
  24. Signed-off-by: Fabian Grünbichler <[email protected]>
  25. ---
  26. arch/x86/xen/xen-head.S | 4 ++--
  27. 1 file changed, 2 insertions(+), 2 deletions(-)
  28. diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
  29. index 72a8e6adebe6..2f0cff2cc265 100644
  30. --- a/arch/x86/xen/xen-head.S
  31. +++ b/arch/x86/xen/xen-head.S
  32. @@ -33,7 +33,7 @@ ENTRY(startup_xen)
  33. mov $init_thread_union+THREAD_SIZE, %_ASM_SP
  34. jmp xen_start_kernel
  35. -
  36. +END(startup_xen)
  37. __FINIT
  38. #endif
  39. @@ -47,7 +47,7 @@ ENTRY(hypercall_page)
  40. .type xen_hypercall_##n, @function; .size xen_hypercall_##n, 32
  41. #include <asm/xen-hypercalls.h>
  42. #undef HYPERCALL
  43. -
  44. +END(hypercall_page)
  45. .popsection
  46. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
  47. --
  48. 2.14.2