]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0058-x86-boot-Annotate-verify_cpu-as-a-callable-function.patch
update ZFS to 0.7.4 + ARC hit rate cherry-pick
[pve-kernel.git] / patches / kernel / 0058-x86-boot-Annotate-verify_cpu-as-a-callable-function.patch
CommitLineData
59d5af67 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
321d628a
FG
2From: Josh Poimboeuf <jpoimboe@redhat.com>
3Date: Mon, 18 Sep 2017 21:43:34 -0500
59d5af67 4Subject: [PATCH] x86/boot: Annotate verify_cpu() as a callable function
321d628a
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5754
10
11verify_cpu() is a callable function. Annotate it as such.
12
13Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
14Cc: Andy Lutomirski <luto@kernel.org>
15Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
16Cc: Jiri Slaby <jslaby@suse.cz>
17Cc: Juergen Gross <jgross@suse.com>
18Cc: Linus Torvalds <torvalds@linux-foundation.org>
19Cc: Peter Zijlstra <peterz@infradead.org>
20Cc: Thomas Gleixner <tglx@linutronix.de>
21Link: http://lkml.kernel.org/r/293024b8a080832075312f38c07ccc970fc70292.1505764066.git.jpoimboe@redhat.com
22Signed-off-by: Ingo Molnar <mingo@kernel.org>
23(cherry picked from commit e93db75a0054b23a874a12c63376753544f3fe9e)
24Signed-off-by: Andy Whitcroft <apw@canonical.com>
25Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
26(cherry picked from commit 48a432c46026f864e194cdf9a8133e7c9109274e)
27Signed-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
32diff --git a/arch/x86/kernel/verify_cpu.S b/arch/x86/kernel/verify_cpu.S
33index 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--
512.14.2
52