[ 1159.247137][ T5539] Mirror/redirect action on [ 1159.445358][ C3] [ 1159.445437][ C3] ================================ [ 1159.445531][ C3] WARNING: inconsistent lock state [ 1159.445621][ C3] 7.1.0-rc5-virtme #1 Not tainted [ 1159.445708][ C3] -------------------------------- [ 1159.445799][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 1159.445912][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 1159.446025][ C3] ffffffffc08477b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 1159.446217][ C3] {SOFTIRQ-ON-W} state was registered at: [ 1159.446304][ C3] __lock_acquire+0x378/0xc10 [ 1159.446402][ C3] lock_acquire.part.0+0xbc/0x260 [ 1159.446495][ C3] _raw_spin_lock+0x33/0x40 [ 1159.446583][ C3] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 1159.446693][ C3] tcf_action_init_1+0x428/0x6b0 [ 1159.446787][ C3] tcf_action_init+0x3cf/0x890 [ 1159.446873][ C3] tcf_exts_validate_ex+0x411/0x670 [ 1159.446963][ C3] fl_change+0xed4/0x4e77 [cls_flower] [ 1159.447059][ C3] tc_new_tfilter+0x875/0x21e0 [ 1159.447151][ C3] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 1159.447244][ C3] netlink_rcv_skb+0x14e/0x3a0 [ 1159.447334][ C3] netlink_unicast+0x486/0x750 [ 1159.447420][ C3] netlink_sendmsg+0x735/0xc60 [ 1159.447512][ C3] ____sys_sendmsg+0x419/0x850 [ 1159.447603][ C3] ___sys_sendmsg+0x14e/0x1d0 [ 1159.447689][ C3] __sys_sendmsg+0x145/0x1f0 [ 1159.447779][ C3] do_syscall_64+0x117/0x590 [ 1159.447870][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1159.447982][ C3] irq event stamp: 16333868 [ 1159.448079][ C3] hardirqs last enabled at (16333868): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 1159.448259][ C3] hardirqs last disabled at (16333867): [] _raw_spin_lock_irqsave+0x50/0x60 [ 1159.448429][ C3] softirqs last enabled at (16333686): [] handle_softirqs+0x611/0x940 [ 1159.448584][ C3] softirqs last disabled at (16333825): [] __irq_exit_rcu+0x103/0x1c0 [ 1159.448738][ C3] [ 1159.448738][ C3] other info that might help us debug this: [ 1159.448864][ C3] Possible unsafe locking scenario: [ 1159.448864][ C3] [ 1159.448997][ C3] CPU0 [ 1159.449067][ C3] ---- [ 1159.449131][ C3] lock(mirred_list_lock); [ 1159.449220][ C3] [ 1159.449285][ C3] lock(mirred_list_lock); [ 1159.449373][ C3] [ 1159.449373][ C3] *** DEADLOCK *** [ 1159.449373][ C3] [ 1159.449503][ C3] 1 lock held by swapper/3/0: [ 1159.449592][ C3] #0: ffffffffb8577c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 1159.449757][ C3] [ 1159.449757][ C3] stack backtrace: [ 1159.449871][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 1159.449874][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1159.449876][ C3] Call Trace: [ 1159.449877][ C3] [ 1159.449879][ C3] dump_stack_lvl+0x6f/0xa0 [ 1159.449884][ C3] print_usage_bug.part.0.cold+0xa9/0xb7 [ 1159.449887][ C3] ? filter_irq_stacks+0xd0/0xd0 [ 1159.449890][ C3] mark_lock_irq+0x4e3/0x9c0 [ 1159.449892][ C3] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 1159.449894][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1159.449896][ C3] ? save_trace+0x68/0x280 [ 1159.449900][ C3] mark_lock+0x1d7/0xa00 [ 1159.449901][ C3] mark_usage+0x42/0x170 [ 1159.449903][ C3] __lock_acquire+0x378/0xc10 [ 1159.449904][ C3] ? rcu_is_watching+0x15/0xd0 [ 1159.449906][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1159.449911][ C3] lock_acquire.part.0+0xbc/0x260 [ 1159.449912][ C3] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 1159.449914][ C3] ? rcu_is_watching+0x15/0xd0 [ 1159.449916][ C3] ? lock_acquire+0x134/0x160 [ 1159.449918][ C3] _raw_spin_lock+0x33/0x40 [ 1159.449919][ C3] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 1159.449921][ C3] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 1159.449923][ C3] tcf_action_rcu_free+0x74/0x1a0 [ 1159.449925][ C3] ? rcu_do_batch+0x2b4/0x1020 [ 1159.449927][ C3] rcu_do_batch+0x2b6/0x1020 [ 1159.449929][ C3] ? trace_rcu_batch_end+0x330/0x330 [ 1159.449932][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1159.449933][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 1159.449935][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 1159.449936][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 1159.449938][ C3] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 1159.449940][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 1159.449942][ C3] rcu_core+0x2bf/0x640 [ 1159.449944][ C3] handle_softirqs+0x1d8/0x940 [ 1159.449945][ C3] ? find_held_lock+0x2b/0x80 [ 1159.449948][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 1159.449950][ C3] ? _local_bh_enable+0xd0/0xd0 [ 1159.449952][ C3] __irq_exit_rcu+0x103/0x1c0 [ 1159.449953][ C3] irq_exit_rcu+0xe/0x30 [ 1159.449955][ C3] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 1159.449956][ C3] [ 1159.449957][ C3] [ 1159.449958][ C3] ? rcu_is_watching+0x15/0xd0 [ 1159.449959][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1159.449961][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 1159.449964][ 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 [ 1159.449966][ C3] RSP: 0018:ffa0000000167de8 EFLAGS: 00000296 [ 1159.449968][ C3] RAX: 0000000000f93bff RBX: ff11000001bd0040 RCX: ffffffffb52d9667 [ 1159.449969][ C3] RDX: ff11000001bd0040 RSI: ffffffffb8001bcb RDI: ffffffffb7a6f6c0 [ 1159.449970][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 1159.449971][ C3] R10: 0000000000000003 R11: 0000000000000001 R12: 1ff400000002cfc0 [ 1159.449972][ C3] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 1159.449973][ C3] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 1159.449976][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 1159.449978][ C3] default_idle+0x9/0x10 [ 1159.449980][ C3] default_idle_call+0x6e/0xb0 [ 1159.449982][ C3] cpuidle_idle_call.constprop.0+0x237/0x410 [ 1159.449983][ C3] ? arch_cpu_idle_exit+0x40/0x40 [ 1159.449985][ C3] ? mark_tsc_async_resets+0x30/0x30 [ 1159.449987][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1159.449989][ C3] ? rcu_is_watching+0x15/0xd0 [ 1159.449991][ C3] do_idle+0xf5/0x160 [ 1159.449993][ C3] cpu_startup_entry+0x53/0x70 [ 1159.449994][ C3] start_secondary+0x204/0x2b0 [ 1159.449996][ C3] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 1159.449998][ C3] common_startup_64+0x13e/0x148 [ 1159.450002][ C3] [ 1166.019415][ C1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 1166.019612][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 1166.019757][ C1] preempt_count: 101, expected: 0 [ 1166.019841][ C1] RCU nest depth: 0, expected: 0 [ 1166.019923][ C1] INFO: lockdep is turned off. [ 1166.020004][ C1] Preemption disabled at: [ 1166.020005][ C1] [<0000000000000000>] 0x0 [ 1166.020160][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 1166.020163][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1166.020165][ C1] Call Trace: [ 1166.020167][ C1] [ 1166.020169][ C1] dump_stack_lvl+0x6f/0xa0 [ 1166.020177][ C1] __might_resched.cold+0x20d/0x2d6 [ 1166.020180][ C1] ? default_idle_call+0x6e/0xb0 [ 1166.020185][ C1] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 1166.020189][ C1] ? start_secondary+0x204/0x2b0 [ 1166.020192][ C1] __mutex_lock+0x118/0x2010 [ 1166.020194][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 1166.020198][ C1] ? ww_mutex_lock+0x160/0x160 [ 1166.020202][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 1166.020203][ C1] __tcf_chain_put+0x5f/0xb20 [ 1166.020205][ C1] ? free_percpu.part.0+0x5f7/0xc80 [ 1166.020209][ C1] tcf_action_rcu_free+0x14f/0x1a0 [ 1166.020211][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 1166.020214][ C1] rcu_do_batch+0x2b6/0x1020 [ 1166.020217][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 1166.020219][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1166.020222][ C1] ? do_raw_spin_unlock+0x59/0x250 [ 1166.020225][ C1] ? trace_hardirqs_on+0x36/0x40 [ 1166.020226][ C1] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 1166.020229][ C1] rcu_core+0x2bf/0x640 [ 1166.020231][ C1] handle_softirqs+0x1d8/0x940 [ 1166.020233][ C1] ? clockevents_tick_resume+0x60/0x60 [ 1166.020236][ C1] ? _local_bh_enable+0xd0/0xd0 [ 1166.020238][ C1] ? rcu_is_watching+0x15/0xd0 [ 1166.020239][ C1] ? lock_release+0x17c/0x1f0 [ 1166.020242][ C1] __irq_exit_rcu+0x103/0x1c0 [ 1166.020243][ C1] irq_exit_rcu+0xe/0x30 [ 1166.020245][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 1166.020247][ C1] [ 1166.020247][ C1] [ 1166.020248][ C1] ? rcu_is_watching+0x15/0xd0 [ 1166.020250][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1166.020252][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 1166.020255][ C1] 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 [ 1166.020257][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000246 [ 1166.020260][ C1] RAX: 0000000000000001 RBX: ff11000001bb2340 RCX: 0000000000000001 [ 1166.020262][ C1] RDX: 0000000000000001 RSI: ffffffffb7a6f640 RDI: ffffffffb52d9667 [ 1166.020262][ C1] RBP: 0000000000000000 R08: ffffffffb76694f1 R09: 1fe2200005d1639a [ 1166.020263][ C1] R10: 0000000000000001 R11: 0000000000000000 R12: 1ff4000000028fc0 [ 1166.020264][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 1166.020265][ C1] ? ct_kernel_exit.constprop.0+0x101/0x160 [ 1166.020267][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 1166.020272][ C1] default_idle+0x9/0x10 [ 1166.020274][ C1] default_idle_call+0x6e/0xb0 [ 1166.020275][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 1166.020277][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 1166.020278][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 1166.020280][ C1] ? rcu_is_watching+0x15/0xd0 [ 1166.020282][ C1] do_idle+0xf5/0x160 [ 1166.020284][ C1] cpu_startup_entry+0x53/0x70 [ 1166.020285][ C1] start_secondary+0x204/0x2b0 [ 1166.020287][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 1166.020289][ C1] common_startup_64+0x13e/0x148 [ 1166.020293][ C1]