From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 09/10] x86: check kexec relocation code fits in a page Date: Tue, 25 Jun 2013 10:31:25 +0100 Message-ID: <51C9636D.70703@citrix.com> References: <1372095741-27012-1-git-send-email-david.vrabel@citrix.com> <1372095741-27012-10-git-send-email-david.vrabel@citrix.com> <51C9720702000078000E03A3@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51C9720702000078000E03A3@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Daniel Kiper , Keir Fraser , David Vrabel , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 25/06/13 09:33, Jan Beulich wrote: >>>> On 24.06.13 at 19:42, David Vrabel wrote: >> --- a/xen/arch/x86/xen.lds.S >> +++ b/xen/arch/x86/xen.lds.S >> @@ -186,3 +186,7 @@ SECTIONS >> .stab.indexstr 0 : { *(.stab.indexstr) } >> .comment 0 : { *(.comment) } >> } >> + >> +#ifdef CONFIG_KEXEC >> +ASSERT(__kexec_reloc_size <= PAGE_SIZE, "kexec control code is too large") >> +#endif > I don't recall having seen a mechanism to disable CONFIG_KEXEC, so > why the conditional? > > Jan CONFIG_KEXEC exists in include/asm-x86/config.h, but it turns out not to compile if you disable it. I for one would not mind in the slightest if CONFIG_KEXEC disappeared. ~Andrew > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel