]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
init: Invoke init_espfix_bsp() from mm_init()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 17 Dec 2017 09:56:29 +0000 (10:56 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Sat, 6 Jan 2018 12:23:36 +0000 (13:23 +0100)
commita187e1a3cd87c860a8db188991d2d43fedd7225f
tree30b7bc259193ac5c127fe680873e2faacb6bec91
parentbda9eb328d9ce3757f22794f79da73dd5886c93a
init: Invoke init_espfix_bsp() from mm_init()

CVE-2017-5754

init_espfix_bsp() needs to be invoked before the page table isolation
initialization. Move it into mm_init() which is the place where pti_init()
will be added.

While at it get rid of the #ifdeffery and provide proper stub functions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 613e396bc0d4c7604fba23256644e78454c68cf6)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/include/asm/espfix.h
arch/x86/kernel/smpboot.c
include/asm-generic/pgtable.h
init/main.c