]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
x86/mm: Map cpu_entry_area at the same place on 4/5 level
authorThomas Gleixner <tglx@linutronix.de>
Thu, 4 Jan 2018 12:01:40 +0000 (13:01 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 11 Jan 2018 18:49:40 +0000 (19:49 +0100)
commit9376ab43d9051d5127b1223675b24233efaf2ca1
tree55d1f605f2a50bc889b349ff8305ca8355b0b681
parent1b1ff152fa80ea51661e124cf6f63f77610a2f02
x86/mm: Map cpu_entry_area at the same place on 4/5 level

CVE-2017-5754

There is no reason for 4 and 5 level pagetables to have a different
layout. It just makes determining vaddr_end for KASLR harder than
necessary.

Fixes: 92a0f81d8957 ("x86/cpu_entry_area: Move it out of the fixmap")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Benjamin Gilbert <benjamin.gilbert@coreos.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable <stable@vger.kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Garnier <thgarnie@google.com>,
Cc: Alexander Kuleshov <kuleshovmail@gmail.com>
Link: https://lkml.kernel.org/r/alpine.DEB.2.20.1801041320360.1771@nanos
(cherry picked from commit f2078904810373211fb15f91888fba14c01a4acc)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Documentation/x86/x86_64/mm.txt
arch/x86/include/asm/pgtable_64_types.h
arch/x86/mm/dump_pagetables.c