x86/mm/KASLR: Reduce randomization granularity for 5-level paging to 1GB
authorBaoquan He <bhe@redhat.com>
Fri, 8 Mar 2019 02:56:16 +0000 (10:56 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Apr 2019 20:13:52 +0000 (22:13 +0200)
commitb569c18434987163a05f05a12cdf6a9975c55ff3
tree3f88695ffdb9aacd44e4546c1a521160e55767ea
parent0925dda5962e9b55e4d38a72eba93858f24bac41
x86/mm/KASLR: Reduce randomization granularity for 5-level paging to 1GB

The current randomization granularity of 5-level is 512 GB. The mapping of
the real mode trampoline has been reduced to one PUD entry, so there is no
restriction anymore.

Reduce the granularity to 1GB for 5-level paging mode which allows better
randomization.

[ tglx: Massaged changelog ]

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: dave.hansen@linux.intel.com
Cc: luto@kernel.org
Cc: peterz@infradead.org
Cc: bp@alien8.de
Cc: hpa@zytor.com
Cc: keescook@chromium.org
Cc: thgarnie@google.com
Link: https://lkml.kernel.org/r/20190308025616.21440-3-bhe@redhat.com
arch/x86/mm/kaslr.c