[ 255.230034][ T6632] Mirror/redirect action on [ 258.478983][ C2] [ 258.479070][ C2] ================================ [ 258.479160][ C2] WARNING: inconsistent lock state [ 258.479244][ C2] 7.1.0-rc5-virtme #1 Not tainted [ 258.479329][ C2] -------------------------------- [ 258.479418][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 258.479520][ C2] ip/6641 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 258.479605][ C2] ffffffffc086e7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 258.479777][ C2] {SOFTIRQ-ON-W} state was registered at: [ 258.479861][ C2] __lock_acquire+0x378/0xc10 [ 258.479953][ C2] lock_acquire.part.0+0xbc/0x260 [ 258.480037][ C2] _raw_spin_lock+0x33/0x40 [ 258.480123][ C2] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 258.480228][ C2] tcf_action_init_1+0x428/0x6b0 [ 258.480313][ C2] tcf_action_init+0x3cf/0x890 [ 258.480400][ C2] tcf_exts_validate_ex+0x411/0x670 [ 258.480487][ C2] fl_change+0xed4/0x4e77 [cls_flower] [ 258.480571][ C2] tc_new_tfilter+0x875/0x21e0 [ 258.480655][ C2] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 258.480742][ C2] netlink_rcv_skb+0x14e/0x3a0 [ 258.480827][ C2] netlink_unicast+0x486/0x750 [ 258.480912][ C2] netlink_sendmsg+0x735/0xc60 [ 258.480997][ C2] ____sys_sendmsg+0x419/0x850 [ 258.481084][ C2] ___sys_sendmsg+0x14e/0x1d0 [ 258.481167][ C2] __sys_sendmsg+0x145/0x1f0 [ 258.481251][ C2] do_syscall_64+0x117/0x590 [ 258.481338][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 258.481444][ C2] irq event stamp: 31992 [ 258.481510][ C2] hardirqs last enabled at (31992): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 258.481678][ C2] hardirqs last disabled at (31991): [] _raw_spin_lock_irqsave+0x50/0x60 [ 258.481845][ C2] softirqs last enabled at (31958): [] netlink_release+0x17b/0xcf0 [ 258.481989][ C2] softirqs last disabled at (31959): [] do_softirq+0xa9/0xe0 [ 258.482136][ C2] [ 258.482136][ C2] other info that might help us debug this: [ 258.482261][ C2] Possible unsafe locking scenario: [ 258.482261][ C2] [ 258.482389][ C2] CPU0 [ 258.482452][ C2] ---- [ 258.482514][ C2] lock(mirred_list_lock); [ 258.482602][ C2] [ 258.482667][ C2] lock(mirred_list_lock); [ 258.482755][ C2] [ 258.482755][ C2] *** DEADLOCK *** [ 258.482755][ C2] [ 258.482879][ C2] 2 locks held by ip/6641: [ 258.482964][ C2] #0: ff1100001aa7bab8 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release+0x8f/0x280 [ 258.483138][ C2] #1: ffffffff8778bc80 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 258.483289][ C2] [ 258.483289][ C2] stack backtrace: [ 258.483398][ C2] CPU: 2 UID: 0 PID: 6641 Comm: ip Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 258.483401][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 258.483403][ C2] Call Trace: [ 258.483405][ C2] [ 258.483406][ C2] dump_stack_lvl+0x6f/0xa0 [ 258.483411][ C2] print_usage_bug.part.0.cold+0xa9/0xb7 [ 258.483415][ C2] mark_lock_irq+0x4e3/0x9c0 [ 258.483416][ C2] ? netlink_release+0x17b/0xcf0 [ 258.483418][ C2] ? save_trace+0x68/0x280 [ 258.483419][ C2] ? __lock_acquire+0x508/0xc10 [ 258.483421][ C2] mark_lock+0x1d7/0xa00 [ 258.483423][ C2] mark_usage+0x42/0x170 [ 258.483424][ C2] __lock_acquire+0x378/0xc10 [ 258.483426][ C2] ? mark_held_locks+0x40/0x70 [ 258.483428][ C2] lock_acquire.part.0+0xbc/0x260 [ 258.483430][ C2] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 258.483432][ C2] ? rcu_is_watching+0x15/0xd0 [ 258.483434][ C2] ? lock_acquire+0x134/0x160 [ 258.483436][ C2] _raw_spin_lock+0x33/0x40 [ 258.483437][ C2] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 258.483438][ C2] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 258.483440][ C2] tcf_action_rcu_free+0x74/0x1a0 [ 258.483441][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 258.483443][ C2] rcu_do_batch+0x2b6/0x1020 [ 258.483446][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 258.483448][ C2] ? mark_held_locks+0x40/0x70 [ 258.483450][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 258.483451][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 258.483453][ C2] rcu_core+0x2bf/0x640 [ 258.483455][ C2] handle_softirqs+0x1d8/0x940 [ 258.483456][ C2] ? _local_bh_enable+0xd0/0xd0 [ 258.483458][ C2] ? _local_bh_enable+0xd0/0xd0 [ 258.483460][ C2] do_softirq+0xa9/0xe0 [ 258.483461][ C2] [ 258.483462][ C2] [ 258.483462][ C2] __local_bh_enable_ip+0x113/0x140 [ 258.483464][ C2] netlink_release+0x17b/0xcf0 [ 258.483466][ C2] ? netlink_remove+0xe70/0xe70 [ 258.483468][ C2] ? rwsem_down_write_slowpath+0xbe0/0xbe0 [ 258.483470][ C2] ? irq_matrix_available+0x112/0x130 [ 258.483473][ C2] __sock_release+0xb8/0x280 [ 258.483475][ C2] sock_close+0x18/0x20 [ 258.483476][ C2] __fput+0x363/0xac0 [ 258.483480][ C2] ? rcu_is_watching+0x15/0xd0 [ 258.483481][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 258.483485][ C2] ? do_raw_spin_unlock+0x59/0x250 [ 258.483486][ C2] ? _raw_spin_unlock_irq+0x28/0x50 [ 258.483488][ C2] ? _raw_spin_unlock_irq+0x33/0x50 [ 258.483489][ C2] task_work_run+0x12b/0x240 [ 258.483491][ C2] ? __rwlock_init+0x150/0x150 [ 258.483492][ C2] ? task_work_cancel+0x30/0x30 [ 258.483494][ C2] ? do_raw_spin_unlock+0x59/0x250 [ 258.483496][ C2] do_exit+0x614/0xdc0 [ 258.483497][ C2] ? exit_notify+0x890/0x890 [ 258.483498][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 258.483500][ C2] ? rcu_is_watching+0x15/0xd0 [ 258.483502][ C2] do_group_exit+0xb8/0x370 [ 258.483503][ C2] __x64_sys_exit_group+0x3c/0x50 [ 258.483505][ C2] x64_sys_call+0x102c/0x1530 [ 258.483507][ C2] do_syscall_64+0x117/0x590 [ 258.483508][ C2] ? trace_hardirqs_off+0xd/0x30 [ 258.483510][ C2] ? exc_page_fault+0xee/0x100 [ 258.483511][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 258.483513][ C2] RIP: 0033:0x7fc539eee2b8 [ 258.483516][ C2] Code: Unable to access opcode bytes at 0x7fc539eee28e. [ 258.483517][ C2] RSP: 002b:00007ffeac334168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 258.483519][ C2] RAX: ffffffffffffffda RBX: 00007fc53a01ff88 RCX: 00007fc539eee2b8 [ 258.483520][ C2] RDX: 00007fc539c63b48 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 258.483521][ C2] RBP: 00007ffeac3341c0 R08: 0000000000000000 R09: 0000000000000060 [ 258.483522][ C2] R10: 00007ffeac333f80 R11: 0000000000000246 R12: 0000000000000001 [ 258.483523][ C2] R13: 0000000000000000 R14: 00007fc53a01e680 R15: 00007fc53a01ffa0 [ 258.483525][ C2]