[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] BUG: using smp_processor_id() in preemptible [00000000] code: blkback.1.xvdb/9138 caller is decrease_reservation



On Tue, Sep 10, 2013 at 08:13:53PM +0200, Sander Eikelenboom wrote:
> Hi Wei,
> 
> Just back from holiday i tried running a new xen-unstable and linux kernel 
> (current Linus his tree + Konrad's last pull request merged on top).
> I saw a thread and patch about a bug_on in increase_reservation ... i'm 
> seeing the splat below in dom0 when guests get started.
> 

Are you talking about the latest pull request from Konrad?

<20130910124448.GA5038@xxxxxxxxxxxxxxxxxxx>

That branch doesn't have the patch for increase_reservation.

That branch does have another patch for decrease_reservation (04660bb5d0
"xen/balloon: don't set P2M entry for auto translated guest"), however I
don't think that patch is revalent here.

> I run with dom0 mem restricted (dom0_mem=1536M,max:1536M) and with 
> autoballoon="auto" in xl.conf, so afaik that should essentially disable 
> ballooning ?
> 
> --
> Sander
> 
> Sep 10 16:42:47 serveerstertje kernel: [  142.698231] BUG: using 
> smp_processor_id() in preemptible [00000000] code: blkback.1.xvdb/9138
> Sep 10 16:42:47 serveerstertje kernel: [  142.703854] caller is 
> decrease_reservation+0x260/0x3b0
> Sep 10 16:42:47 serveerstertje kernel: [  142.709355] CPU: 0 PID: 9138 Comm: 
> blkback.1.xvdb Not tainted 3.11.0-20130910 #1
> Sep 10 16:42:47 serveerstertje kernel: [  142.714956] Hardware name: MSI 
> MS-7640/890FXA-GD70 (MS-7640)  , BIOS V1.8B1 09/13/2010
> Sep 10 16:42:47 serveerstertje kernel: [  142.720714]  0000000000000000 
> ffff880058905958 ffffffff81a3e4e2 0000000000000006
> Sep 10 16:42:47 serveerstertje kernel: [  142.726541]  ffff880058905fd8 
> ffff880058905988 ffffffff81415725 ffff88005175a000
> Sep 10 16:42:47 serveerstertje kernel: [  142.732317]  0000000000000001 
> 0000000000000000 ffffea000145d680 ffff8800589059f8
> Sep 10 16:42:47 serveerstertje kernel: [  142.738068] Call Trace:
> Sep 10 16:42:47 serveerstertje kernel: [  142.743785]  [<ffffffff81a3e4e2>] 
> dump_stack+0x4f/0x84
> Sep 10 16:42:47 serveerstertje kernel: [  142.749525]  [<ffffffff81415725>] 
> debug_smp_processor_id+0xe5/0x100
> Sep 10 16:42:47 serveerstertje kernel: [  142.755291]  [<ffffffff814a6bc0>] 
> decrease_reservation+0x260/0x3b0
> Sep 10 16:42:47 serveerstertje kernel: [  142.761215]  [<ffffffff81a48025>] ? 
> _raw_spin_unlock_irqrestore+0x75/0xa0
> Sep 10 16:42:47 serveerstertje kernel: [  142.767081]  [<ffffffff814a714f>] 
> alloc_xenballooned_pages+0x6f/0xf0
> Sep 10 16:42:47 serveerstertje kernel: [  142.773018]  [<ffffffff8160c530>] 
> xen_blkbk_map+0x5f0/0x790

Blkback runs with kthread which is preemptible that would cause
debug_smp_processor_id to fail. (Cc Roger)

Wei.

> Sep 10 16:42:47 serveerstertje kernel: [  142.778869]  [<ffffffff810c23fe>] ? 
> finish_task_switch+0x7e/0xe0
> Sep 10 16:42:47 serveerstertje kernel: [  142.784859]  [<ffffffff810c23c1>] ? 
> finish_task_switch+0x41/0xe0
> Sep 10 16:42:47 serveerstertje kernel: [  142.790687]  [<ffffffff810a00a3>] ? 
> proc_do_cad_pid+0x53/0xb0
> Sep 10 16:42:47 serveerstertje kernel: [  142.796557]  [<ffffffff810e75ec>] ? 
> __lock_acquire+0x3dc/0x2040
> Sep 10 16:42:47 serveerstertje kernel: [  142.802506]  [<ffffffff810e5d1d>] ? 
> trace_hardirqs_on+0xd/0x10
> Sep 10 16:42:47 serveerstertje kernel: [  142.808322]  [<ffffffff810a3c1a>] ? 
> try_to_del_timer_sync+0x4a/0x60
> Sep 10 16:42:47 serveerstertje kernel: [  142.814136]  [<ffffffff810b0095>] ? 
> __queue_work+0x205/0x2c0
> Sep 10 16:42:47 serveerstertje kernel: [  142.819897]  [<ffffffff8160d790>] 
> dispatch_rw_block_io+0x560/0x8f0
> Sep 10 16:42:47 serveerstertje kernel: [  142.825716]  [<ffffffff816000a1>] ? 
> pm_wakeup_timer_fn+0x1/0x70
> Sep 10 16:42:47 serveerstertje kernel: [  142.831496]  [<ffffffff810e5bca>] ? 
> trace_hardirqs_on_caller+0xfa/0x240
> Sep 10 16:42:47 serveerstertje kernel: [  142.837295]  [<ffffffff8160e168>] 
> xen_blkif_schedule+0x618/0xf40
> Sep 10 16:42:47 serveerstertje kernel: [  142.843168]  [<ffffffff8160db50>] ? 
> xen_blkif_be_int+0x30/0x30
> Sep 10 16:42:47 serveerstertje kernel: [  142.848991]  [<ffffffff810b8c86>] 
> kthread+0xd6/0xe0
> Sep 10 16:42:47 serveerstertje kernel: [  142.854654]  [<ffffffff81a4822b>] ? 
> _raw_spin_unlock_irq+0x2b/0x70
> Sep 10 16:42:47 serveerstertje kernel: [  142.860336]  [<ffffffff810b8bb0>] ? 
> __init_kthread_worker+0x70/0x70
> Sep 10 16:42:47 serveerstertje kernel: [  142.865861]  [<ffffffff81a492bc>] 
> ret_from_fork+0x7c/0xb0
> Sep 10 16:42:47 serveerstertje kernel: [  142.871319]  [<ffffffff810b8bb0>] ? 
> __init_kthread_worker+0x70/0x70
> Sep 10 16:42:47 serveerstertje kernel: [  142.876804] BUG: using 
> smp_processor_id() in preemptible [00000000] code: blkback.1.xvdb/9138
> Sep 10 16:42:47 serveerstertje kernel: [  142.882369] caller is 
> decrease_reservation+0x125/0x3b0
> Sep 10 16:42:47 serveerstertje kernel: [  142.887924] CPU: 0 PID: 9138 Comm: 
> blkback.1.xvdb Not tainted 3.11.0-20130910 #1
> Sep 10 16:42:47 serveerstertje kernel: [  142.893571] Hardware name: MSI 
> MS-7640/890FXA-GD70 (MS-7640)  , BIOS V1.8B1 09/13/2010
> Sep 10 16:42:47 serveerstertje kernel: [  142.899206]  0000000000000000 
> ffff880058905958 ffffffff81a3e4e2 0000000000000006
> Sep 10 16:42:47 serveerstertje kernel: [  142.904997]  ffff880058905fd8 
> ffff880058905988 ffffffff81415725 0000000000000000
> Sep 10 16:42:47 serveerstertje kernel: [  142.910729]  0000000000000001 
> 0000000000000000 ffff8800520af000 ffff8800589059f8
> Sep 10 16:42:47 serveerstertje kernel: [  142.916475] Call Trace:
> Sep 10 16:42:47 serveerstertje kernel: [  142.922175]  [<ffffffff81a3e4e2>] 
> dump_stack+0x4f/0x84
> Sep 10 16:42:47 serveerstertje kernel: [  142.927914]  [<ffffffff81415725>] 
> debug_smp_processor_id+0xe5/0x100
> Sep 10 16:42:47 serveerstertje kernel: [  142.933629]  [<ffffffff814a6a85>] 
> decrease_reservation+0x125/0x3b0
> Sep 10 16:42:47 serveerstertje kernel: [  142.939459]  [<ffffffff81a48025>] ? 
> _raw_spin_unlock_irqrestore+0x75/0xa0
> Sep 10 16:42:47 serveerstertje kernel: [  142.945300]  [<ffffffff814a714f>] 
> alloc_xenballooned_pages+0x6f/0xf0
> Sep 10 16:42:47 serveerstertje kernel: [  142.951210]  [<ffffffff8160c530>] 
> xen_blkbk_map+0x5f0/0x790
> Sep 10 16:42:47 serveerstertje kernel: [  142.957099]  [<ffffffff810c0001>] ? 
> add_range+0x1/0x30
> Sep 10 16:42:47 serveerstertje kernel: [  142.963068]  [<ffffffff810a00a3>] ? 
> proc_do_cad_pid+0x53/0xb0
> Sep 10 16:42:47 serveerstertje kernel: [  142.968972]  [<ffffffff810e75ec>] ? 
> __lock_acquire+0x3dc/0x2040
> Sep 10 16:42:47 serveerstertje kernel: [  142.974877]  [<ffffffff810e5d1d>] ? 
> trace_hardirqs_on+0xd/0x10
> Sep 10 16:42:47 serveerstertje kernel: [  142.980837]  [<ffffffff810a3c1a>] ? 
> try_to_del_timer_sync+0x4a/0x60
> Sep 10 16:42:47 serveerstertje kernel: [  142.986747]  [<ffffffff810b0095>] ? 
> __queue_work+0x205/0x2c0
> Sep 10 16:42:47 serveerstertje kernel: [  142.992620]  [<ffffffff8160d790>] 
> dispatch_rw_block_io+0x560/0x8f0
> Sep 10 16:42:47 serveerstertje kernel: [  142.998551]  [<ffffffff816000a1>] ? 
> pm_wakeup_timer_fn+0x1/0x70
> Sep 10 16:42:47 serveerstertje kernel: [  143.004468]  [<ffffffff810e5bca>] ? 
> trace_hardirqs_on_caller+0xfa/0x240
> Sep 10 16:42:47 serveerstertje kernel: [  143.010460]  [<ffffffff8160e168>] 
> xen_blkif_schedule+0x618/0xf40
> Sep 10 16:42:47 serveerstertje kernel: [  143.016379]  [<ffffffff8160db50>] ? 
> xen_blkif_be_int+0x30/0x30

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.