]> git.proxmox.com Git - pve-kernel.git/blob - 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
1 From 5ba2d2eca16a62a64166661ea849c4916ae2f44f Mon Sep 17 00:00:00 2001
2 From: Josh Poimboeuf <jpoimboe@redhat.com>
3 Date: Mon, 18 Sep 2017 21:43:32 -0500
4 Subject: [PATCH 054/241] x86/head: Remove unused 'bad_address' code
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 It's no longer possible for this code to be executed, so remove it.
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/32a46fe92d2083700599b36872b26e7dfd7b7965.1505764066.git.jpoimboe@redhat.com
22 Signed-off-by: Ingo Molnar <mingo@kernel.org>
23 (cherry picked from commit a8b88e84d124bc92c4808e72b8b8c0e0bb538630)
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 d790ff35a3a49ef0942a3484f024551433fd2ddf)
27 Signed-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
32 diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
33 index 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 --
47 2.14.2
48