From: "Michael Marineau" Subject: Re: Hunting down an oops in Xen 3.1.0's 2.6.18 kernel Date: Mon, 17 Sep 2007 16:56:21 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13967_4338534.1190073381966" 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ------=_Part_13967_4338534.1190073381966 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/15/07, Keir Fraser wrote: > On 14/9/07 23:51, "Michael Marineau" wrote: > > > I have been unable to reproduce this with 3.0.4's 2.6.16 kernel but > > 2.6.18 will oops on both 3.0.4 and 3.1.0. Also, x86_64 appears to be > > ok. > > > > I'm guessing this issue is the same as the oops reported here: > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=975 > > > > Below is an example of the oops on my 2.6.18 pae kernel with a couple > > extra debuging lines added: > > Looks like xen_l1_entry_update() is passed a virtual address which has no > corresponding machine address. So the pte page or its mapping is corrupted > somehow. deadbeef in the register dumps is also not a good sign. I'll have a > go at repro'ing. > > -- Keir > > > As for the deadbeef, I'm kind of doubt it is important. Those values show up after the hypercall to xen. Using the attached patch which checks for the bogus value prior to the call I get the following oops: virtptr: f57b40c0 machineptr: 7fffffff0c0 ------------[ cut here ]------------ kernel BUG at arch/i386/mm/hypervisor.c:64! invalid opcode: 0000 [#1] SMP Modules linked in: CPU: 0 EIP: 0061:[] Not tainted VLI EFLAGS: 00010286 (2.6.18-xen-r5-try2 #10) EIP is at xen_l1_entry_update+0xd7/0x100 eax: 0000002d ebx: 00000000 ecx: 00000000 edx: 00000001 esi: fffff0c0 edi: 000007ff ebp: ed45cd10 esp: ed45ccd8 ds: 007b es: 007b ss: 0069 Process bash (pid: 5044, ti=ed45c000 task=ec835a70 task.ti=ed45c000) Stack: c037b964 f57b40c0 fffff0c0 000007ff 00000000 00000000 f57b40c0 fffff0c0 000007ff 00000000 00000000 00000000 00000000 00000000 ed45cd84 c01586b7 35371025 00000000 ecd95ec0 ecd95f08 c04bce70 00000000 00000004 00000000 Call Trace: [] zap_pte_range+0x265/0x658 [] unmap_page_range+0x16c/0x2b4 [] unmap_vmas+0xce/0x1cb [] exit_mmap+0x7d/0xf4 [] mmput+0x36/0x8c [] exec_mmap+0x156/0x229 [] flush_old_exec+0x59/0x25a [] load_elf_binary+0x33c/0xc52 [] search_binary_handler+0x89/0x23c [] do_execve+0x152/0x1be [] sys_execve+0x32/0x84 [] syscall_call+0x7/0xb [] 0xb7efd899 Code: b4 97 fe ff 85 c0 78 42 83 c4 2c 5b 5e 5f 5d c3 8b 45 e0 89 74 24 08 89 7c 24 0 EIP: [] xen_l1_entry_update+0xd7/0x100 SS:ESP 0069:ed45ccd8 -- Michael Marineau Oregon State University mike@marineau.org ------=_Part_13967_4338534.1190073381966 Content-Type: application/octet-stream; name="bogus-ptr-check.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bogus-ptr-check.patch" X-Attachment-Id: f_f6pmwdmb SW5kZXg6IGxpbnV4LTIuNi4xOC14ZW4tcjUvYXJjaC9pMzg2L21tL2h5cGVydmlzb3IuYwo9PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09Ci0tLSBsaW51eC0yLjYuMTgteGVuLXI1Lm9yaWcvYXJjaC9pMzg2L21tL2h5cGVydmlz b3IuYworKysgbGludXgtMi42LjE4LXhlbi1yNS9hcmNoL2kzODYvbW0vaHlwZXJ2aXNvci5jCkBA IC01OSw2ICs1OSwxMCBAQCB2b2lkIHhlbl9sMV9lbnRyeV91cGRhdGUocHRlX3QgKnB0ciwgcHRl CiAJbW11X3VwZGF0ZV90IHU7CiAJdS5wdHIgPSB2aXJ0X3RvX21hY2hpbmUocHRyKTsKIAl1LnZh bCA9IHB0ZV92YWxfbWEodmFsKTsKKwlpZiAoKHUucHRyICYgMHg3ZmZmZmZmZjAwMFVMTCkgPT0g MHg3ZmZmZmZmZjAwMFVMTCkgeworCQlwcmludGsoS0VSTl9FTUVSRyAidmlydHB0cjogJXAgbWFj aGluZXB0cjogJWxseFxuIiwgcHRyLCB1LnB0cik7CisJCUJVRygpOworCX0KIAlCVUdfT04oSFlQ RVJWSVNPUl9tbXVfdXBkYXRlKCZ1LCAxLCBOVUxMLCBET01JRF9TRUxGKSA8IDApOwogfQogCg== ------=_Part_13967_4338534.1190073381966 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_Part_13967_4338534.1190073381966--