[ 15.658199][ T284] GACT probability NOT on [ 18.178398][ T526] Mirror/redirect action on [ 18.320334][ C1] [ 18.320406][ C1] ================================ [ 18.320492][ C1] WARNING: inconsistent lock state [ 18.320572][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 18.320653][ C1] -------------------------------- [ 18.320731][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.320830][ C1] ksoftirqd/1/23 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.320942][ C1] ffffffffc045f7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.321118][ C1] {SOFTIRQ-ON-W} state was registered at: [ 18.321204][ C1] __lock_acquire+0x378/0xc10 [ 18.321295][ C1] lock_acquire.part.0+0xbc/0x260 [ 18.321375][ C1] _raw_spin_lock+0x33/0x40 [ 18.321456][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 18.321555][ C1] tcf_action_init_1+0x428/0x6b0 [ 18.321635][ C1] tcf_action_init+0x3cf/0x890 [ 18.321714][ C1] tcf_exts_validate_ex+0x411/0x670 [ 18.321801][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 18.321891][ C1] tc_new_tfilter+0x875/0x21e0 [ 18.321971][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 18.322051][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 18.322130][ C1] netlink_unicast+0x486/0x750 [ 18.322209][ C1] netlink_sendmsg+0x735/0xc60 [ 18.322287][ C1] ____sys_sendmsg+0x419/0x850 [ 18.322368][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 18.322448][ C1] __sys_sendmsg+0x145/0x1f0 [ 18.322527][ C1] do_syscall_64+0x117/0x590 [ 18.322607][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 18.322707][ C1] irq event stamp: 1042840 [ 18.322791][ C1] hardirqs last enabled at (1042840): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 18.322959][ C1] hardirqs last disabled at (1042839): [] _raw_spin_lock_irqsave+0x50/0x60 [ 18.323117][ C1] softirqs last enabled at (1042800): [] handle_softirqs+0x611/0x940 [ 18.323260][ C1] softirqs last disabled at (1042805): [] run_ksoftirqd+0x39/0x60 [ 18.323398][ C1] [ 18.323398][ C1] other info that might help us debug this: [ 18.323524][ C1] Possible unsafe locking scenario: [ 18.323524][ C1] [ 18.323641][ C1] CPU0 [ 18.323701][ C1] ---- [ 18.323760][ C1] lock(mirred_list_lock); [ 18.323839][ C1] [ 18.323907][ C1] lock(mirred_list_lock); [ 18.323987][ C1] [ 18.323987][ C1] *** DEADLOCK *** [ 18.323987][ C1] [ 18.324104][ C1] 1 lock held by ksoftirqd/1/23: [ 18.324184][ C1] #0: ffffffffa5d77c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 18.324327][ C1] [ 18.324327][ C1] stack backtrace: [ 18.324425][ C1] CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 18.324428][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.324429][ C1] Call Trace: [ 18.324431][ C1] [ 18.324432][ C1] dump_stack_lvl+0x6f/0xa0 [ 18.324438][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 18.324441][ C1] mark_lock_irq+0x4e3/0x9c0 [ 18.324442][ C1] ? kthread+0x367/0x460 [ 18.324446][ C1] ? save_trace+0x68/0x280 [ 18.324447][ C1] ? __lock_acquire+0x508/0xc10 [ 18.324449][ C1] mark_lock+0x1d7/0xa00 [ 18.324451][ C1] mark_usage+0x42/0x170 [ 18.324452][ C1] __lock_acquire+0x378/0xc10 [ 18.324454][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.324456][ C1] lock_acquire.part.0+0xbc/0x260 [ 18.324458][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.324460][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.324461][ C1] ? lock_acquire+0x134/0x160 [ 18.324463][ C1] _raw_spin_lock+0x33/0x40 [ 18.324465][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.324467][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.324468][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 18.324470][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 18.324472][ C1] rcu_do_batch+0x2b6/0x1020 [ 18.324474][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.324476][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 18.324478][ C1] ? finish_task_switch.isra.0+0x216/0x990 [ 18.324480][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.324482][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 18.324485][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 18.324486][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 18.324488][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 18.324490][ C1] rcu_core+0x2bf/0x640 [ 18.324492][ C1] handle_softirqs+0x1d8/0x940 [ 18.324494][ C1] ? find_held_lock+0x2b/0x80 [ 18.324497][ C1] ? _local_bh_enable+0xd0/0xd0 [ 18.324498][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.324500][ C1] run_ksoftirqd+0x39/0x60 [ 18.324501][ C1] smpboot_thread_fn+0x2fb/0x9b0 [ 18.324504][ C1] ? sort_range+0x20/0x20 [ 18.324506][ C1] kthread+0x367/0x460 [ 18.324507][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 18.324509][ C1] ? kthread_affine_node+0x330/0x330 [ 18.324511][ C1] ret_from_fork+0x474/0x6b0 [ 18.324514][ C1] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 18.324515][ C1] ? __switch_to+0x5a3/0xe00 [ 18.324518][ C1] ? kthread_affine_node+0x330/0x330 [ 18.324520][ C1] ret_from_fork_asm+0x11/0x20 [ 18.324523][ C1] [ 24.879368][ C1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 24.879555][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 23, name: ksoftirqd/1 [ 24.879692][ C1] preempt_count: 100, expected: 0 [ 24.879770][ C1] RCU nest depth: 0, expected: 0 [ 24.879850][ C1] INFO: lockdep is turned off. [ 24.879939][ C1] Preemption disabled at: [ 24.879940][ C1] [] handle_softirqs+0xf7/0x940 [ 24.880096][ C1] CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 24.880100][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.880102][ C1] Call Trace: [ 24.880104][ C1] [ 24.880106][ C1] dump_stack_lvl+0x6f/0xa0 [ 24.880111][ C1] ? handle_softirqs+0xf7/0x940 [ 24.880113][ C1] __might_resched.cold+0x20d/0x2d6 [ 24.880117][ C1] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 24.880121][ C1] __mutex_lock+0x118/0x2010 [ 24.880125][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 24.880129][ C1] ? ww_mutex_lock+0x160/0x160 [ 24.880131][ C1] ? rcu_is_watching+0x15/0xd0 [ 24.880135][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 24.880137][ C1] __tcf_chain_put+0x5f/0xb20 [ 24.880138][ C1] ? free_percpu.part.0+0x5f7/0xc80 [ 24.880142][ C1] tcf_action_rcu_free+0x14f/0x1a0 [ 24.880144][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 24.880146][ C1] rcu_do_batch+0x2b6/0x1020 [ 24.880148][ C1] ? rcu_is_watching+0x15/0xd0 [ 24.880150][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 24.880152][ C1] ? finish_task_switch.isra.0+0x216/0x990 [ 24.880154][ C1] ? rcu_is_watching+0x15/0xd0 [ 24.880155][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 24.880158][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 24.880160][ C1] rcu_core+0x2bf/0x640 [ 24.880162][ C1] handle_softirqs+0x1d8/0x940 [ 24.880164][ C1] ? _local_bh_enable+0xd0/0xd0 [ 24.880165][ C1] ? rcu_is_watching+0x15/0xd0 [ 24.880167][ C1] ? rcu_is_watching+0x15/0xd0 [ 24.880169][ C1] run_ksoftirqd+0x39/0x60 [ 24.880170][ C1] smpboot_thread_fn+0x2fb/0x9b0 [ 24.880173][ C1] ? sort_range+0x20/0x20 [ 24.880174][ C1] kthread+0x367/0x460 [ 24.880177][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 24.880178][ C1] ? kthread_affine_node+0x330/0x330 [ 24.880180][ C1] ret_from_fork+0x474/0x6b0 [ 24.880183][ C1] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 24.880185][ C1] ? __switch_to+0x5a3/0xe00 [ 24.880187][ C1] ? kthread_affine_node+0x330/0x330 [ 24.880189][ C1] ret_from_fork_asm+0x11/0x20 [ 24.880192][ C1]