diff options
| author | Kirill A. Shutemov <[email protected]> | 2017-11-07 10:38:04 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2017-11-09 17:20:20 +0000 |
| commit | be739f4b5ddece74ef25e2304b17a7fd24575e9b (patch) | |
| tree | 2e0f2e78107f54781f4e278bdbbd5df0a14760bc /drivers/pci/hotplug/ibmphp.h | |
| parent | x86/idt: Remove X86_TRAP_BP initialization in idt_setup_traps() (diff) | |
| download | kernel-be739f4b5ddece74ef25e2304b17a7fd24575e9b.tar.gz kernel-be739f4b5ddece74ef25e2304b17a7fd24575e9b.zip | |
x86/mm: Fix ELF_ET_DYN_BASE for 5-level paging
On machines with 5-level paging we don't want to allocate mapping above
47-bit unless user explicitly asked for it. See b569bab78d8d ("x86/mm:
Prepare to expose larger address space to userspace") for details.
c715b72c1ba4 ("mm: revert x86_64 and arm64 ELF_ET_DYN_BASE base
changes") broke the behaviour. After the commit elf binary and heap got
mapped above 47-bits.
Use DEFAULT_MAP_WINDOW instead of TASK_SIZE to determine ELF_ET_DYN_BASE so
it's forced to be below 47-bits unconditionally.
Fixes: c715b72c1ba4 ("mm: revert x86_64 and arm64 ELF_ET_DYN_BASE base changes")
Signed-off-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: [email protected]
Cc: Andrew Morton <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/hotplug/ibmphp.h')
0 files changed, 0 insertions, 0 deletions
