From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fldsmtpe03.verizon.com ([140.108.26.142]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ve8F2-0000Zp-B1 for kexec@lists.infradead.org; Wed, 06 Nov 2013 18:54:12 +0000 From: Don Slutz Message-ID: <527A8F9D.3030501@terremark.com> Date: Wed, 6 Nov 2013 13:51:09 -0500 MIME-Version: 1.0 Subject: Re: [Xen-devel] [PATCH 8/9] x86: check kexec relocation code fits in a page References: <1383749386-11891-1-git-send-email-david.vrabel@citrix.com> <1383749386-11891-9-git-send-email-david.vrabel@citrix.com> In-Reply-To: <1383749386-11891-9-git-send-email-david.vrabel@citrix.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: David Vrabel , xen-devel@lists.xen.org Cc: Daniel Kiper , kexec@lists.infradead.org, Jan Beulich Also Reviewed-by: Don Slutz -Don Slutz On 11/06/13 09:49, David Vrabel wrote: > From: David Vrabel > > 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 > --- > xen/arch/x86/xen.lds.S | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S > index 9600cdf..17db361 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") _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec