Skip to content
Commit f285f4a2 authored by Kees Cook's avatar Kees Cook Committed by Thomas Gleixner
Browse files

x86, boot: Skip relocs when load address unchanged



On 64-bit, relocation is not required unless the load address gets
changed. Without this, relocations do unexpected things when the kernel
is above 4G.

Reported-by: default avatarBaoquan He <bhe@redhat.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarThomas D. <whissi@whissi.de>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Jan Beulich <JBeulich@suse.com>
Cc: Junjie Mao <eternal.n08@gmail.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20150116005146.GA4212@www.outflux.net


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 8abb850a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment