x86/KASLR: Improve comments around the mem_avoid[] logic
commited09acde44e301b5c13755ab84821fa44b188b5e
authorKees Cook <keescook@chromium.org>
Fri, 6 May 2016 19:44:59 +0000 (6 12:44 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 7 May 2016 05:38:38 +0000 (7 07:38 +0200)
treee365999f82240d43fb7daf7274af16d86bcff804
parent549f90db68c9f8e21a40ec21c8047441984e7164
x86/KASLR: Improve comments around the mem_avoid[] logic

This attempts to improve the comments that describe how the memory
range used for decompression is avoided. Additionally uses an enum
instead of raw numbers for the mem_avoid[] indexing.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/20160506194459.GA16480@www.outflux.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/kaslr.c