[ 16.076413][ T284] GACT probability NOT on [ 18.610374][ T491] Mirror/redirect action on [ 18.759917][ C1] [ 18.760013][ C1] ================================ [ 18.760108][ C1] WARNING: inconsistent lock state [ 18.760196][ C1] 7.1.0-rc5-virtme #1 Not tainted [ 18.760287][ C1] -------------------------------- [ 18.760375][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 18.760487][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 18.760600][ C1] ffffffffc02bb7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.760791][ C1] {SOFTIRQ-ON-W} state was registered at: [ 18.760881][ C1] __lock_acquire+0x378/0xc10 [ 18.760981][ C1] lock_acquire.part.0+0xbc/0x260 [ 18.761069][ C1] _raw_spin_lock+0x33/0x40 [ 18.761163][ C1] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 18.761274][ C1] tcf_action_init_1+0x428/0x6b0 [ 18.761364][ C1] tcf_action_init+0x3cf/0x890 [ 18.761451][ C1] tcf_exts_validate_ex+0x411/0x670 [ 18.761540][ C1] fl_change+0xed4/0x4e77 [cls_flower] [ 18.761632][ C1] tc_new_tfilter+0x875/0x21e0 [ 18.761720][ C1] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 18.761817][ C1] netlink_rcv_skb+0x14e/0x3a0 [ 18.761904][ C1] netlink_unicast+0x486/0x750 [ 18.761991][ C1] netlink_sendmsg+0x735/0xc60 [ 18.762082][ C1] ____sys_sendmsg+0x419/0x850 [ 18.762171][ C1] ___sys_sendmsg+0x14e/0x1d0 [ 18.762258][ C1] __sys_sendmsg+0x145/0x1f0 [ 18.762346][ C1] do_syscall_64+0x117/0x590 [ 18.762434][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 18.762543][ C1] irq event stamp: 646332 [ 18.762610][ C1] hardirqs last enabled at (646332): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 18.762792][ C1] hardirqs last disabled at (646331): [] _raw_spin_lock_irqsave+0x50/0x60 [ 18.762965][ C1] softirqs last enabled at (646256): [] handle_softirqs+0x611/0x940 [ 18.763118][ C1] softirqs last disabled at (646273): [] __irq_exit_rcu+0x103/0x1c0 [ 18.763323][ C1] [ 18.763323][ C1] other info that might help us debug this: [ 18.763452][ C1] Possible unsafe locking scenario: [ 18.763452][ C1] [ 18.763583][ C1] CPU0 [ 18.763693][ C1] ---- [ 18.763760][ C1] lock(mirred_list_lock); [ 18.763856][ C1] [ 18.763922][ C1] lock(mirred_list_lock); [ 18.764009][ C1] [ 18.764009][ C1] *** DEADLOCK *** [ 18.764009][ C1] [ 18.764185][ C1] 1 lock held by swapper/1/0: [ 18.764276][ C1] #0: ffffffff97577c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 18.764431][ C1] [ 18.764431][ C1] stack backtrace: [ 18.764589][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 18.764593][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.764595][ C1] Call Trace: [ 18.764596][ C1] [ 18.764598][ C1] dump_stack_lvl+0x6f/0xa0 [ 18.764603][ C1] print_usage_bug.part.0.cold+0xa9/0xb7 [ 18.764606][ C1] ? filter_irq_stacks+0xd0/0xd0 [ 18.764609][ C1] mark_lock_irq+0x4e3/0x9c0 [ 18.764611][ C1] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 18.764613][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.764615][ C1] ? save_trace+0x68/0x280 [ 18.764617][ C1] mark_lock+0x1d7/0xa00 [ 18.764619][ C1] mark_usage+0x42/0x170 [ 18.764621][ C1] __lock_acquire+0x378/0xc10 [ 18.764622][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.764624][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 18.764629][ C1] lock_acquire.part.0+0xbc/0x260 [ 18.764630][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.764632][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.764634][ C1] ? lock_acquire+0x134/0x160 [ 18.764636][ C1] _raw_spin_lock+0x33/0x40 [ 18.764638][ C1] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.764639][ C1] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 18.764641][ C1] tcf_action_rcu_free+0x74/0x1a0 [ 18.764643][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 18.764644][ C1] rcu_do_batch+0x2b6/0x1020 [ 18.764647][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 18.764649][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.764651][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 18.764653][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 18.764654][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 18.764656][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 18.764658][ C1] rcu_core+0x2bf/0x640 [ 18.764660][ C1] handle_softirqs+0x1d8/0x940 [ 18.764661][ C1] ? find_held_lock+0x2b/0x80 [ 18.764664][ C1] ? __lock_release.isra.0+0x6b/0x1a0 [ 18.764666][ C1] ? _local_bh_enable+0xd0/0xd0 [ 18.764668][ C1] __irq_exit_rcu+0x103/0x1c0 [ 18.764669][ C1] irq_exit_rcu+0xe/0x30 [ 18.764671][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 18.764673][ C1] [ 18.764674][ C1] [ 18.764674][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.764676][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.764678][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 18.764680][ 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 [ 18.764682][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000296 [ 18.764685][ C1] RAX: 000000000009dc7f RBX: ff11000001bb2340 RCX: ffffffff942d9667 [ 18.764686][ C1] RDX: ff11000001bb2340 RSI: ffffffff97001bcb RDI: ffffffff96a6f6c0 [ 18.764687][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 18.764688][ C1] R10: 0000000000000001 R11: 0000000000000001 R12: 1ff4000000028fc0 [ 18.764688][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 18.764690][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 18.764693][ C1] ? lockdep_hardirqs_on+0x8c/0x130 [ 18.764695][ C1] default_idle+0x9/0x10 [ 18.764697][ C1] default_idle_call+0x6e/0xb0 [ 18.764699][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 18.764700][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 18.764702][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 18.764704][ C1] ? rcu_is_watching+0x15/0xd0 [ 18.764706][ C1] do_idle+0xf5/0x160 [ 18.764708][ C1] cpu_startup_entry+0x53/0x70 [ 18.764709][ C1] start_secondary+0x204/0x2b0 [ 18.764711][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 18.764713][ C1] common_startup_64+0x13e/0x148 [ 18.764718][ C1] [ 25.549952][ C1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 25.550236][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 25.550522][ C1] preempt_count: 101, expected: 0 [ 25.550680][ C1] RCU nest depth: 0, expected: 0 [ 25.550815][ C1] INFO: lockdep is turned off. [ 25.550963][ C1] Preemption disabled at: [ 25.550964][ C1] [<0000000000000000>] 0x0 [ 25.551235][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 25.551239][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.551241][ C1] Call Trace: [ 25.551242][ C1] [ 25.551244][ C1] dump_stack_lvl+0x6f/0xa0 [ 25.551252][ C1] __might_resched.cold+0x20d/0x2d6 [ 25.551255][ C1] ? default_idle_call+0x6e/0xb0 [ 25.551259][ C1] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 25.551263][ C1] ? start_secondary+0x204/0x2b0 [ 25.551268][ C1] __mutex_lock+0x118/0x2010 [ 25.551271][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 25.551276][ C1] ? ww_mutex_lock+0x160/0x160 [ 25.551280][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 25.551281][ C1] __tcf_chain_put+0x5f/0xb20 [ 25.551283][ C1] ? free_percpu.part.0+0x5f7/0xc80 [ 25.551287][ C1] tcf_action_rcu_free+0x14f/0x1a0 [ 25.551288][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 25.551292][ C1] rcu_do_batch+0x2b6/0x1020 [ 25.551295][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 25.551297][ C1] ? rcu_is_watching+0x15/0xd0 [ 25.551299][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 25.551302][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 25.551304][ C1] rcu_core+0x2bf/0x640 [ 25.551306][ C1] handle_softirqs+0x1d8/0x940 [ 25.551309][ C1] ? clockevents_tick_resume+0x60/0x60 [ 25.551311][ C1] ? _local_bh_enable+0xd0/0xd0 [ 25.551313][ C1] ? rcu_is_watching+0x15/0xd0 [ 25.551314][ C1] ? lock_release+0x17c/0x1f0 [ 25.551317][ C1] __irq_exit_rcu+0x103/0x1c0 [ 25.551318][ C1] irq_exit_rcu+0xe/0x30 [ 25.551320][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 25.551322][ C1] [ 25.551323][ C1] [ 25.551323][ C1] ? rcu_is_watching+0x15/0xd0 [ 25.551325][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.551328][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 25.551331][ 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 [ 25.551333][ C1] RSP: 0018:ffa0000000147de8 EFLAGS: 00000246 [ 25.551336][ C1] RAX: 0000000000000001 RBX: ff11000001bb2340 RCX: 0000000000000001 [ 25.551338][ C1] RDX: 0000000000000001 RSI: ffffffff96a6f640 RDI: ffffffff942d9667 [ 25.551338][ C1] RBP: 0000000000000000 R08: ffffffff966694f1 R09: 1fe2200006a5639a [ 25.551339][ C1] R10: 0000000000000001 R11: 0000000000000000 R12: 1ff4000000028fc0 [ 25.551340][ C1] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 25.551341][ C1] ? ct_kernel_exit.constprop.0+0x101/0x160 [ 25.551343][ C1] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 25.551346][ C1] default_idle+0x9/0x10 [ 25.551348][ C1] default_idle_call+0x6e/0xb0 [ 25.551350][ C1] cpuidle_idle_call.constprop.0+0x237/0x410 [ 25.551351][ C1] ? arch_cpu_idle_exit+0x40/0x40 [ 25.551353][ C1] ? mark_tsc_async_resets+0x30/0x30 [ 25.551354][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 25.551356][ C1] ? rcu_is_watching+0x15/0xd0 [ 25.551358][ C1] do_idle+0xf5/0x160 [ 25.551359][ C1] cpu_startup_entry+0x53/0x70 [ 25.551361][ C1] start_secondary+0x204/0x2b0 [ 25.551362][ C1] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 25.551364][ C1] common_startup_64+0x13e/0x148 [ 25.551368][ C1]