From: Vincent Bernardoff Subject: Re: Crashing kernel with dom0/libxc gnttab/gntshr Date: Tue, 30 Jul 2013 16:50:06 +0100 Message-ID: <51F7E0AE.4060605@luminar.eu.org> References: <51F79A58.5060004@citrix.com> <1375181944.11701.102.camel@kazak.uk.xensource.com> <51F7C280.6040703@luminar.eu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030406020104040204090004" Return-path: In-Reply-To: <51F7C280.6040703@luminar.eu.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------030406020104040204090004 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I also have a bug using tools/libvchan/vchan-node1: When killing the server node (sudo ./vchan-node1 server read 0 /local/domain/0/vchan) before the client node (sudo ./vchan-node1 client write 0 /local/domain/0/vchan), the following dmesg error appears. I'm using Xen unstable (master branch) and stock Archlinux 3.10.3-1-ARCH kernel. Use the following script (setup.sh) if you want to try reproducing it with vchan-node1, vchan-node1 indeed needs some xenstore keys to be written in order to work correctly. --------------030406020104040204090004 Content-Type: text/x-log; name="dmesg-vchan.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmesg-vchan.log" [ 902.729307] BUG: Bad page map in process vchan-node1 pte:12bfff167 pmd:b9b5c067 [ 902.729312] page:ffffea0004afffc0 count:1 mapcount:-1 mapping: (null) index:0xffffffffffffffff [ 902.729314] page flags: 0x2fc000000000c14(referenced|dirty|reserved|private) [ 902.729319] addr:00007f02aab28000 vm_flags:140400fb anon_vma: (null) mapping:ffff88011472a908 index:0 [ 902.729320] vma->vm_ops->fault: (null) [ 902.729332] vma->vm_file->f_op->mmap: gntalloc_mmap+0x0/0x1d0 [xen_gntalloc] [ 902.729335] CPU: 1 PID: 2785 Comm: vchan-node1 Not tainted 3.10.3-1-ARCH #1 [ 902.729337] Hardware name: Dell Inc. Precision WorkStation T3400 /0TP412, BIOS A05 05/09/2008 [ 902.729338] ffff88009b4e45c0 ffff88009d537ae8 ffffffff814bd2df ffff88009d537b30 [ 902.729341] ffffffff81146404 ffffea0004afffc0 ffff88011472a908 ffff8800b9b5c940 [ 902.729344] ffffea0004afffc0 00007f02aab29000 ffff88009d537c58 00007f02aab28000 [ 902.729346] Call Trace: [ 902.729352] [] dump_stack+0x19/0x1b [ 902.729356] [] print_bad_pte+0x1b4/0x270 [ 902.729359] [] unmap_single_vma+0x803/0x8d0 [ 902.729363] [] ? __xen_pgd_unpin+0x105/0x290 [ 902.729365] [] unmap_vmas+0x49/0x90 [ 902.729368] [] exit_mmap+0x98/0x170 [ 902.729370] [] ? xen_hypercall_xen_version+0xb/0x20 [ 902.729374] [] mmput+0x59/0x120 [ 902.729377] [] do_exit+0x27f/0xab0 [ 902.729380] [] ? xen_irq_enable_direct_reloc+0x4/0x4 [ 902.729382] [] ? _raw_spin_unlock_irq+0xf/0x50 [ 902.729386] [] ? finish_task_switch+0x49/0xe0 [ 902.729388] [] do_group_exit+0x3f/0xa0 [ 902.729391] [] get_signal_to_deliver+0x2ad/0x610 [ 902.729394] [] do_signal+0x48/0x8b0 [ 902.729397] [] ? _raw_spin_lock_irqsave+0x1a/0x50 [ 902.729399] [] ? _raw_spin_lock_irqsave+0x1a/0x50 [ 902.729401] [] ? _raw_spin_unlock_irqrestore+0x12/0x50 [ 902.729404] [] ? finish_wait+0x58/0x70 [ 902.729408] [] ? evtchn_read+0x229/0x240 [xen_evtchn] [ 902.729410] [] ? wake_up_bit+0x30/0x30 [ 902.729413] [] do_notify_resume+0x68/0xa0 [ 902.729415] [] int_signal+0x12/0x17 [ 902.729417] Disabling lock debugging due to kernel taint [ 902.729458] BUG: Bad page state in process vchan-node1 pfn:12bfff [ 902.729460] page:ffffea0004afffc0 count:0 mapcount:-1 mapping: (null) index:0xffffffffffffffff [ 902.729462] page flags: 0x2fc000000000c14(referenced|dirty|reserved|private) [ 902.729465] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_analog iTCO_wdt iTCO_vendor_support gpio_ich dcdbas ppdev snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer evdev snd sou ndcore x38_edac edac_core mperf coretemp microcode radeon psmouse pcspkr ttm serio_raw drm_kms_helper tg3 drm i2c_i801 i2c_algo_bit i2c_core ptp lpc_ich pps_core libphy xenfs xen_privcmd processor button parpo rt_pc parport xen_pciback xen_netback xen_blkback xen_gntalloc xen_gntdev xen_evtchn nfs lockd sunrpc fscache ext4 crc16 mbcache jbd2 hid_generic usbhid hid sr_mod cdrom sd_mod ahci libahci libata scsi_mod uhc i_hcd ehci_pci ehci_hcd usbcore usb_common [ 902.729501] CPU: 1 PID: 2785 Comm: vchan-node1 Tainted: G B 3.10.3-1-ARCH #1 [ 902.729503] Hardware name: Dell Inc. Precision WorkStation T3400 /0TP412, BIOS A05 05/09/2008 [ 902.729504] 00fc000000000000 ffff88009d537a78 ffffffff814bd2df ffff88009d537a90 [ 902.729506] ffffffff81128f6c 0000000000000000 ffff88009d537ad0 ffffffff81129140 [ 902.729508] ffffea0004afffc0 ffffea0004afffc0 02fc000000000c14 0000000000000000 [ 902.729511] Call Trace: [ 902.729514] [] dump_stack+0x19/0x1b [ 902.729517] [] bad_page.part.62+0x9c/0xf0 [ 902.729520] [] free_pages_prepare+0x180/0x1a0 [ 902.729522] [] free_hot_cold_page+0x31/0x150 [ 902.729525] [] free_hot_cold_page_list+0x5e/0xe0 [ 902.729528] [] release_pages+0x1d8/0x210 [ 902.729530] [] free_pages_and_swap_cache+0xad/0xd0 [ 902.729533] [] tlb_flush_mmu.part.44+0x4c/0x90 [ 902.729535] [] tlb_finish_mmu+0x55/0x60 [ 902.729537] [] exit_mmap+0xc7/0x170 [ 902.729540] [] ? xen_hypercall_xen_version+0xa/0x20 [ 902.729542] [] mmput+0x59/0x120 [ 902.729545] [] do_exit+0x27f/0xab0 [ 902.729547] [] ? xen_irq_enable_direct_reloc+0x4/0x4 [ 902.729550] [] ? _raw_spin_unlock_irq+0xf/0x50 [ 902.729552] [] ? finish_task_switch+0x49/0xe0 [ 902.729555] [] do_group_exit+0x3f/0xa0 [ 902.729557] [] get_signal_to_deliver+0x2ad/0x610 [ 902.729560] [] do_signal+0x48/0x8b0 [ 902.729562] [] ? _raw_spin_lock_irqsave+0x1a/0x50 [ 902.729564] [] ? _raw_spin_lock_irqsave+0x1a/0x50 [ 902.729566] [] ? _raw_spin_unlock_irqrestore+0x12/0x50 [ 902.729569] [] ? finish_wait+0x58/0x70 [ 902.729572] [] ? evtchn_read+0x229/0x240 [xen_evtchn] [ 902.729575] [] ? wake_up_bit+0x30/0x30 [ 902.729577] [] do_notify_resume+0x68/0xa0 [ 902.729579] [] int_signal+0x12/0x17 --------------030406020104040204090004 Content-Type: application/x-shellscript; name="setup.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="setup.sh" IyEvdXNyL2Jpbi9lbnYgYmFzaAoKc2V0ICt4Cgp4ZW5zdG9yZS13cml0ZSAvbG9jYWwvZG9t YWluLzAvdmNoYW4gIiIKeGVuc3RvcmUtd3JpdGUgL2xvY2FsL2RvbWFpbi8wL2RvbWlkIDAK CmVjaG8gIkRvbmUgd3JpdGluZyBzb21lIHhlbnN0b3JlIGtleXMuIgo= --------------030406020104040204090004 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.xen.org http://lists.xen.org/xen-devel --------------030406020104040204090004--