From: Vincent Bernardoff <vb@luminar.eu.org>
To: xen-devel@lists.xen.org
Subject: Re: Crashing kernel with dom0/libxc gnttab/gntshr
Date: Tue, 30 Jul 2013 16:50:06 +0100 [thread overview]
Message-ID: <51F7E0AE.4060605@luminar.eu.org> (raw)
In-Reply-To: <51F7C280.6040703@luminar.eu.org>
[-- Attachment #1: Type: text/plain, Size: 518 bytes --]
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.
[-- Attachment #2: dmesg-vchan.log --]
[-- Type: text/x-log, Size: 5709 bytes --]
[ 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] [<ffffffff814bd2df>] dump_stack+0x19/0x1b
[ 902.729356] [<ffffffff81146404>] print_bad_pte+0x1b4/0x270
[ 902.729359] [<ffffffff811480c3>] unmap_single_vma+0x803/0x8d0
[ 902.729363] [<ffffffff8100a605>] ? __xen_pgd_unpin+0x105/0x290
[ 902.729365] [<ffffffff811492f9>] unmap_vmas+0x49/0x90
[ 902.729368] [<ffffffff81152168>] exit_mmap+0x98/0x170
[ 902.729370] [<ffffffff8100122b>] ? xen_hypercall_xen_version+0xb/0x20
[ 902.729374] [<ffffffff81052b59>] mmput+0x59/0x120
[ 902.729377] [<ffffffff8105b23f>] do_exit+0x27f/0xab0
[ 902.729380] [<ffffffff8100bfd9>] ? xen_irq_enable_direct_reloc+0x4/0x4
[ 902.729382] [<ffffffff814c2a6f>] ? _raw_spin_unlock_irq+0xf/0x50
[ 902.729386] [<ffffffff81085a49>] ? finish_task_switch+0x49/0xe0
[ 902.729388] [<ffffffff8105baef>] do_group_exit+0x3f/0xa0
[ 902.729391] [<ffffffff8106a35d>] get_signal_to_deliver+0x2ad/0x610
[ 902.729394] [<ffffffff81013498>] do_signal+0x48/0x8b0
[ 902.729397] [<ffffffff814c280a>] ? _raw_spin_lock_irqsave+0x1a/0x50
[ 902.729399] [<ffffffff814c280a>] ? _raw_spin_lock_irqsave+0x1a/0x50
[ 902.729401] [<ffffffff814c2a22>] ? _raw_spin_unlock_irqrestore+0x12/0x50
[ 902.729404] [<ffffffff8107b2d8>] ? finish_wait+0x58/0x70
[ 902.729408] [<ffffffffa03a26d9>] ? evtchn_read+0x229/0x240 [xen_evtchn]
[ 902.729410] [<ffffffff8107b400>] ? wake_up_bit+0x30/0x30
[ 902.729413] [<ffffffff81013d68>] do_notify_resume+0x68/0xa0
[ 902.729415] [<ffffffff814caa1a>] 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] [<ffffffff814bd2df>] dump_stack+0x19/0x1b
[ 902.729517] [<ffffffff81128f6c>] bad_page.part.62+0x9c/0xf0
[ 902.729520] [<ffffffff81129140>] free_pages_prepare+0x180/0x1a0
[ 902.729522] [<ffffffff81129bb1>] free_hot_cold_page+0x31/0x150
[ 902.729525] [<ffffffff8112a12e>] free_hot_cold_page_list+0x5e/0xe0
[ 902.729528] [<ffffffff8112f428>] release_pages+0x1d8/0x210
[ 902.729530] [<ffffffff8115cddd>] free_pages_and_swap_cache+0xad/0xd0
[ 902.729533] [<ffffffff81146d0c>] tlb_flush_mmu.part.44+0x4c/0x90
[ 902.729535] [<ffffffff81146e95>] tlb_finish_mmu+0x55/0x60
[ 902.729537] [<ffffffff81152197>] exit_mmap+0xc7/0x170
[ 902.729540] [<ffffffff8100122a>] ? xen_hypercall_xen_version+0xa/0x20
[ 902.729542] [<ffffffff81052b59>] mmput+0x59/0x120
[ 902.729545] [<ffffffff8105b23f>] do_exit+0x27f/0xab0
[ 902.729547] [<ffffffff8100bfd9>] ? xen_irq_enable_direct_reloc+0x4/0x4
[ 902.729550] [<ffffffff814c2a6f>] ? _raw_spin_unlock_irq+0xf/0x50
[ 902.729552] [<ffffffff81085a49>] ? finish_task_switch+0x49/0xe0
[ 902.729555] [<ffffffff8105baef>] do_group_exit+0x3f/0xa0
[ 902.729557] [<ffffffff8106a35d>] get_signal_to_deliver+0x2ad/0x610
[ 902.729560] [<ffffffff81013498>] do_signal+0x48/0x8b0
[ 902.729562] [<ffffffff814c280a>] ? _raw_spin_lock_irqsave+0x1a/0x50
[ 902.729564] [<ffffffff814c280a>] ? _raw_spin_lock_irqsave+0x1a/0x50
[ 902.729566] [<ffffffff814c2a22>] ? _raw_spin_unlock_irqrestore+0x12/0x50
[ 902.729569] [<ffffffff8107b2d8>] ? finish_wait+0x58/0x70
[ 902.729572] [<ffffffffa03a26d9>] ? evtchn_read+0x229/0x240 [xen_evtchn]
[ 902.729575] [<ffffffff8107b400>] ? wake_up_bit+0x30/0x30
[ 902.729577] [<ffffffff81013d68>] do_notify_resume+0x68/0xa0
[ 902.729579] [<ffffffff814caa1a>] int_signal+0x12/0x17
[-- Attachment #3: setup.sh --]
[-- Type: application/x-shellscript, Size: 149 bytes --]
[-- Attachment #4: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-07-30 15:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 10:50 Crashing kernel with dom0/libxc gnttab/gntshr Vincent Bernardoff
2013-07-30 10:59 ` Ian Campbell
2013-07-30 13:41 ` Vincent Bernardoff
2013-07-30 15:50 ` Vincent Bernardoff [this message]
2013-07-30 15:55 ` Ian Campbell
2013-07-30 16:58 ` David Vrabel
2013-07-30 21:03 ` Daniel De Graaf
2013-08-02 13:50 ` Stefano Stabellini
2013-08-02 14:10 ` Ian Campbell
2013-08-02 16:49 ` Jeremy Fitzhardinge
2013-08-02 17:02 ` Stefano Stabellini
2013-08-03 10:06 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51F7E0AE.4060605@luminar.eu.org \
--to=vb@luminar.eu.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.