From: David Vrabel Date: Tue, 12 Nov 2013 10:47:26 +0000 (+0100) Subject: x86: check kexec relocation code fits in a page X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5989 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1fab023d3f58ed2b40c90c0d9cd078c3afcbcfc7;p=xen.git x86: check kexec relocation code fits in a page The kexec relocation (control) code must fit in a single page so add a link time check for this. Signed-off-by: David Vrabel Reviewed-by: Andrew Cooper Reviewed-by: Don Slutz Tested-by: Don Slutz Reviewed-by: Daniel Kiper Tested-by: Daniel Kiper Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 9600cdf19e..17db361dda 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -198,3 +198,5 @@ SECTIONS .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } } + +ASSERT(kexec_reloc_size - kexec_reloc <= PAGE_SIZE, "kexec_reloc is too large")