x86/mm/64: Enable KASLR for vmemmap memory region
authorThomas Garnier <thgarnie@google.com>
Wed, 27 Jul 2016 15:59:56 +0000 (08:59 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Aug 2016 14:10:06 +0000 (16:10 +0200)
commit25dfe4785332723f09311dcb7fd91015a60c022f
treee0ad0069ea8ea332883b8d96f5998cd966a9eb39
parent404f6aac9b3ef595735feca99979db084ea48315
x86/mm/64: Enable KASLR for vmemmap memory region

Add vmemmap in the list of randomized memory regions.

The vmemmap region holds a representation of the physical memory (through
a struct page array). An attacker could use this region to disclose the
kernel memory layout (walking the page linked list).

Signed-off-by: Thomas Garnier <thgarnie@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-hardening@lists.openwall.com
Link: http://lkml.kernel.org/r/1469635196-122447-1-git-send-email-thgarnie@google.com
[ Minor edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/kaslr.h
arch/x86/include/asm/pgtable_64_types.h
arch/x86/mm/kaslr.c