[ 80.164341][ T1490] Mirror/redirect action on [ 80.312100][ C1] [ 80.312166][ C1] ================================ [ 80.312241][ C1] WARNING: inconsistent lock state [ 80.312314][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 80.312386][ C1] -------------------------------- [ 80.312455][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 80.312542][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 80.312635][ C1] ffffffffc03207b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 80.312788][ C1] {SOFTIRQ-ON-W} state was registered at: [ 80.312861][ C1] __lock_acquire+0x378/0xc10 [ 80.312940][ C1] lock_acquire.part.0+0xbc/0x260 [ 80.313011][ C1] _raw_spin_lock+0x33/0x40 [ 80.313086][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 80.313171][ C1] tcf_action_init_1+0x428/0x6b0 [ 80.313241][ C1] tcf_action_init+0x3cf/0x890 [ 80.313311][ C1] tcf_exts_validate_ex+0x411/0x670 [ 80.313382][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 80.313455][ C1] tc_new_tfilter+0x875/0x21e0 [ 80.313529][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 80.313605][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 80.313675][ C1] netlink_unicast+0x486/0x750 [ 80.313751][ C1] netlink_sendmsg+0x735/0xc60 [ 80.313820][ C1] ____sys_sendmsg+0x419/0x850 [ 80.313892][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 80.313962][ C1] __sys_sendmsg+0x145/0x1f0 [ 80.314032][ C1] do_syscall_64+0x117/0x590 [ 80.314104][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 80.314195][ C1] irq event stamp: 8339268 [ 80.314268][ C1] hardirqs last enabled at (8339268): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 80.314407][ C1] hardirqs last disabled at (8339267): [] _raw_spin_lock_irqsave+0x50/0x60 [ 80.314546][ C1] softirqs last enabled at (8339120): [] handle_softirqs+0x611/0x940 [ 80.314674][ C1] softirqs last disabled at (8339161): [] __irq_exit_rcu+0x103/0x1c0 [ 80.314802][ C1] [ 80.314802][ C1] other info that might help us debug this: [ 80.314908][ C1] Possible unsafe locking scenario: [ 80.314908][ C1] [ 80.315016][ C1] CPU0 [ 80.315070][ C1] ---- [ 80.315123][ C1] lock(mirred_list_lock); [ 80.315196][ C1] [ 80.315249][ C1] lock(mirred_list_lock); [ 80.315320][ C1] [ 80.315320][ C1] *** DEADLOCK *** [ 80.315320][ C1] [ 80.315427][ C1] 1 lock held by swapper/1/0: [ 80.315503][ C1] #0: ffffffff8a977c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 80.315631][ C1] [ 80.315631][ C1] stack backtrace: [ 80.315726][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 80.315729][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 80.315731][ C1] Call Trace: [ 80.315732][ C1] [ 80.315734][ C1] dump_stack_lvl+0x6f/0xa0 [ 80.315738][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 80.315741][ C1] ? filter_irq_stacks+0xd0/0xd0 [ 80.315744][ C1] mark_lock_irq+0x4e3/0x9c0 [ 80.315745][ C1] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 80.315748][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 80.315750][ C1] ? save_trace+0x68/0x280 [ 80.315752][ C1] mark_lock+0x1d7/0xa00 [ 80.315753][ C1] mark_usage+0x42/0x170 [ 80.315755][ C1] __lock_acquire+0x378/0xc10 [ 80.315756][ C1] ? rcu_is_watching+0x15/0xd0 [ 80.315758][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 80.315762][ C1] lock_acquire.part.0+0xbc/0x260 [ 80.315763][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 80.315765][ C1] ? rcu_is_watching+0x15/0xd0 [ 80.315767][ C1] ? lock_acquire+0x134/0x160 [ 80.315769][ C1] _raw_spin_lock+0x33/0x40 [ 80.315771][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 80.315772][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 80.315774][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 80.315775][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 80.315777][ C1] rcu_do_batch+0x2b6/0x1020 [ 80.315780][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 80.315782][ C1] ? rcu_is_watching+0x15/0xd0 [ 80.315783][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 80.315785][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 80.315786][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 80.315788][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 80.315790][ C1] rcu_core+0x2bf/0x640 [ 80.315791][ C1] handle_softirqs+0x1d8/0x940 [ 80.315793][ C1] ? find_held_lock+0x2b/0x80 [ 80.315796][ C1] ? __lock_release.isra.0+0x6b/0x1a0 [ 80.315797][ C1] ? _local_bh_enable+0xd0/0xd0 [ 80.315799][ C1] __irq_exit_rcu+0x103/0x1c0 [ 80.315801][ C1] irq_exit_rcu+0xe/0x30 [ 80.315802][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 80.315804][ C1] [ 80.315804][ C1] [ 80.315805][ C1] ? rcu_is_watching+0x15/0xd0 [ 80.315807][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 80.315808][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 80.315810][ 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 [ 80.315812][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000296 [ 80.315814][ C1] RAX: 00000000007f3ed7 RBX: ff11000001bb2340 RCX: ffffffff876d9667 [ 80.315815][ C1] RDX: ff11000001bb2340 RSI: ffffffff8a401bcb RDI: ffffffff89e6f6c0 [ 80.315816][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 80.315817][ C1] R10: 0000000000000001 R11: 0000000000000001 R12: 1ff4000000028fc0 [ 80.315818][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 80.315819][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 80.315822][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 80.315824][ C1] default_idle+0x9/0x10 [ 80.315825][ C1] default_idle_call+0x6e/0xb0 [ 80.315827][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 80.315828][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 80.315830][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 80.315832][ C1] ? rcu_is_watching+0x15/0xd0 [ 80.315834][ C1] do_idle+0xf5/0x160 [ 80.315836][ C1] cpu_startup_entry+0x53/0x70 [ 80.315837][ C1] start_secondary+0x204/0x2b0 [ 80.315839][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 80.315840][ C1] common_startup_64+0x13e/0x148 [ 80.315845][ C1] [ 86.894558][ C3] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 86.894737][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 33, name: ksoftirqd/3 [ 86.894887][ C3] preempt_count: 100, expected: 0 [ 86.894962][ C3] RCU nest depth: 0, expected: 0 [ 86.895040][ C3] INFO: lockdep is turned off. [ 86.895122][ C3] Preemption disabled at: [ 86.895123][ C3] [] handle_softirqs+0xf7/0x940 [ 86.895279][ C3] CPU: 3 UID: 0 PID: 33 Comm: ksoftirqd/3 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 86.895282][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 86.895284][ C3] Call Trace: [ 86.895286][ C3] [ 86.895287][ C3] dump_stack_lvl+0x6f/0xa0 [ 86.895293][ C3] ? handle_softirqs+0xf7/0x940 [ 86.895294][ C3] __might_resched.cold+0x20d/0x2d6 [ 86.895298][ C3] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 86.895302][ C3] __mutex_lock+0x118/0x2010 [ 86.895306][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 86.895310][ C3] ? ww_mutex_lock+0x160/0x160 [ 86.895312][ C3] ? rcu_is_watching+0x15/0xd0 [ 86.895316][ C3] ? __tcf_chain_put+0x5f/0xb20 [ 86.895318][ C3] __tcf_chain_put+0x5f/0xb20 [ 86.895319][ C3] ? free_percpu.part.0+0x5f7/0xc80 [ 86.895323][ C3] tcf_action_rcu_free+0x14f/0x1a0 [ 86.895324][ C3] ? rcu_do_batch+0x2b4/0x1020 [ 86.895326][ C3] rcu_do_batch+0x2b6/0x1020 [ 86.895329][ C3] ? rcu_start_this_gp+0x270/0x490 [ 86.895331][ C3] ? trace_rcu_batch_end+0x330/0x330 [ 86.895332][ C3] ? trace_rcu_grace_period+0xcf/0x2c0 [ 86.895334][ C3] ? rcu_is_watching+0x15/0xd0 [ 86.895336][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 86.895339][ C3] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 86.895341][ C3] rcu_core+0x2bf/0x640 [ 86.895343][ C3] handle_softirqs+0x1d8/0x940 [ 86.895345][ C3] ? _local_bh_enable+0xd0/0xd0 [ 86.895346][ C3] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 86.895348][ C3] ? rcu_is_watching+0x15/0xd0 [ 86.895349][ C3] ? rcu_is_watching+0x15/0xd0 [ 86.895351][ C3] run_ksoftirqd+0x39/0x60 [ 86.895352][ C3] smpboot_thread_fn+0x2fb/0x9b0 [ 86.895355][ C3] ? sort_range+0x20/0x20 [ 86.895356][ C3] kthread+0x367/0x460 [ 86.895359][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 86.895360][ C3] ? kthread_affine_node+0x330/0x330 [ 86.895362][ C3] ret_from_fork+0x474/0x6b0 [ 86.895365][ C3] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 86.895366][ C3] ? __switch_to+0x5a3/0xe00 [ 86.895369][ C3] ? kthread_affine_node+0x330/0x330 [ 86.895371][ C3] ret_from_fork_asm+0x11/0x20 [ 86.895374][ C3]