]>
Commit | Line | Data |
---|---|---|
59d5af67 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
321d628a FG |
2 | From: Josh Poimboeuf <jpoimboe@redhat.com> |
3 | Date: Mon, 18 Sep 2017 21:43:34 -0500 | |
59d5af67 | 4 | Subject: [PATCH] x86/boot: Annotate verify_cpu() as a callable function |
321d628a FG |
5 | MIME-Version: 1.0 |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | CVE-2017-5754 | |
10 | ||
11 | verify_cpu() is a callable function. Annotate it as such. | |
12 | ||
13 | Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> | |
14 | Cc: Andy Lutomirski <luto@kernel.org> | |
15 | Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> | |
16 | Cc: Jiri Slaby <jslaby@suse.cz> | |
17 | Cc: Juergen Gross <jgross@suse.com> | |
18 | Cc: Linus Torvalds <torvalds@linux-foundation.org> | |
19 | Cc: Peter Zijlstra <peterz@infradead.org> | |
20 | Cc: Thomas Gleixner <tglx@linutronix.de> | |
21 | Link: http://lkml.kernel.org/r/293024b8a080832075312f38c07ccc970fc70292.1505764066.git.jpoimboe@redhat.com | |
22 | Signed-off-by: Ingo Molnar <mingo@kernel.org> | |
23 | (cherry picked from commit e93db75a0054b23a874a12c63376753544f3fe9e) | |
24 | Signed-off-by: Andy Whitcroft <apw@canonical.com> | |
25 | Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com> | |
26 | (cherry picked from commit 48a432c46026f864e194cdf9a8133e7c9109274e) | |
27 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> | |
28 | --- | |
29 | arch/x86/kernel/verify_cpu.S | 3 ++- | |
30 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
31 | ||
32 | diff --git a/arch/x86/kernel/verify_cpu.S b/arch/x86/kernel/verify_cpu.S | |
33 | index 014ea59aa153..3d3c2f71f617 100644 | |
34 | --- a/arch/x86/kernel/verify_cpu.S | |
35 | +++ b/arch/x86/kernel/verify_cpu.S | |
36 | @@ -33,7 +33,7 @@ | |
37 | #include <asm/cpufeatures.h> | |
38 | #include <asm/msr-index.h> | |
39 | ||
40 | -verify_cpu: | |
41 | +ENTRY(verify_cpu) | |
42 | pushf # Save caller passed flags | |
43 | push $0 # Kill any dangerous flags | |
44 | popf | |
45 | @@ -139,3 +139,4 @@ verify_cpu: | |
46 | popf # Restore caller passed flags | |
47 | xorl %eax, %eax | |
48 | ret | |
49 | +ENDPROC(verify_cpu) | |
50 | -- | |
51 | 2.14.2 | |
52 |