[ 49.780322][ T692] Mirror/redirect action on [ 49.923986][ C1] [ 49.924062][ C1] ================================ [ 49.924160][ C1] WARNING: inconsistent lock state [ 49.924249][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 49.924339][ C1] -------------------------------- [ 49.924423][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 49.924528][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 49.924635][ C1] ffffffffc05927b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 49.924814][ C1] {SOFTIRQ-ON-W} state was registered at: [ 49.924899][ C1] __lock_acquire+0x378/0xc10 [ 49.924998][ C1] lock_acquire.part.0+0xbc/0x260 [ 49.925082][ C1] _raw_spin_lock+0x33/0x40 [ 49.925174][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 49.925283][ C1] tcf_action_init_1+0x428/0x6b0 [ 49.925371][ C1] tcf_action_init+0x3cf/0x890 [ 49.925456][ C1] tcf_exts_validate_ex+0x411/0x670 [ 49.925542][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 49.925628][ C1] tc_new_tfilter+0x875/0x21e0 [ 49.925714][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 49.925804][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 49.925889][ C1] netlink_unicast+0x486/0x750 [ 49.925975][ C1] netlink_sendmsg+0x735/0xc60 [ 49.926060][ C1] ____sys_sendmsg+0x419/0x850 [ 49.926152][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 49.926236][ C1] __sys_sendmsg+0x145/0x1f0 [ 49.926319][ C1] do_syscall_64+0x117/0x590 [ 49.926404][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 49.926512][ C1] irq event stamp: 1182660 [ 49.926605][ C1] hardirqs last enabled at (1182660): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 49.926779][ C1] hardirqs last disabled at (1182659): [] _raw_spin_lock_irqsave+0x50/0x60 [ 49.926943][ C1] softirqs last enabled at (1182582): [] handle_softirqs+0x611/0x940 [ 49.927099][ C1] softirqs last disabled at (1182601): [] __irq_exit_rcu+0x103/0x1c0 [ 49.927248][ C1] [ 49.927248][ C1] other info that might help us debug this: [ 49.927380][ C1] Possible unsafe locking scenario: [ 49.927380][ C1] [ 49.927503][ C1] CPU0 [ 49.927570][ C1] ---- [ 49.927633][ C1] lock(mirred_list_lock); [ 49.927716][ C1] [ 49.927778][ C1] lock(mirred_list_lock); [ 49.927871][ C1] [ 49.927871][ C1] *** DEADLOCK *** [ 49.927871][ C1] [ 49.927997][ C1] 1 lock held by swapper/1/0: [ 49.928082][ C1] #0: ffffffffa3577c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 49.928239][ C1] [ 49.928239][ C1] stack backtrace: [ 49.928347][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 49.928350][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 49.928352][ C1] Call Trace: [ 49.928353][ C1] [ 49.928355][ C1] dump_stack_lvl+0x6f/0xa0 [ 49.928360][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 49.928362][ C1] ? filter_irq_stacks+0xd0/0xd0 [ 49.928366][ C1] mark_lock_irq+0x4e3/0x9c0 [ 49.928367][ C1] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 49.928369][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 49.928371][ C1] ? save_trace+0x68/0x280 [ 49.928373][ C1] mark_lock+0x1d7/0xa00 [ 49.928375][ C1] mark_usage+0x42/0x170 [ 49.928377][ C1] __lock_acquire+0x378/0xc10 [ 49.928378][ C1] ? rcu_is_watching+0x15/0xd0 [ 49.928380][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 49.928384][ C1] lock_acquire.part.0+0xbc/0x260 [ 49.928385][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 49.928387][ C1] ? rcu_is_watching+0x15/0xd0 [ 49.928389][ C1] ? lock_acquire+0x134/0x160 [ 49.928391][ C1] _raw_spin_lock+0x33/0x40 [ 49.928393][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 49.928394][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 49.928396][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 49.928398][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 49.928399][ C1] rcu_do_batch+0x2b6/0x1020 [ 49.928401][ C1] ? lock_acquire.part.0+0xbc/0x260 [ 49.928403][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 49.928405][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 49.928407][ C1] ? do_raw_spin_unlock+0x59/0x250 [ 49.928408][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 49.928410][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 49.928411][ C1] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 49.928413][ C1] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 49.928415][ C1] rcu_core+0x2bf/0x640 [ 49.928417][ C1] handle_softirqs+0x1d8/0x940 [ 49.928418][ C1] ? find_held_lock+0x2b/0x80 [ 49.928421][ C1] ? __lock_release.isra.0+0x6b/0x1a0 [ 49.928423][ C1] ? _local_bh_enable+0xd0/0xd0 [ 49.928425][ C1] __irq_exit_rcu+0x103/0x1c0 [ 49.928426][ C1] irq_exit_rcu+0xe/0x30 [ 49.928428][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 49.928429][ C1] [ 49.928430][ C1] [ 49.928431][ C1] ? rcu_is_watching+0x15/0xd0 [ 49.928432][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 49.928434][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 49.928436][ 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 [ 49.928438][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000296 [ 49.928440][ C1] RAX: 0000000000120b87 RBX: ff11000001bb2340 RCX: ffffffffa02d9667 [ 49.928442][ C1] RDX: ff11000001bb2340 RSI: ffffffffa3001bcb RDI: ffffffffa2a6f6c0 [ 49.928443][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 49.928444][ C1] R10: 0000000000000001 R11: 0000000000000001 R12: 1ff4000000028fc0 [ 49.928445][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 49.928446][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 49.928449][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 49.928451][ C1] default_idle+0x9/0x10 [ 49.928453][ C1] default_idle_call+0x6e/0xb0 [ 49.928454][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 49.928456][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 49.928457][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 49.928460][ C1] ? debug_smp_processor_id+0x4/0x20 [ 49.928462][ C1] ? rcu_is_watching+0x15/0xd0 [ 49.928463][ C1] do_idle+0xf5/0x160 [ 49.928465][ C1] cpu_startup_entry+0x53/0x70 [ 49.928467][ C1] start_secondary+0x204/0x2b0 [ 49.928468][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 49.928470][ C1] common_startup_64+0x13e/0x148 [ 49.928475][ C1] [ 56.479016][ C1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 56.479214][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 353, name: perl [ 56.479332][ C1] preempt_count: 100, expected: 0 [ 56.479412][ C1] RCU nest depth: 0, expected: 0 [ 56.479490][ C1] INFO: lockdep is turned off. [ 56.479567][ C1] Preemption disabled at: [ 56.479568][ C1] [] handle_softirqs+0xf7/0x940 [ 56.479733][ C1] CPU: 1 UID: 0 PID: 353 Comm: perl Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 56.479736][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 56.479738][ C1] Call Trace: [ 56.479740][ C1] [ 56.479741][ C1] dump_stack_lvl+0x6f/0xa0 [ 56.479746][ C1] ? handle_softirqs+0xf7/0x940 [ 56.479748][ C1] __might_resched.cold+0x20d/0x2d6 [ 56.479752][ C1] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 56.479756][ C1] __mutex_lock+0x118/0x2010 [ 56.479760][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 56.479764][ C1] ? ww_mutex_lock+0x160/0x160 [ 56.479767][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 56.479768][ C1] __tcf_chain_put+0x5f/0xb20 [ 56.479770][ C1] ? free_percpu.part.0+0x5f7/0xc80 [ 56.479774][ C1] tcf_action_rcu_free+0x14f/0x1a0 [ 56.479776][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 56.479779][ C1] rcu_do_batch+0x2b6/0x1020 [ 56.479782][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 56.479784][ C1] ? rcu_is_watching+0x15/0xd0 [ 56.479786][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 56.479789][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 56.479791][ C1] rcu_core+0x2bf/0x640 [ 56.479793][ C1] handle_softirqs+0x1d8/0x940 [ 56.479794][ C1] ? clockevents_tick_resume+0x60/0x60 [ 56.479797][ C1] ? _local_bh_enable+0xd0/0xd0 [ 56.479799][ C1] ? lock_release+0x17c/0x1f0 [ 56.479801][ C1] __irq_exit_rcu+0x103/0x1c0 [ 56.479803][ C1] irq_exit_rcu+0xe/0x30 [ 56.479804][ C1] sysvec_apic_timer_interrupt+0x4c/0xe0 [ 56.479807][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 56.479809][ C1] RIP: 0033:0x7f681684c238 [ 56.479812][ C1] Code: 00 00 f3 0f 1e fa 55 48 89 e5 53 48 89 fb 48 83 ec 18 66 83 3d bc 58 25 00 00 48 8b 47 08 74 0c eb 38 66 83 3d ac 58 25 00 00 <75> 2e 48 89 df ff 50 10 48 89 43 08 48 85 c0 75 e7 8b 83 4c 05 00 [ 56.479814][ C1] RSP: 002b:00007ffe115114d0 EFLAGS: 00000246 [ 56.479818][ C1] RAX: 000055880e249f90 RBX: 000055880e0ef010 RCX: 000055880e128241 [ 56.479819][ C1] RDX: 000055880e24a258 RSI: 000055880e10f980 RDI: 000055880e0ef010 [ 56.479820][ C1] RBP: 00007ffe115114f0 R08: 0000000000000000 R09: 0000000000000000 [ 56.479821][ C1] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe115117b8 [ 56.479822][ C1] R13: 0000000000000002 R14: 00007f6816aea000 R15: 000055880b6e5cd8 [ 56.479824][ C1]