Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, relocs: Move __vvar_page from S_ABS to S_REL

The __vvar_page relocation should actually be listed in S_REL instead
of S_ABS. Oddly, this didn't always cause things to break, presumably
because there are no users for relocation information on 64 bits yet.

[ hpa: Not for stable - new code in 3.10 ]

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/20130611185652.GA23674@www.outflux.net
Reported-by: Michael Davidson <md@google.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by

Kees Cook and committed by
H. Peter Anvin
b1983b0a 7de3d66b

+1 -3
+1 -3
arch/x86/tools/relocs.c
··· 42 42 "^(xen_irq_disable_direct_reloc$|" 43 43 "xen_save_fl_direct_reloc$|" 44 44 "VDSO|" 45 - #if ELF_BITS == 64 46 - "__vvar_page|" 47 - #endif 48 45 "__crc_)", 49 46 50 47 /* ··· 69 72 "__per_cpu_load|" 70 73 "init_per_cpu__.*|" 71 74 "__end_rodata_hpage_align|" 75 + "__vvar_page|" 72 76 #endif 73 77 "_end)$" 74 78 };