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