From: Jeremy Fitzhardinge Subject: Re: Re: Continuing problems booting Date: Sun, 22 Feb 2009 09:13:28 -0800 Message-ID: <49A187B8.7000902@goop.org> References: <49A0F68D.9070306@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: M A Young Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org M A Young wrote: > On Sun, 22 Feb 2009, M A Young wrote: > >> On Sat, 21 Feb 2009, Jeremy Fitzhardinge wrote: >> >>>> ... >>>> (XEN) d0:v0: unhandled page fault (ec=0000) >>>> (XEN) Pagetable walk from 0000000000000028: >>>> (XEN) L4[0x000] = 0000000000000000 ffffffffffffffff >>>> (XEN) domain_crash_sync called from entry.S >>>> (XEN) Domain 0 (vcpu#0) crashed on cpu#0: >>>> (XEN) ----[ Xen-3.3.1 x86_64 debug=n Not tainted ]---- >>>> (XEN) CPU: 0 >>>> (XEN) RIP: e033:[] >>> >>> What does this correspond to in the kernel? >>> >>> $ gdb vmlinux >>> (gdb) x/i 0xffffffff816c5315 >> >> 0xffffffff816c5315 : mov %gs:0x28,%rax > > This is from > 0xffffffff816c5305 : push %rbp > 0xffffffff816c5306 : mov %rsp,%rbp > 0xffffffff816c5309 : push %rbx > 0xffffffff816c530a : sub $0x18,%rsp > 0xffffffff816c530e : > mov 0x333e23(%rip),%rdi # 0xffffffff819f9138 > > 0xffffffff816c5315 : mov %gs:0x28,%rax > 0xffffffff816c531e : mov %rax,-0x18(%rbp) > 0xffffffff816c5322 : xor %eax,%eax > 0xffffffff816c5324 : test %rdi,%rdi > 0xffffffff816c5327 : > je 0xffffffff816c5827 > 0xffffffff816c532d : > movl $0x1,0x333df9(%rip) # 0xffffffff819f9130 > > ... > > which is generated if CONFIG_CC_STACKPROTECTOR=y (also > CONFIG_CC_OPTIMIZE_FOR_SIZE=y though I don't know is the latter is > important). If these aren't set, the compiler produces differnt code, > and the boot process gets a bit further before crashing. Hm, yes, I guess there's something to stop stack-protector from adding stuff to xen_start_kernel(). But I'm more interested in the crash you see when you have stack protector off. What are the symptoms? J