[ 44.375617][ T854] Mirror/redirect action on [ 44.524428][ C1] [ 44.524518][ C1] ================================ [ 44.524609][ C1] WARNING: inconsistent lock state [ 44.524698][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 44.524789][ C1] -------------------------------- [ 44.524876][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 44.524989][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 44.525101][ C1] ffffffffc081f7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 44.525280][ C1] {SOFTIRQ-ON-W} state was registered at: [ 44.525367][ C1] __lock_acquire+0x378/0xc10 [ 44.525472][ C1] lock_acquire.part.0+0xbc/0x260 [ 44.525556][ C1] _raw_spin_lock+0x33/0x40 [ 44.525644][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 44.525751][ C1] tcf_action_init_1+0x428/0x6b0 [ 44.525836][ C1] tcf_action_init+0x3cf/0x890 [ 44.525924][ C1] tcf_exts_validate_ex+0x411/0x670 [ 44.526009][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 44.526095][ C1] tc_new_tfilter+0x875/0x21e0 [ 44.526184][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 44.526272][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 44.526357][ C1] netlink_unicast+0x486/0x750 [ 44.526464][ C1] netlink_sendmsg+0x735/0xc60 [ 44.526548][ C1] ____sys_sendmsg+0x419/0x850 [ 44.526633][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 44.526718][ C1] __sys_sendmsg+0x145/0x1f0 [ 44.526802][ C1] do_syscall_64+0x117/0x590 [ 44.526893][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 44.527002][ C1] irq event stamp: 1248608 [ 44.527090][ C1] hardirqs last enabled at (1248608): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 44.527258][ C1] hardirqs last disabled at (1248607): [] _raw_spin_lock_irqsave+0x50/0x60 [ 44.527425][ C1] softirqs last enabled at (1248482): [] handle_softirqs+0x611/0x940 [ 44.527580][ C1] softirqs last disabled at (1248499): [] __irq_exit_rcu+0x103/0x1c0 [ 44.527727][ C1] [ 44.527727][ C1] other info that might help us debug this: [ 44.527850][ C1] Possible unsafe locking scenario: [ 44.527850][ C1] [ 44.527976][ C1] CPU0 [ 44.528039][ C1] ---- [ 44.528102][ C1] lock(mirred_list_lock); [ 44.528192][ C1] [ 44.528254][ C1] lock(mirred_list_lock); [ 44.528336][ C1] [ 44.528336][ C1] *** DEADLOCK *** [ 44.528336][ C1] [ 44.528462][ C1] 1 lock held by swapper/1/0: [ 44.528549][ C1] #0: ffffffffba177c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 44.528705][ C1] [ 44.528705][ C1] stack backtrace: [ 44.528813][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 44.528816][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 44.528818][ C1] Call Trace: [ 44.528820][ C1] [ 44.528821][ C1] dump_stack_lvl+0x6f/0xa0 [ 44.528827][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 44.528829][ C1] ? filter_irq_stacks+0xd0/0xd0 [ 44.528833][ C1] mark_lock_irq+0x4e3/0x9c0 [ 44.528834][ C1] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 44.528836][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 44.528839][ C1] ? save_trace+0x68/0x280 [ 44.528841][ C1] mark_lock+0x1d7/0xa00 [ 44.528842][ C1] mark_usage+0x42/0x170 [ 44.528844][ C1] __lock_acquire+0x378/0xc10 [ 44.528845][ C1] ? rcu_is_watching+0x15/0xd0 [ 44.528847][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 44.528851][ C1] lock_acquire.part.0+0xbc/0x260 [ 44.528852][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 44.528854][ C1] ? rcu_is_watching+0x15/0xd0 [ 44.528856][ C1] ? lock_acquire+0x134/0x160 [ 44.528858][ C1] _raw_spin_lock+0x33/0x40 [ 44.528859][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 44.528861][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 44.528863][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 44.528864][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 44.528866][ C1] rcu_do_batch+0x2b6/0x1020 [ 44.528869][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 44.528871][ C1] ? rcu_is_watching+0x15/0xd0 [ 44.528873][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 44.528874][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 44.528876][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 44.528877][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 44.528879][ C1] rcu_core+0x2bf/0x640 [ 44.528881][ C1] handle_softirqs+0x1d8/0x940 [ 44.528882][ C1] ? find_held_lock+0x2b/0x80 [ 44.528885][ C1] ? __lock_release.isra.0+0x6b/0x1a0 [ 44.528887][ C1] ? _local_bh_enable+0xd0/0xd0 [ 44.528889][ C1] __irq_exit_rcu+0x103/0x1c0 [ 44.528890][ C1] irq_exit_rcu+0xe/0x30 [ 44.528892][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 44.528893][ C1] [ 44.528894][ C1] [ 44.528895][ C1] ? rcu_is_watching+0x15/0xd0 [ 44.528896][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 44.528898][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 44.528900][ 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 [ 44.528902][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000296 [ 44.528904][ C1] RAX: 0000000000130cf1 RBX: ff11000001bb2340 RCX: ffffffffb6ed9667 [ 44.528906][ C1] RDX: ff11000001bb2340 RSI: ffffffffb9c01bcb RDI: ffffffffb966f6c0 [ 44.528907][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 44.528907][ C1] R10: 0000000000000001 R11: 0000000000000001 R12: 1ff4000000028fc0 [ 44.528908][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 44.528910][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 44.528913][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 44.528914][ C1] default_idle+0x9/0x10 [ 44.528916][ C1] default_idle_call+0x6e/0xb0 [ 44.528918][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 44.528920][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 44.528921][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 44.528923][ C1] ? rcu_is_watching+0x15/0xd0 [ 44.528925][ C1] do_idle+0xf5/0x160 [ 44.528927][ C1] cpu_startup_entry+0x53/0x70 [ 44.528928][ C1] start_secondary+0x204/0x2b0 [ 44.528930][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 44.528932][ C1] common_startup_64+0x13e/0x148 [ 44.528936][ C1] [ 51.104570][ C2] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 51.104783][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 28, name: ksoftirqd/2 [ 51.104967][ C2] preempt_count: 100, expected: 0 [ 51.105082][ C2] RCU nest depth: 0, expected: 0 [ 51.105197][ C2] INFO: lockdep is turned off. [ 51.105313][ C2] Preemption disabled at: [ 51.105315][ C2] [] handle_softirqs+0xf7/0x940 [ 51.105572][ C2] CPU: 2 UID: 0 PID: 28 Comm: ksoftirqd/2 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 51.105576][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 51.105578][ C2] Call Trace: [ 51.105580][ C2] [ 51.105582][ C2] dump_stack_lvl+0x6f/0xa0 [ 51.105588][ C2] ? handle_softirqs+0xf7/0x940 [ 51.105590][ C2] __might_resched.cold+0x20d/0x2d6 [ 51.105594][ C2] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 51.105598][ C2] __mutex_lock+0x118/0x2010 [ 51.105602][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 51.105606][ C2] ? ww_mutex_lock+0x160/0x160 [ 51.105609][ C2] ? rcu_is_watching+0x15/0xd0 [ 51.105612][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 51.105613][ C2] __tcf_chain_put+0x5f/0xb20 [ 51.105615][ C2] ? free_percpu.part.0+0x5f7/0xc80 [ 51.105619][ C2] tcf_action_rcu_free+0x14f/0x1a0 [ 51.105621][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 51.105622][ C2] rcu_do_batch+0x2b6/0x1020 [ 51.105625][ C2] ? rcu_start_this_gp+0x270/0x490 [ 51.105627][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 51.105629][ C2] ? trace_rcu_grace_period+0xcf/0x2c0 [ 51.105631][ C2] ? rcu_is_watching+0x15/0xd0 [ 51.105632][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 51.105635][ C2] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 51.105637][ C2] rcu_core+0x2bf/0x640 [ 51.105639][ C2] handle_softirqs+0x1d8/0x940 [ 51.105641][ C2] ? _local_bh_enable+0xd0/0xd0 [ 51.105643][ C2] ? rcu_is_watching+0x15/0xd0 [ 51.105645][ C2] run_ksoftirqd+0x39/0x60 [ 51.105647][ C2] smpboot_thread_fn+0x2fb/0x9b0 [ 51.105649][ C2] ? sort_range+0x20/0x20 [ 51.105651][ C2] kthread+0x367/0x460 [ 51.105654][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 51.105655][ C2] ? kthread_affine_node+0x330/0x330 [ 51.105657][ C2] ret_from_fork+0x474/0x6b0 [ 51.105660][ C2] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 51.105662][ C2] ? __switch_to+0x5a3/0xe00 [ 51.105664][ C2] ? kthread_affine_node+0x330/0x330 [ 51.105666][ C2] ret_from_fork_asm+0x11/0x20 [ 51.105669][ C2]