]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/cpu_entry_area: Move it out of the fixmap
authorThomas Gleixner <tglx@linutronix.de>
Wed, 20 Dec 2017 17:51:31 +0000 (18:51 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Sat, 6 Jan 2018 12:23:35 +0000 (13:23 +0100)
commitbda9eb328d9ce3757f22794f79da73dd5886c93a
tree71847e3c24bc7d9a10932df5a0060afa8b6b9c1d
parent0fa11d2cd3d67af676aa2762ade282ba6d09cbe5
x86/cpu_entry_area: Move it out of the fixmap

CVE-2017-5754

Put the cpu_entry_area into a separate P4D entry. The fixmap gets too big
and 0-day already hit a case where the fixmap PTEs were cleared by
cleanup_highmap().

Aside of that the fixmap API is a pain as it's all backwards.

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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(backported from commit 92a0f81d89571e3e8759366e050ee05cc545ef99)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
14 files changed:
Documentation/x86/x86_64/mm.txt
arch/x86/include/asm/cpu_entry_area.h
arch/x86/include/asm/desc.h
arch/x86/include/asm/fixmap.h
arch/x86/include/asm/pgtable_32_types.h
arch/x86/include/asm/pgtable_64_types.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/traps.c
arch/x86/mm/cpu_entry_area.c
arch/x86/mm/dump_pagetables.c
arch/x86/mm/init_32.c
arch/x86/mm/kasan_init_64.c
arch/x86/mm/pgtable_32.c
arch/x86/xen/mmu_pv.c