]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2b70cca2cd2aaf48ea32d0c35d3fd57876c03e2
tree3f88695ffdb9aacd44e4546c1a521160e55767ea
parent88a4ffc4f4cf14df84b8c7f252fbf2673dc8d7cd
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