[ 39.745553][ C3] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 39.746007][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 39.746265][ C3] preempt_count: 101, expected: 0 [ 39.746435][ C3] RCU nest depth: 0, expected: 0 [ 39.746861][ C3] 1 lock held by swapper/3/0: [ 39.747066][ C3] #0: ffffffffad777c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 39.747407][ C3] Preemption disabled at: [ 39.747408][ C3] [<0000000000000000>] 0x0 [ 39.747739][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 39.747742][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 39.747744][ C3] Call Trace: [ 39.747746][ C3] [ 39.747747][ C3] dump_stack_lvl+0x6f/0xa0 [ 39.747754][ C3] __might_resched.cold+0x20d/0x2d6 [ 39.747757][ C3] ? default_idle_call+0x6e/0xb0 [ 39.747762][ C3] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 39.747765][ C3] ? start_secondary+0x204/0x2b0 [ 39.747770][ C3] __mutex_lock+0x118/0x2010 [ 39.747773][ C3] ? validate_chain+0x38b/0xc20 [ 39.747775][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.747781][ C3] ? ww_mutex_lock+0x160/0x160 [ 39.747782][ C3] ? __lock_acquire+0x508/0xc10 [ 39.747788][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 39.747792][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.747794][ C3] __tcf_chain_put+0x5f/0xb20 [ 39.747796][ C3] ? free_percpu.part.0+0x5f7/0xc80 [ 39.747802][ C3] tcf_action_rcu_free+0x14f/0x1a0 [ 39.747804][ C3] ? rcu_do_batch+0x2b4/0x1020 [ 39.747806][ C3] rcu_do_batch+0x2b6/0x1020 [ 39.747809][ C3] ? lock_acquire.part.0+0xbc/0x260 [ 39.747813][ C3] ? trace_rcu_batch_end+0x330/0x330 [ 39.747816][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 39.747819][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 39.747821][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 39.747822][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 39.747824][ C3] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 39.747826][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 39.747830][ C3] rcu_core+0x2bf/0x640 [ 39.747832][ C3] handle_softirqs+0x1d8/0x940 [ 39.747835][ C3] ? find_held_lock+0x2b/0x80 [ 39.747839][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 39.747841][ C3] ? _local_bh_enable+0xd0/0xd0 [ 39.747845][ C3] __irq_exit_rcu+0x103/0x1c0 [ 39.747847][ C3] irq_exit_rcu+0xe/0x30 [ 39.747849][ C3] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 39.747851][ C3] [ 39.747852][ C3] [ 39.747852][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.747855][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.747857][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 39.747860][ C3] Code: 48 8b 3d 44 d3 00 02 e8 1f 00 00 00 48 2b 05 c8 71 a3 00 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa eb 07 0f 00 2d 43 f4 22 00 fb f4 0f 1f 40 d6 48 83 ec 20 8b 17 49 89 f8 83 e2 fe 41 89 d2 0f 01 [ 39.747862][ C3] RSP: 0018:ffa0000000167de8 EFLAGS: 00000296 [ 39.747864][ C3] RAX: 0000000000191dd1 RBX: ff11000001bd0040 RCX: ffffffffaa4d9667 [ 39.747865][ C3] RDX: ff11000001bd0040 RSI: ffffffffad201bcb RDI: ffffffffacc6f6c0 [ 39.747866][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 39.747867][ C3] R10: 0000000000000003 R11: 0000000000000001 R12: 1ff400000002cfc0 [ 39.747868][ C3] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 39.747871][ C3] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 39.747876][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 39.747878][ C3] default_idle+0x9/0x10 [ 39.747879][ C3] default_idle_call+0x6e/0xb0 [ 39.747881][ C3] cpuidle_idle_call.constprop.0+0x237/0x410 [ 39.747883][ C3] ? arch_cpu_idle_exit+0x40/0x40 [ 39.747886][ C3] ? mark_tsc_async_resets+0x30/0x30 [ 39.747888][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.747891][ C3] do_idle+0xf5/0x160 [ 39.747894][ C3] cpu_startup_entry+0x53/0x70 [ 39.747895][ C3] start_secondary+0x204/0x2b0 [ 39.747898][ C3] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 39.747902][ C3] common_startup_64+0x13e/0x148 [ 39.747910][ C3] [ 39.747911][ C3] [ 39.756344][ C3] ============================= [ 39.756480][ C3] [ BUG: Invalid wait context ] [ 39.756627][ C3] 7.1.0-rc5-virtme #1 Tainted: G W [ 39.756802][ C3] ----------------------------- [ 39.756942][ C3] swapper/3/0 is trying to lock: [ 39.757080][ C3] ff11000004ee68b0 (&block->lock){+.+.}-{4:4}, at: __tcf_chain_put+0x5f/0xb20 [ 39.757318][ C3] other info that might help us debug this: [ 39.757491][ C3] context-{3:3} [ 39.757599][ C3] 1 lock held by swapper/3/0: [ 39.757733][ C3] #0: ffffffffad777c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 39.757975][ C3] stack backtrace: [ 39.758047][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 7.1.0-rc5-virtme #1 PREEMPT(full) [ 39.758050][ C3] Tainted: [W]=WARN [ 39.758050][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 39.758051][ C3] Call Trace: [ 39.758052][ C3] [ 39.758053][ C3] dump_stack_lvl+0x6f/0xa0 [ 39.758056][ C3] __lock_acquire.cold+0x3a/0x66 [ 39.758058][ C3] ? common_startup_64+0x13e/0x148 [ 39.758060][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.758062][ C3] lock_acquire.part.0+0xbc/0x260 [ 39.758064][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.758066][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.758068][ C3] ? lock_acquire+0x134/0x160 [ 39.758069][ C3] __mutex_lock+0x1ae/0x2010 [ 39.758071][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.758073][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.758075][ C3] ? ww_mutex_lock+0x160/0x160 [ 39.758076][ C3] ? __lock_acquire+0x508/0xc10 [ 39.758079][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 39.758081][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 39.758082][ C3] __tcf_chain_put+0x5f/0xb20 [ 39.758084][ C3] ? free_percpu.part.0+0x5f7/0xc80 [ 39.758087][ C3] tcf_action_rcu_free+0x14f/0x1a0 [ 39.758088][ C3] ? rcu_do_batch+0x2b4/0x1020 [ 39.758090][ C3] rcu_do_batch+0x2b6/0x1020 [ 39.758092][ C3] ? lock_acquire.part.0+0xbc/0x260 [ 39.758094][ C3] ? trace_rcu_batch_end+0x330/0x330 [ 39.758096][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 39.758099][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 39.758100][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 39.758101][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 39.758103][ C3] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 39.758105][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 39.758107][ C3] rcu_core+0x2bf/0x640 [ 39.758109][ C3] handle_softirqs+0x1d8/0x940 [ 39.758111][ C3] ? find_held_lock+0x2b/0x80 [ 39.758113][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 39.758114][ C3] ? _local_bh_enable+0xd0/0xd0 [ 39.758116][ C3] __irq_exit_rcu+0x103/0x1c0 [ 39.758118][ C3] irq_exit_rcu+0xe/0x30 [ 39.758119][ C3] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 39.758121][ C3] [ 39.758122][ C3] [ 39.758122][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.758124][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.758126][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 39.758128][ C3] Code: 48 8b 3d 44 d3 00 02 e8 1f 00 00 00 48 2b 05 c8 71 a3 00 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa eb 07 0f 00 2d 43 f4 22 00 fb f4 0f 1f 40 d6 48 83 ec 20 8b 17 49 89 f8 83 e2 fe 41 89 d2 0f 01 [ 39.758129][ C3] RSP: 0018:ffa0000000167de8 EFLAGS: 00000296 [ 39.758130][ C3] RAX: 0000000000191dd1 RBX: ff11000001bd0040 RCX: ffffffffaa4d9667 [ 39.758131][ C3] RDX: ff11000001bd0040 RSI: ffffffffad201bcb RDI: ffffffffacc6f6c0 [ 39.758132][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 39.758133][ C3] R10: 0000000000000003 R11: 0000000000000001 R12: 1ff400000002cfc0 [ 39.758133][ C3] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 39.758135][ C3] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 39.758137][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 39.758139][ C3] default_idle+0x9/0x10 [ 39.758140][ C3] default_idle_call+0x6e/0xb0 [ 39.758142][ C3] cpuidle_idle_call.constprop.0+0x237/0x410 [ 39.758144][ C3] ? arch_cpu_idle_exit+0x40/0x40 [ 39.758145][ C3] ? mark_tsc_async_resets+0x30/0x30 [ 39.758147][ C3] ? rcu_is_watching+0x15/0xd0 [ 39.758148][ C3] do_idle+0xf5/0x160 [ 39.758150][ C3] cpu_startup_entry+0x53/0x70 [ 39.758151][ C3] start_secondary+0x204/0x2b0 [ 39.758153][ C3] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 39.758155][ C3] common_startup_64+0x13e/0x148 [ 39.758158][ C3]