x86/asm, x86/microcode: Add __PAGE_OFFSET_BASE define on 32-bit
authorBorislav Petkov <bp@suse.de>
Wed, 27 Jul 2016 12:09:39 +0000 (14:09 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 Jul 2016 12:59:59 +0000 (14:59 +0200)
commit4a1a8e1b8f9f37bdbba416eb0a5ff3f47d31cb28
tree7e19f6082162f89cfa5edb8b82f365595f88afa8
parentdf15929f8f5c69e987c31bf016eca4a38dba46f0
x86/asm, x86/microcode: Add __PAGE_OFFSET_BASE define on 32-bit

... in order to avoid #ifdeffery in code computing the ASLR randomization
offset. Remove that #ifdeffery in the microcode loader.

Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolai Stange <nicstange@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Garnier <thgarnie@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160727120939.GA18911@nazgul.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/page_32_types.h
arch/x86/kernel/cpu/microcode/intel.c