From: M A Young Subject: Re: Re: Continuing problems booting Date: Sun, 22 Feb 2009 14:58:07 +0000 (GMT) Message-ID: References: <49A0F68D.9070306@goop.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. Michael Young