]> git.baikalelectronics.ru Git - kernel.git/commit
x86, boot: Skip relocs when load address unchanged
authorKees Cook <keescook@chromium.org>
Fri, 16 Jan 2015 00:51:46 +0000 (16:51 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Jan 2015 11:37:23 +0000 (12:37 +0100)
commitff6d802cdbaabcadd0aade2e22cf41484c6ff635
tree17d7cc4556d5a1b144b49f79064cdfa222789441
parent90faca054fa9f46357dd29589d61a27d3b73364d
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: Baoquan He <bhe@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Thomas 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: Thomas Gleixner <tglx@linutronix.de>
arch/x86/boot/compressed/misc.c