[ 304.685268][ T4950] Mirror/redirect action on [ 325.457532][ C2] [ 325.457620][ C2] ================================ [ 325.457711][ C2] WARNING: inconsistent lock state [ 325.457795][ C2] 7.1.0-rc5-virtme #1 Not tainted [ 325.457886][ C2] -------------------------------- [ 325.457968][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 325.458071][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 325.458174][ C2] ffffffffc08a87b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 325.458347][ C2] {SOFTIRQ-ON-W} state was registered at: [ 325.458431][ C2] __lock_acquire+0x378/0xc10 [ 325.458528][ C2] lock_acquire.part.0+0xbc/0x260 [ 325.458612][ C2] _raw_spin_lock+0x33/0x40 [ 325.458696][ C2] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 325.458798][ C2] tcf_action_init_1+0x428/0x6b0 [ 325.458886][ C2] tcf_action_init+0x3cf/0x890 [ 325.458968][ C2] tcf_exts_validate_ex+0x411/0x670 [ 325.459050][ C2] fl_change+0xed4/0x4e77 [cls_flower] [ 325.459133][ C2] tc_new_tfilter+0x875/0x21e0 [ 325.459219][ C2] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 325.459304][ C2] netlink_rcv_skb+0x14e/0x3a0 [ 325.459385][ C2] netlink_unicast+0x486/0x750 [ 325.459467][ C2] netlink_sendmsg+0x735/0xc60 [ 325.459552][ C2] ____sys_sendmsg+0x419/0x850 [ 325.459635][ C2] ___sys_sendmsg+0x14e/0x1d0 [ 325.459722][ C2] __sys_sendmsg+0x145/0x1f0 [ 325.459808][ C2] do_syscall_64+0x117/0x590 [ 325.459898][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 325.460005][ C2] irq event stamp: 7451482 [ 325.460089][ C2] hardirqs last enabled at (7451482): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 325.460253][ C2] hardirqs last disabled at (7451481): [] _raw_spin_lock_irqsave+0x50/0x60 [ 325.460416][ C2] softirqs last enabled at (7451224): [] handle_softirqs+0x611/0x940 [ 325.460564][ C2] softirqs last disabled at (7451249): [] __irq_exit_rcu+0x103/0x1c0 [ 325.460707][ C2] [ 325.460707][ C2] other info that might help us debug this: [ 325.460829][ C2] Possible unsafe locking scenario: [ 325.460829][ C2] [ 325.460960][ C2] CPU0 [ 325.461022][ C2] ---- [ 325.461085][ C2] lock(mirred_list_lock); [ 325.461170][ C2] [ 325.461232][ C2] lock(mirred_list_lock); [ 325.461317][ C2] [ 325.461317][ C2] *** DEADLOCK *** [ 325.461317][ C2] [ 325.461441][ C2] 1 lock held by swapper/2/0: [ 325.461528][ C2] #0: ffffffff86177c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 325.461680][ C2] [ 325.461680][ C2] stack backtrace: [ 325.461789][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 325.461792][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 325.461794][ C2] Call Trace: [ 325.461795][ C2] [ 325.461797][ C2] dump_stack_lvl+0x6f/0xa0 [ 325.461802][ C2] print_usage_bug.part.0.cold+0xa9/0xb7 [ 325.461805][ C2] ? filter_irq_stacks+0xd0/0xd0 [ 325.461808][ C2] mark_lock_irq+0x4e3/0x9c0 [ 325.461810][ C2] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 325.461812][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 325.461814][ C2] ? save_trace+0x68/0x280 [ 325.461816][ C2] mark_lock+0x1d7/0xa00 [ 325.461818][ C2] mark_usage+0x42/0x170 [ 325.461819][ C2] __lock_acquire+0x378/0xc10 [ 325.461820][ C2] ? rcu_is_watching+0x15/0xd0 [ 325.461822][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 325.461826][ C2] lock_acquire.part.0+0xbc/0x260 [ 325.461828][ C2] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 325.461830][ C2] ? rcu_is_watching+0x15/0xd0 [ 325.461831][ C2] ? lock_acquire+0x134/0x160 [ 325.461838][ C2] _raw_spin_lock+0x33/0x40 [ 325.461839][ C2] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 325.461841][ C2] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 325.461843][ C2] tcf_action_rcu_free+0x74/0x1a0 [ 325.461844][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 325.461846][ C2] rcu_do_batch+0x2b6/0x1020 [ 325.461848][ C2] ? lock_acquire.part.0+0xbc/0x260 [ 325.461850][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 325.461852][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 325.461853][ C2] ? do_raw_spin_unlock+0x59/0x250 [ 325.461855][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 325.461856][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 325.461858][ C2] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 325.461860][ C2] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 325.461862][ C2] rcu_core+0x2bf/0x640 [ 325.461864][ C2] handle_softirqs+0x1d8/0x940 [ 325.461866][ C2] ? find_held_lock+0x2b/0x80 [ 325.461868][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 325.461870][ C2] ? _local_bh_enable+0xd0/0xd0 [ 325.461872][ C2] __irq_exit_rcu+0x103/0x1c0 [ 325.461873][ C2] irq_exit_rcu+0xe/0x30 [ 325.461875][ C2] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 325.461877][ C2] [ 325.461877][ C2] [ 325.461878][ C2] ? rcu_is_watching+0x15/0xd0 [ 325.461879][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 325.461881][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 325.461883][ C2] 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 [ 325.461885][ C2] RSP: 0018:ffa0000000157de8 EFLAGS: 00000296 [ 325.461887][ C2] RAX: 000000000071b26f RBX: ff11000001bb4640 RCX: ffffffff82ed9667 [ 325.461889][ C2] RDX: ff11000001bb4640 RSI: ffffffff85c01bcb RDI: ffffffff8566f6c0 [ 325.461889][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 325.461890][ C2] R10: 0000000000000002 R11: 0000000000000001 R12: 1ff400000002afc0 [ 325.461891][ C2] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 325.461893][ C2] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 325.461895][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 325.461897][ C2] default_idle+0x9/0x10 [ 325.461899][ C2] default_idle_call+0x6e/0xb0 [ 325.461901][ C2] cpuidle_idle_call.constprop.0+0x237/0x410 [ 325.461902][ C2] ? arch_cpu_idle_exit+0x40/0x40 [ 325.461904][ C2] ? mark_tsc_async_resets+0x30/0x30 [ 325.461906][ C2] ? rcu_is_watching+0x15/0xd0 [ 325.461908][ C2] do_idle+0xf5/0x160 [ 325.461909][ C2] cpu_startup_entry+0x53/0x70 [ 325.461911][ C2] start_secondary+0x204/0x2b0 [ 325.461913][ C2] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 325.461915][ C2] common_startup_64+0x13e/0x148 [ 325.461920][ C2]