[ 8.523394][ T187] ip (187) used greatest stack depth: 24008 bytes left [ 15.355272][ T283] GACT probability NOT on [ 17.840539][ T526] Mirror/redirect action on [ 17.972727][ C0] [ 17.972821][ C0] ================================ [ 17.972919][ C0] WARNING: inconsistent lock state [ 17.973013][ C0] 7.1.0-rc5-virtme #1 Not tainted [ 17.973114][ C0] -------------------------------- [ 17.973206][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.973320][ C0] tc/534 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.973416][ C0] ffffffffc03c07b8 (mirred_list_lock){+.?.}-{3:3}, at: tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 17.973607][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.973701][ C0] __lock_acquire+0x378/0xc10 [ 17.973799][ C0] lock_acquire.part.0+0xbc/0x260 [ 17.973892][ C0] _raw_spin_lock+0x33/0x40 [ 17.973985][ C0] tcf_mirred_init+0x844/0xd70 [act_mirred] [ 17.974104][ C0] tcf_action_init_1+0x428/0x6b0 [ 17.974196][ C0] tcf_action_init+0x3cf/0x890 [ 17.974287][ C0] tcf_exts_validate_ex+0x411/0x670 [ 17.974379][ C0] fl_change+0xed4/0x4e77 [cls_flower] [ 17.974474][ C0] tc_new_tfilter+0x875/0x21e0 [ 17.974566][ C0] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 17.974660][ C0] netlink_rcv_skb+0x14e/0x3a0 [ 17.974753][ C0] netlink_unicast+0x486/0x750 [ 17.974845][ C0] netlink_sendmsg+0x735/0xc60 [ 17.974936][ C0] ____sys_sendmsg+0x419/0x850 [ 17.975031][ C0] ___sys_sendmsg+0x14e/0x1d0 [ 17.975123][ C0] __sys_sendmsg+0x145/0x1f0 [ 17.975217][ C0] do_syscall_64+0x117/0x590 [ 17.975308][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.975424][ C0] irq event stamp: 6970 [ 17.975498][ C0] hardirqs last enabled at (6970): [] _raw_spin_unlock_irqrestore+0x53/0x80 [ 17.975677][ C0] hardirqs last disabled at (6969): [] _raw_spin_lock_irqsave+0x50/0x60 [ 17.975836][ C0] softirqs last enabled at (4980): [] handle_softirqs+0x611/0x940 [ 17.976036][ C0] softirqs last disabled at (6919): [] __irq_exit_rcu+0x103/0x1c0 [ 17.976195][ C0] [ 17.976195][ C0] other info that might help us debug this: [ 17.976330][ C0] Possible unsafe locking scenario: [ 17.976330][ C0] [ 17.976466][ C0] CPU0 [ 17.976534][ C0] ---- [ 17.976604][ C0] lock(mirred_list_lock); [ 17.976697][ C0] [ 17.976766][ C0] lock(mirred_list_lock); [ 17.976857][ C0] [ 17.976857][ C0] *** DEADLOCK *** [ 17.976857][ C0] [ 17.976993][ C0] 3 locks held by tc/534: [ 17.977072][ C0] #0: ff1100000f400378 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0xf8/0x320 [ 17.977235][ C0] #1: ffffffff877905f8 (remove_cache_srcu){.+.+}-{0:0}, at: kasan_quarantine_reduce+0x84/0x240 [ 17.977417][ C0] #2: ffffffff87577c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 17.977583][ C0] [ 17.977583][ C0] stack backtrace: [ 17.977698][ C0] CPU: 0 UID: 0 PID: 534 Comm: tc Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 17.977701][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.977703][ C0] Call Trace: [ 17.977704][ C0] [ 17.977705][ C0] dump_stack_lvl+0x6f/0xa0 [ 17.977710][ C0] print_usage_bug.part.0.cold+0xa9/0xb7 [ 17.977713][ C0] ? filter_irq_stacks+0xd0/0xd0 [ 17.977717][ C0] mark_lock_irq+0x4e3/0x9c0 [ 17.977718][ C0] ? sysvec_apic_timer_interrupt+0x9d/0xe0 [ 17.977720][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.977722][ C0] ? save_trace+0x68/0x280 [ 17.977723][ C0] ? __mmap_new_file_vma+0x6d0/0x9e0 [ 17.977726][ C0] mark_lock+0x1d7/0xa00 [ 17.977728][ C0] mark_usage+0x42/0x170 [ 17.977730][ C0] __lock_acquire+0x378/0xc10 [ 17.977731][ C0] ? mark_held_locks+0x40/0x70 [ 17.977732][ C0] ? rcu_do_batch+0x2b4/0x1020 [ 17.977735][ C0] lock_acquire.part.0+0xbc/0x260 [ 17.977737][ C0] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 17.977738][ C0] ? rcu_is_watching+0x15/0xd0 [ 17.977740][ C0] ? lock_acquire+0x134/0x160 [ 17.977742][ C0] _raw_spin_lock+0x33/0x40 [ 17.977744][ C0] ? tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 17.977745][ C0] tcf_mirred_release+0x1d/0x2e0 [act_mirred] [ 17.977747][ C0] tcf_action_rcu_free+0x74/0x1a0 [ 17.977748][ C0] ? rcu_do_batch+0x2b4/0x1020 [ 17.977750][ C0] rcu_do_batch+0x2b6/0x1020 [ 17.977753][ C0] ? trace_rcu_batch_end+0x330/0x330 [ 17.977755][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.977756][ C0] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.977758][ C0] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 17.977759][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 17.977761][ C0] rcu_core+0x2bf/0x640 [ 17.977763][ C0] handle_softirqs+0x1d8/0x940 [ 17.977765][ C0] ? find_held_lock+0x2b/0x80 [ 17.977768][ C0] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.977769][ C0] ? _local_bh_enable+0xd0/0xd0 [ 17.977771][ C0] __irq_exit_rcu+0x103/0x1c0 [ 17.977772][ C0] irq_exit_rcu+0xe/0x30 [ 17.977774][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 17.977775][ C0] [ 17.977776][ C0] [ 17.977777][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.977779][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x36/0x80 [ 17.977781][ C0] 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 [ 17.977783][ C0] RSP: 0018:ffa0000000577268 EFLAGS: 00000246 [ 17.977786][ C0] RAX: 0000000000000096 RBX: ffffffff8a2bc530 RCX: ffffffff86690613 [ 17.977787][ C0] RDX: ff1100000b1d0040 RSI: ffffffff87001bcb RDI: ffffffff86a6f6c0 [ 17.977788][ C0] RBP: 0000000000000216 R08: 0000000000000000 R09: 0000000000000000 [ 17.977789][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffd40000002a2e10 [ 17.977789][ C0] R13: ffffffff868e01e0 R14: ffffffff8a2bc530 R15: 0000000000000000 [ 17.977791][ C0] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 17.977793][ C0] debug_object_activate+0x329/0x4b0 [ 17.977797][ C0] ? lookup_object_or_alloc.part.0+0x580/0x580 [ 17.977800][ C0] ? check_object+0xc4/0x340 [ 17.977803][ C0] ? __free_slab+0x110/0x110 [ 17.977804][ C0] __call_rcu_common.constprop.0+0x3d/0xa10 [ 17.977806][ C0] qlist_free_all+0x5c/0x110 [ 17.977808][ C0] kasan_quarantine_reduce+0x196/0x240 [ 17.977810][ C0] __kasan_slab_alloc+0x4b/0x70 [ 17.977812][ C0] kmem_cache_alloc_noprof+0x221/0x5f0 [ 17.977814][ C0] mas_preallocate+0x9d6/0x10f0 [ 17.977818][ C0] ? mark_held_locks+0x40/0x70 [ 17.977819][ C0] ? mas_wr_slot_store+0xc20/0xc20 [ 17.977821][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.977823][ C0] ? kmem_cache_alloc_noprof+0x265/0x5f0 [ 17.977825][ C0] ? lockdep_init_map_type+0x5d/0x250 [ 17.977826][ C0] __mmap_new_vma+0x328/0x11b0 [ 17.977829][ C0] ? __mmap_new_file_vma+0x9e0/0x9e0 [ 17.977830][ C0] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.977832][ C0] __mmap_region+0x817/0xc70 [ 17.977834][ C0] ? vma_merge_new_range+0xb30/0xb30 [ 17.977835][ C0] ? filemap_get_pages+0x678/0xc80 [ 17.977839][ C0] ? mark_usage+0x61/0x170 [ 17.977840][ C0] ? copy_page_to_iter+0x139/0x290 [ 17.977843][ C0] ? folio_mark_accessed+0x15e/0x9c0 [ 17.977849][ C0] ? mas_prev+0xae/0xc0 [ 17.977853][ C0] ? vm_unmapped_area+0x181/0x1f0 [ 17.977856][ C0] ? arch_get_unmapped_area_topdown+0x2b1/0x870 [ 17.977860][ C0] mmap_region+0x26d/0x490 [ 17.977862][ C0] ? mm_take_all_locks+0xa50/0xa50 [ 17.977863][ C0] ? __might_fault+0x97/0x140 [ 17.977866][ C0] ? __get_unmapped_area+0x190/0x2c0 [ 17.977868][ C0] ? ovl_file_end_write+0x70/0x70 [ 17.977871][ C0] do_mmap+0x9cc/0xf80 [ 17.977873][ C0] ? __ia32_sys_brk+0x50/0x50 [ 17.977875][ C0] ? down_write_killable+0xcd/0x260 [ 17.977877][ C0] ? down_write+0x1f0/0x1f0 [ 17.977878][ C0] vm_mmap_pgoff+0x16c/0x320 [ 17.977881][ C0] ? randomize_page+0x80/0x80 [ 17.977883][ C0] ? __fget_files+0x1e3/0x460 [ 17.977886][ C0] ksys_mmap_pgoff+0x1ed/0x560 [ 17.977888][ C0] ? rcu_is_watching+0x15/0xd0 [ 17.977890][ C0] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.977891][ C0] ? do_syscall_64+0x82/0x590 [ 17.977892][ C0] do_syscall_64+0x117/0x590 [ 17.977893][ C0] ? trace_hardirqs_off+0xd/0x30 [ 17.977896][ C0] ? exc_page_fault+0xee/0x100 [ 17.977898][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.977899][ C0] RIP: 0033:0x7f64f7b9d85c [ 17.977902][ C0] Code: 1e fa 41 f7 c1 ff 0f 00 00 75 33 55 48 89 e5 41 54 41 89 cc 53 48 89 fb 48 85 ff 74 51 45 89 e2 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 24 5b 41 5c 5d c3 0f 1f 80 00 00 00 00 c7 05 [ 17.977903][ C0] RSP: 002b:00007ffe9a0465f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 17.977904][ C0] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f64f7b9d85c [ 17.977905][ C0] RDX: 0000000000000005 RSI: 00000000000325d0 RDI: 0000000000000000 [ 17.977906][ C0] RBP: 00007ffe9a046600 R08: 0000000000000005 R09: 0000000000000000 [ 17.977906][ C0] R10: 0000000000000802 R11: 0000000000000246 R12: 0000000000000802 [ 17.977907][ C0] R13: 0000000000000002 R14: 00007ffe9a046ab0 R15: 0000000000000000 [ 17.977909][ C0] [ 24.477458][ C2] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 24.477684][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 24.477864][ C2] preempt_count: 101, expected: 0 [ 24.477987][ C2] RCU nest depth: 0, expected: 0 [ 24.478114][ C2] INFO: lockdep is turned off. [ 24.478233][ C2] Preemption disabled at: [ 24.478236][ C2] [<0000000000000000>] 0x0 [ 24.478475][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 24.478479][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.478481][ C2] Call Trace: [ 24.478483][ C2] [ 24.478484][ C2] dump_stack_lvl+0x6f/0xa0 [ 24.478492][ C2] __might_resched.cold+0x20d/0x2d6 [ 24.478495][ C2] ? default_idle_call+0x6e/0xb0 [ 24.478499][ C2] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 24.478503][ C2] ? start_secondary+0x204/0x2b0 [ 24.478506][ C2] __mutex_lock+0x118/0x2010 [ 24.478508][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 24.478512][ C2] ? ww_mutex_lock+0x160/0x160 [ 24.478516][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 24.478517][ C2] __tcf_chain_put+0x5f/0xb20 [ 24.478519][ C2] ? free_percpu.part.0+0x5f7/0xc80 [ 24.478523][ C2] tcf_action_rcu_free+0x14f/0x1a0 [ 24.478525][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 24.478528][ C2] rcu_do_batch+0x2b6/0x1020 [ 24.478530][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 24.478532][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 24.478535][ C2] ? do_raw_spin_unlock+0x59/0x250 [ 24.478538][ C2] ? trace_hardirqs_on+0x36/0x40 [ 24.478539][ C2] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 24.478542][ C2] rcu_core+0x2bf/0x640 [ 24.478544][ C2] handle_softirqs+0x1d8/0x940 [ 24.478546][ C2] ? clockevents_tick_resume+0x60/0x60 [ 24.478549][ C2] ? _local_bh_enable+0xd0/0xd0 [ 24.478550][ C2] ? rcu_is_watching+0x15/0xd0 [ 24.478552][ C2] ? lock_release+0x17c/0x1f0 [ 24.478554][ C2] __irq_exit_rcu+0x103/0x1c0 [ 24.478555][ C2] irq_exit_rcu+0xe/0x30 [ 24.478557][ C2] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 24.478559][ C2] [ 24.478559][ C2] [ 24.478560][ C2] ? rcu_is_watching+0x15/0xd0 [ 24.478561][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.478564][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x10 [ 24.478566][ C2] 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 [ 24.478568][ C2] RSP: 0018:ffa0000000157de8 EFLAGS: 00000246 [ 24.478572][ C2] RAX: 0000000000000002 RBX: ff11000001bb4640 RCX: 0000000000000001 [ 24.478573][ C2] RDX: 0000000000000002 RSI: ffffffff86a6f640 RDI: ffffffff842d9667 [ 24.478574][ C2] RBP: 0000000000000000 R08: ffffffff866694f1 R09: 1fe2200006a6639a [ 24.478575][ C2] R10: 0000000000000002 R11: 0000000000000000 R12: 1ff400000002afc0 [ 24.478575][ C2] R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 [ 24.478577][ C2] ? ct_kernel_exit.constprop.0+0x101/0x160 [ 24.478579][ C2] ? cpuidle_idle_call.constprop.0+0x237/0x410 [ 24.478582][ C2] default_idle+0x9/0x10 [ 24.478584][ C2] default_idle_call+0x6e/0xb0 [ 24.478585][ C2] cpuidle_idle_call.constprop.0+0x237/0x410 [ 24.478587][ C2] ? arch_cpu_idle_exit+0x40/0x40 [ 24.478588][ C2] ? mark_tsc_async_resets+0x30/0x30 [ 24.478590][ C2] ? flush_smp_call_function_queue+0xec/0x160 [ 24.478592][ C2] ? rcu_is_watching+0x15/0xd0 [ 24.478593][ C2] do_idle+0xf5/0x160 [ 24.478595][ C2] cpu_startup_entry+0x53/0x70 [ 24.478596][ C2] start_secondary+0x204/0x2b0 [ 24.478598][ C2] ? set_cpu_sibling_map+0x1fb0/0x1fb0 [ 24.478599][ C2] common_startup_64+0x13e/0x148 [ 24.478604][ C2]