[ 138.357116][ T2009] Mirror/redirect action on [ 141.591881][ C1] [ 141.591960][ C1] ================================ [ 141.592049][ C1] WARNING: inconsistent lock state [ 141.592128][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 141.592209][ C1] -------------------------------- [ 141.592283][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 141.592382][ C1] ksoftirqd/1/23 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 141.592478][ C1] ffffffffc04af7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 141.592636][ C1] {SOFTIRQ-ON-W} state was registered at: [ 141.592712][ C1] __lock_acquire+0x378/0xc10 [ 141.592802][ C1] lock_acquire.part.0+0xbc/0x260 [ 141.592889][ C1] _raw_spin_lock+0x33/0x40 [ 141.592968][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 141.593064][ C1] tcf_action_init_1+0x428/0x6b0 [ 141.593141][ C1] tcf_action_init+0x3cf/0x890 [ 141.593217][ C1] tcf_exts_validate_ex+0x411/0x670 [ 141.593293][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 141.593370][ C1] tc_new_tfilter+0x875/0x21e0 [ 141.593446][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 141.593523][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 141.593600][ C1] netlink_unicast+0x486/0x750 [ 141.593676][ C1] netlink_sendmsg+0x735/0xc60 [ 141.593751][ C1] ____sys_sendmsg+0x419/0x850 [ 141.593833][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 141.593908][ C1] __sys_sendmsg+0x145/0x1f0 [ 141.593982][ C1] do_syscall_64+0x117/0x590 [ 141.594058][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 141.594153][ C1] irq event stamp: 2505346 [ 141.594231][ C1] hardirqs last enabled at (2505346): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 141.594382][ C1] hardirqs last disabled at (2505345): [] _raw_spin_lock_irqsave+0x50/0x60 [ 141.594532][ C1] softirqs last enabled at (2504950): [] handle_softirqs+0x611/0x940 [ 141.594664][ C1] softirqs last disabled at (2504955): [] run_ksoftirqd+0x39/0x60 [ 141.594794][ C1] [ 141.594794][ C1] other info that might help us debug this: [ 141.594909][ C1] Possible unsafe locking scenario: [ 141.594909][ C1] [ 141.595022][ C1] CPU0 [ 141.595082][ C1] ---- [ 141.595138][ C1] lock(mirred_list_lock); [ 141.595213][ C1] [ 141.595270][ C1] lock(mirred_list_lock); [ 141.595347][ C1] [ 141.595347][ C1] *** DEADLOCK *** [ 141.595347][ C1] [ 141.595462][ C1] 1 lock held by ksoftirqd/1/23: [ 141.595538][ C1] #0: ffffffffa3d8bc80 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 141.595684][ C1] [ 141.595684][ C1] stack backtrace: [ 141.595779][ C1] CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 141.595782][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 141.595784][ C1] Call Trace: [ 141.595786][ C1] [ 141.595787][ C1] dump_stack_lvl+0x6f/0xa0 [ 141.595792][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 141.595795][ C1] mark_lock_irq+0x4e3/0x9c0 [ 141.595797][ C1] ? kthread+0x367/0x460 [ 141.595800][ C1] ? save_trace+0x68/0x280 [ 141.595801][ C1] ? __lock_acquire+0x508/0xc10 [ 141.595803][ C1] mark_lock+0x1d7/0xa00 [ 141.595805][ C1] mark_usage+0x42/0x170 [ 141.595807][ C1] __lock_acquire+0x378/0xc10 [ 141.595811][ C1] ? rcu_is_watching+0x15/0xd0 [ 141.595814][ C1] lock_acquire.part.0+0xbc/0x260 [ 141.595816][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 141.595818][ C1] ? rcu_is_watching+0x15/0xd0 [ 141.595819][ C1] ? lock_acquire+0x134/0x160 [ 141.595821][ C1] _raw_spin_lock+0x33/0x40 [ 141.595823][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 141.595824][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 141.595826][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 141.595827][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 141.595829][ C1] rcu_do_batch+0x2b6/0x1020 [ 141.595831][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 141.595833][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 141.595835][ C1] ? rcu_is_watching+0x15/0xd0 [ 141.595837][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 141.595840][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 141.595841][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 141.595843][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 141.595844][ C1] rcu_core+0x2bf/0x640 [ 141.595846][ C1] handle_softirqs+0x1d8/0x940 [ 141.595848][ C1] ? _local_bh_enable+0xd0/0xd0 [ 141.595850][ C1] ? rcu_is_watching+0x15/0xd0 [ 141.595852][ C1] run_ksoftirqd+0x39/0x60 [ 141.595853][ C1] smpboot_thread_fn+0x2fb/0x9b0 [ 141.595856][ C1] ? sort_range+0x20/0x20 [ 141.595857][ C1] kthread+0x367/0x460 [ 141.595859][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 141.595861][ C1] ? kthread_affine_node+0x330/0x330 [ 141.595862][ C1] ret_from_fork+0x474/0x6b0 [ 141.595865][ C1] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 141.595867][ C1] ? __switch_to+0x5a3/0xe00 [ 141.595870][ C1] ? kthread_affine_node+0x330/0x330 [ 141.595871][ C1] ret_from_fork_asm+0x11/0x20 [ 141.595875][ C1]