diff options
author | Baoquan He <[email protected]> | 2019-03-08 10:56:15 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-04-05 22:13:00 +0200 |
commit | 0925dda5962e9b55e4d38a72eba93858f24bac41 (patch) | |
tree | c29e171d4f7c4160292af2291b484dd4713eb69a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5e7a8ca319268a70a6c7c3c1fde5bea38e1e5539 (diff) |
x86/mm/KASLR: Use only one PUD entry for real mode trampoline
The current code builds identity mapping for the real mode trampoline by
borrowing page tables from the direct mapping section if KASLR is
enabled. It copies present entries of the first PUD table in 4-level paging
mode, or the first P4D table in 5-level paging mode.
However, there's only a very small area under low 1 MB reserved for the
real mode trampoline in reserve_real_mode() so it makes no sense to build
up a really large mapping for it.
Reduce it to one PUD (1GB) entry. This matches the randomization
granularity in 4-level paging mode and allows to change the randomization
granularity in 5-level paging mode from 512GB to 1GB later.
[ tglx: Massaged changelog and comments ]
Signed-off-by: Baoquan He <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions