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)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 4 Jan 2018 22:04:57 +0000 (23:04 +0100)
commitf2078904810373211fb15f91888fba14c01a4acc
tree3e0cb3a579766be68d3ea9d8309b5b36a1f2c9d8
parentf5a40711fa58f1c109165a4fec6078bf2dfd2bdc
x86/mm: Map cpu_entry_area at the same place on 4/5 level

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
Documentation/x86/x86_64/mm.txt
arch/x86/include/asm/pgtable_64_types.h
arch/x86/mm/dump_pagetables.c