]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0054-x86-head-Remove-unused-bad_address-code.patch
KPTI: add follow-up fixes
[pve-kernel.git] / patches / kernel / 0054-x86-head-Remove-unused-bad_address-code.patch
CommitLineData
321d628a
FG
1From 5ba2d2eca16a62a64166661ea849c4916ae2f44f Mon Sep 17 00:00:00 2001
2From: Josh Poimboeuf <jpoimboe@redhat.com>
3Date: Mon, 18 Sep 2017 21:43:32 -0500
e4cdf2a5 4Subject: [PATCH 054/241] x86/head: Remove unused 'bad_address' code
321d628a
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5754
10
11It's no longer possible for this code to be executed, so remove it.
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/32a46fe92d2083700599b36872b26e7dfd7b7965.1505764066.git.jpoimboe@redhat.com
22Signed-off-by: Ingo Molnar <mingo@kernel.org>
23(cherry picked from commit a8b88e84d124bc92c4808e72b8b8c0e0bb538630)
24Signed-off-by: Andy Whitcroft <apw@canonical.com>
25Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
26(cherry picked from commit d790ff35a3a49ef0942a3484f024551433fd2ddf)
27Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
28---
29 arch/x86/kernel/head_64.S | 3 ---
30 1 file changed, 3 deletions(-)
31
32diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
33index 627c798b2f15..37d9905d38d6 100644
34--- a/arch/x86/kernel/head_64.S
35+++ b/arch/x86/kernel/head_64.S
36@@ -249,9 +249,6 @@ ENDPROC(start_cpu0)
37 .quad init_thread_union + THREAD_SIZE - SIZEOF_PTREGS
38 __FINITDATA
39
40-bad_address:
41- jmp bad_address
42-
43 __INIT
44 ENTRY(early_idt_handler_array)
45 i = 0
46--
472.14.2
48