[ 72.807416][ T1223] Mirror/redirect action on [ 72.953898][ C3] [ 72.953976][ C3] ================================ [ 72.954066][ C3] WARNING: inconsistent lock state [ 72.954157][ C3] 7.1.0-rc5-virtme #1 Not tainted [ 72.954243][ C3] -------------------------------- [ 72.954330][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 72.954436][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 72.954544][ C3] ffffffffc038a7b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 72.954732][ C3] {SOFTIRQ-ON-W} state was registered at: [ 72.954821][ C3] __lock_acquire+0x378/0xc10 [ 72.954920][ C3] lock_acquire.part.0+0xbc/0x260 [ 72.955007][ C3] _raw_spin_lock+0x33/0x40 [ 72.955095][ C3] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 72.955207][ C3] tcf_action_init_1+0x428/0x6b0 [ 72.955296][ C3] tcf_action_init+0x3cf/0x890 [ 72.955382][ C3] tcf_exts_validate_ex+0x411/0x670 [ 72.955473][ C3] fl_change+0xed4/0x4e77 [cls_flower] [ 72.955560][ C3] tc_new_tfilter+0x875/0x21e0 [ 72.955645][ C3] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 72.955733][ C3] netlink_rcv_skb+0x14e/0x3a0 [ 72.955821][ C3] netlink_unicast+0x486/0x750 [ 72.955908][ C3] netlink_sendmsg+0x735/0xc60 [ 72.955994][ C3] ____sys_sendmsg+0x419/0x850 [ 72.956084][ C3] ___sys_sendmsg+0x14e/0x1d0 [ 72.956177][ C3] __sys_sendmsg+0x145/0x1f0 [ 72.956263][ C3] do_syscall_64+0x117/0x590 [ 72.956350][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 72.956461][ C3] irq event stamp: 2091410 [ 72.956552][ C3] hardirqs last enabled at (2091410): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 72.956723][ C3] hardirqs last disabled at (2091409): [] _raw_spin_lock_irqsave+0x50/0x60 [ 72.956897][ C3] softirqs last enabled at (2091334): [] handle_softirqs+0x611/0x940 [ 72.957047][ C3] softirqs last disabled at (2091359): [] __irq_exit_rcu+0x103/0x1c0 [ 72.957200][ C3] [ 72.957200][ C3] other info that might help us debug this: [ 72.957327][ C3] Possible unsafe locking scenario: [ 72.957327][ C3] [ 72.957457][ C3] CPU0 [ 72.957521][ C3] ---- [ 72.957590][ C3] lock(mirred_list_lock); [ 72.957680][ C3] [ 72.957744][ C3] lock(mirred_list_lock); [ 72.957831][ C3] [ 72.957831][ C3] *** DEADLOCK *** [ 72.957831][ C3] [ 72.957958][ C3] 1 lock held by swapper/3/0: [ 72.958045][ C3] #0: ffffffffa4977c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 72.958212][ C3] [ 72.958212][ C3] stack backtrace: [ 72.958332][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 72.958335][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 72.958337][ C3] Call Trace: [ 72.958339][ C3] [ 72.958340][ C3] dump_stack_lvl+0x6f/0xa0 [ 72.958345][ C3] print_usage_bug.part.0.cold+0xa9/0xb7 [ 72.958348][ C3] ? filter_irq_stacks+0xd0/0xd0 [ 72.958351][ C3] mark_lock_irq+0x4e3/0x9c0 [ 72.958353][ C3] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 72.958355][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.958357][ C3] ? save_trace+0x68/0x280 [ 72.958359][ C3] mark_lock+0x1d7/0xa00 [ 72.958361][ C3] mark_usage+0x42/0x170 [ 72.958362][ C3] __lock_acquire+0x378/0xc10 [ 72.958364][ C3] ? rcu_is_watching+0x15/0xd0 [ 72.958366][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 72.958370][ C3] lock_acquire.part.0+0xbc/0x260 [ 72.958372][ C3] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 72.958373][ C3] ? rcu_is_watching+0x15/0xd0 [ 72.958375][ C3] ? lock_acquire+0x134/0x160 [ 72.958377][ C3] _raw_spin_lock+0x33/0x40 [ 72.958379][ C3] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 72.958380][ C3] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 72.958382][ C3] tcf_action_rcu_free+0x74/0x1a0 [ 72.958384][ C3] ? rcu_do_batch+0x2b4/0x1020 [ 72.958385][ C3] rcu_do_batch+0x2b6/0x1020 [ 72.958387][ C3] ? lock_acquire.part.0+0xbc/0x260 [ 72.958389][ C3] ? trace_rcu_batch_end+0x330/0x330 [ 72.958391][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 72.958393][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 72.958394][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 72.958396][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 72.958397][ C3] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 72.958399][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 72.958401][ C3] rcu_core+0x2bf/0x640 [ 72.958403][ C3] handle_softirqs+0x1d8/0x940 [ 72.958404][ C3] ? find_held_lock+0x2b/0x80 [ 72.958407][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 72.958409][ C3] ? _local_bh_enable+0xd0/0xd0 [ 72.958411][ C3] __irq_exit_rcu+0x103/0x1c0 [ 72.958412][ C3] irq_exit_rcu+0xe/0x30 [ 72.958414][ C3] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 72.958416][ C3] [ 72.958416][ C3] [ 72.958417][ C3] ? rcu_is_watching+0x15/0xd0 [ 72.958419][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.958420][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 72.958423][ C3] 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 [ 72.958425][ C3] RSP: 0018:ffa0000000167de8 EFLAGS: 00000296 [ 72.958427][ C3] RAX: 00000000001fe95d RBX: ff11000001bd0040 RCX: ffffffffa16d9667 [ 72.958428][ C3] RDX: ff11000001bd0040 RSI: ffffffffa4401bcb RDI: ffffffffa3e6f6c0 [ 72.958429][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 72.958430][ C3] R10: 0000000000000003 R11: 0000000000000001 R12: 1ff400000002cfc0 [ 72.958431][ C3] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 72.958432][ C3] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 72.958435][ C3] ? lockdep_hardirqs_on+0x8c/0x130 [ 72.958437][ C3] default_idle+0x9/0x10 [ 72.958439][ C3] default_idle_call+0x6e/0xb0 [ 72.958441][ C3] cpuidle_idle_call.constprop.0+0x237/0x410 [ 72.958442][ C3] ? arch_cpu_idle_exit+0x40/0x40 [ 72.958444][ C3] ? mark_tsc_async_resets+0x30/0x30 [ 72.958446][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 72.958448][ C3] ? rcu_is_watching+0x15/0xd0 [ 72.958450][ C3] do_idle+0xf5/0x160 [ 72.958451][ C3] cpu_startup_entry+0x53/0x70 [ 72.958453][ C3] start_secondary+0x204/0x2b0 [ 72.958455][ C3] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 72.958457][ C3] common_startup_64+0x13e/0x148 [ 72.958461][ C3] [ 79.492129][ C1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 79.492331][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 894, name: perl [ 79.492457][ C1] preempt_count: 101, expected: 0 [ 79.492549][ C1] RCU nest depth: 0, expected: 0 [ 79.492661][ C1] INFO: lockdep is turned off. [ 79.492752][ C1] Preemption disabled at: [ 79.492754][ C1] [<0000000000000000>] 0x0 [ 79.492914][ C1] CPU: 1 UID: 0 PID: 894 Comm: perl Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 79.492917][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 79.492919][ C1] Call Trace: [ 79.492921][ C1] [ 79.492922][ C1] dump_stack_lvl+0x6f/0xa0 [ 79.492930][ C1] __might_resched.cold+0x20d/0x2d6 [ 79.492934][ C1] ? process_output_block+0x5c/0x760 [ 79.492938][ C1] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 79.492942][ C1] ? new_sync_write+0x333/0x750 [ 79.492946][ C1] ? ksys_write+0x116/0x250 [ 79.492947][ C1] ? do_syscall_64+0x117/0x590 [ 79.492950][ C1] ? entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 79.492952][ C1] __mutex_lock+0x118/0x2010 [ 79.492955][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 79.492959][ C1] ? ww_mutex_lock+0x160/0x160 [ 79.492962][ C1] ? __tcf_chain_put+0x5f/0xb20 [ 79.492964][ C1] __tcf_chain_put+0x5f/0xb20 [ 79.492966][ C1] ? free_percpu.part.0+0x5f7/0xc80 [ 79.492969][ C1] tcf_action_rcu_free+0x14f/0x1a0 [ 79.492971][ C1] ? rcu_do_batch+0x2b4/0x1020 [ 79.492974][ C1] rcu_do_batch+0x2b6/0x1020 [ 79.492977][ C1] ? trace_rcu_batch_end+0x330/0x330 [ 79.492979][ C1] ? rcu_is_watching+0x15/0xd0 [ 79.492981][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 79.492984][ C1] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 79.492986][ C1] rcu_core+0x2bf/0x640 [ 79.492988][ C1] handle_softirqs+0x1d8/0x940 [ 79.492991][ C1] ? clockevents_tick_resume+0x60/0x60 [ 79.492994][ C1] ? _local_bh_enable+0xd0/0xd0 [ 79.492996][ C1] ? lock_release+0x17c/0x1f0 [ 79.492998][ C1] __irq_exit_rcu+0x103/0x1c0 [ 79.493000][ C1] irq_exit_rcu+0xe/0x30 [ 79.493001][ C1] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 79.493004][ C1] [ 79.493004][ C1] [ 79.493005][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 79.493007][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x36/0x80 [ 79.493010][ C1] Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 21 7e ca fd 48 89 df e8 a9 d4 ca fd f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f 01 00 00 00 e8 30 62 bd fd 65 8b 05 29 0a fe 01 85 c0 74 12 5b [ 79.493012][ C1] RSP: 0018:ffa00000019b7a88 EFLAGS: 00000246 [ 79.493015][ C1] RAX: 0000000000000046 RBX: ffffffffa77137a0 RCX: 0000000000000000 [ 79.493017][ C1] RDX: 0000000000000003 RSI: ffffffffa3e6f640 RDI: ffffffffa3a90613 [ 79.493018][ C1] RBP: 0000000000000286 R08: ffffffffa19b3820 R09: 1ffffffff4a47d1a [ 79.493019][ C1] R10: 0000000000000001 R11: 0000000000000000 R12: ffffffffa77138a8 [ 79.493019][ C1] R13: 0000000000001000 R14: ffffffffa77138e0 R15: 0000000000000286 [ 79.493021][ C1] ? trace_irq_enable.constprop.0+0x30/0x180 [ 79.493023][ C1] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 79.493025][ C1] uart_write_room+0x29f/0x810 [ 79.493028][ C1] process_output_block+0x5c/0x760 [ 79.493030][ C1] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 79.493031][ C1] ? do_raw_spin_unlock+0x59/0x250 [ 79.493034][ C1] n_tty_write+0x3b9/0x950 [ 79.493036][ C1] ? n_tty_receive_signal_char+0x110/0x110 [ 79.493038][ C1] ? _mutex_trylock_nest_lock+0x235/0x390 [ 79.493040][ C1] ? __init_waitqueue_head+0x160/0x160 [ 79.493043][ C1] ? do_raw_spin_unlock+0x59/0x250 [ 79.493044][ C1] ? trace_hardirqs_on+0x36/0x40 [ 79.493046][ C1] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 79.493048][ C1] iterate_tty_write+0x291/0x590 [ 79.493050][ C1] ? tty_ldisc_ref_wait+0x28/0x80 [ 79.493052][ C1] file_tty_write.isra.0+0x1bd/0x290 [ 79.493054][ C1] ? redirected_tty_write+0xd0/0xd0 [ 79.493055][ C1] new_sync_write+0x333/0x750 [ 79.493057][ C1] ? trace_hardirqs_on+0x36/0x40 [ 79.493059][ C1] ? __schedule+0xd77/0x1a70 [ 79.493061][ C1] ? new_sync_read+0x740/0x740 [ 79.493064][ C1] vfs_write+0x6a4/0xc10 [ 79.493066][ C1] ksys_write+0x116/0x250 [ 79.493067][ C1] ? __ia32_sys_read+0xc0/0xc0 [ 79.493069][ C1] ? restore_fpregs_from_fpstate+0x44/0x130 [ 79.493072][ C1] ? rcu_is_watching+0x15/0xd0 [ 79.493074][ C1] do_syscall_64+0x117/0x590 [ 79.493075][ C1] ? trace_hardirqs_off+0xd/0x30 [ 79.493077][ C1] ? exc_page_fault+0xee/0x100 [ 79.493079][ C1] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 79.493080][ C1] RIP: 0033:0x7f7da593508e [ 79.493082][ C1] Code: 4d 89 d8 e8 94 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 79.493083][ C1] RSP: 002b:00007ffd1ec651b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 79.493084][ C1] RAX: ffffffffffffffda RBX: 000055789da693a0 RCX: 00007f7da593508e [ 79.493085][ C1] RDX: 0000000000000001 RSI: 000055789da693a0 RDI: 0000000000000001 [ 79.493086][ C1] RBP: 00007ffd1ec651c0 R08: 0000000000000000 R09: 0000000000000000 [ 79.493087][ C1] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001 [ 79.493088][ C1] R13: 000055789da30010 R14: 0000000000000001 R15: 000055789da693a0 [ 79.493090][ C1]