[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH v3 11/11] x86: Add Xen kexec control code size check to linker script
- To: andrew.cooper3@xxxxxxxxxx, ebiederm@xxxxxxxxxxxx, hpa@xxxxxxxxx, jbeulich@xxxxxxxx, konrad.wilk@xxxxxxxxxx, maxim.uvarov@xxxxxxxxxx, mingo@xxxxxxxxxx, tglx@xxxxxxxxxxxxx, vgoyal@xxxxxxxxxx, x86@xxxxxxxxxx, kexec@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
- From: Daniel Kiper <daniel.kiper@xxxxxxxxxx>
- Date: Thu, 27 Dec 2012 03:19:00 +0100
- Cc: Daniel Kiper <daniel.kiper@xxxxxxxxxx>
- Delivery-date: Thu, 27 Dec 2012 02:21:45 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
Add Xen kexec control code size check to linker script.
Signed-off-by: Daniel Kiper <daniel.kiper@xxxxxxxxxx>
---
arch/x86/kernel/vmlinux.lds.S | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index 22a1530..f18786a 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -360,5 +360,10 @@ INIT_PER_CPU(irq_stack_union);
. = ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE,
"kexec control code size is too big");
-#endif
+#ifdef CONFIG_XEN
+. = ASSERT(xen_kexec_control_code_size - xen_relocate_kernel <=
+ KEXEC_CONTROL_CODE_MAX_SIZE,
+ "Xen kexec control code size is too big");
+#endif
+#endif
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|