[ 13.170692][ C0] [ 13.170886][ C0] ================================ [ 13.171186][ C0] WARNING: inconsistent lock state [ 13.171486][ C0] 6.15.0-virtme #1 Not tainted [ 13.171782][ C0] -------------------------------- [ 13.172075][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.172431][ C0] kworker/u16:0/12 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.172797][ C0] ffffffffab595218 (&xa->xa_lock#8){+.?.}-{3:3}, at: xa_set_mark+0x73/0x120 [ 13.173327][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.173618][ C0] __lock_acquire+0x20b/0x7e0 [ 13.173936][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.174250][ C0] _raw_spin_lock+0x33/0x40 [ 13.174566][ C0] xa_store+0x1c/0x50 [ 13.174805][ C0] ref_tracker_dir_debugfs+0x168/0x1b0 [ 13.175099][ C0] init_net_debugfs+0x15/0x70 [ 13.175300][ C0] do_one_initcall+0x8c/0x1e0 [ 13.175602][ C0] do_initcalls+0x176/0x280 [ 13.175877][ C0] kernel_init_freeable+0x22d/0x300 [ 13.176193][ C0] kernel_init+0x20/0x200 [ 13.176494][ C0] ret_from_fork+0x240/0x320 [ 13.176783][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.177090][ C0] irq event stamp: 3132 [ 13.177325][ C0] hardirqs last enabled at (3132): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.177942][ C0] hardirqs last disabled at (3131): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.178490][ C0] softirqs last enabled at (3016): [] unregister_netdevice_many_notify+0xdd0/0x1c00 [ 13.179124][ C0] softirqs last disabled at (3017): [] do_softirq+0xb1/0xe0 [ 13.179700][ C0] [ 13.179700][ C0] other info that might help us debug this: [ 13.180180][ C0] Possible unsafe locking scenario: [ 13.180180][ C0] [ 13.180637][ C0] CPU0 [ 13.180869][ C0] ---- [ 13.181101][ C0] lock(&xa->xa_lock#8); [ 13.181343][ C0] [ 13.181568][ C0] lock(&xa->xa_lock#8); [ 13.181884][ C0] [ 13.181884][ C0] *** DEADLOCK *** [ 13.181884][ C0] [ 13.182344][ C0] 5 locks held by kworker/u16:0/12: [ 13.182662][ C0] #0: ffff8880010ae548 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7e5/0x1660 [ 13.183290][ C0] #1: ffffc900000c7d40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdf6/0x1660 [ 13.183842][ C0] #2: ffffffffa943cb90 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xae/0x810 [ 13.184409][ C0] #3: ffffffffa945a088 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x636/0x8a0 [ 13.184970][ C0] #4: ffffffffa8b793c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.185532][ C0] [ 13.185532][ C0] stack backtrace: [ 13.185922][ C0] CPU: 0 UID: 0 PID: 12 Comm: kworker/u16:0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.185930][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.185933][ C0] Workqueue: netns cleanup_net [ 13.185939][ C0] Call Trace: [ 13.185942][ C0] [ 13.185945][ C0] dump_stack_lvl+0x82/0xd0 [ 13.185954][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.185962][ C0] mark_lock_irq+0x343/0x400 [ 13.185971][ C0] ? save_trace+0x52/0x170 [ 13.185979][ C0] mark_lock+0x174/0x2f0 [ 13.185984][ C0] mark_usage+0x46/0x150 [ 13.185989][ C0] __lock_acquire+0x20b/0x7e0 [ 13.185994][ C0] ? unwind_next_frame+0x4f8/0x1e10 [ 13.186002][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.186010][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.186014][ C0] ? xa_set_mark+0x73/0x120 [ 13.186021][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.186027][ C0] ? lock_acquire+0x10c/0x170 [ 13.186031][ C0] ? xa_set_mark+0x73/0x120 [ 13.186038][ C0] _raw_spin_lock+0x33/0x40 [ 13.186043][ C0] ? xa_set_mark+0x73/0x120 [ 13.186047][ C0] xa_set_mark+0x73/0x120 [ 13.186052][ C0] ? __pfx_xa_set_mark+0x10/0x10 [ 13.186056][ C0] ? __lock_acquire+0x44d/0x7e0 [ 13.186065][ C0] ? find_held_lock+0x2b/0x80 [ 13.186072][ C0] ref_tracker_dir_exit+0xb2/0x740 [ 13.186080][ C0] ? trace_kfree+0x2a/0xd0 [ 13.186087][ C0] ? kfree+0x2d/0x320 [ 13.186093][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.186098][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.186104][ C0] ? ref_tracker_free+0x35d/0x900 [ 13.186110][ C0] ? __lock_acquire+0x44d/0x7e0 [ 13.186114][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.186119][ C0] ? __sk_destruct+0x383/0x780 [ 13.186125][ C0] ? rcu_do_batch+0x34f/0xf20 [ 13.186130][ C0] ? rcu_core+0x2bb/0x500 [ 13.186135][ C0] ? handle_softirqs+0x21b/0x620 [ 13.186143][ C0] __put_net+0x83/0x140 [ 13.186150][ C0] ? ret_from_fork+0x240/0x320 [ 13.186155][ C0] ? __pfx___put_net+0x10/0x10 [ 13.186163][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 13.186171][ C0] __sk_destruct+0x58a/0x780 [ 13.186176][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.186182][ C0] rcu_do_batch+0x34f/0xf20 [ 13.186189][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.186197][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.186203][ C0] ? mark_held_locks+0x49/0x80 [ 13.186208][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.186214][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.186222][ C0] rcu_core+0x2bb/0x500 [ 13.186229][ C0] handle_softirqs+0x21b/0x620 [ 13.186244][ C0] ? unregister_netdevice_many_notify+0xdd0/0x1c00 [ 13.186251][ C0] do_softirq+0xb1/0xe0 [ 13.186255][ C0] [ 13.186256][ C0] [ 13.186258][ C0] __local_bh_enable_ip+0x105/0x130 [ 13.186263][ C0] unregister_netdevice_many_notify+0xdd0/0x1c00 [ 13.186273][ C0] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 13.186278][ C0] ? rtnl_is_locked+0x15/0x20 [ 13.186285][ C0] ? unregister_netdevice_queue+0x6f/0x410 [ 13.186291][ C0] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 13.186301][ C0] ? lockdep_rtnl_is_held+0x1a/0x30 [ 13.186306][ C0] ? sit_exit_rtnl_net+0x2e1/0x3e0 [ 13.186317][ C0] ops_undo_list+0x723/0x8a0 [ 13.186326][ C0] ? __pfx_ops_undo_list+0x10/0x10 [ 13.186332][ C0] ? __local_bh_enable_ip+0xa9/0x130 [ 13.186339][ C0] cleanup_net+0x3a1/0x810 [ 13.186346][ C0] ? __pfx_cleanup_net+0x10/0x10 [ 13.186352][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.186359][ C0] process_one_work+0xe43/0x1660 [ 13.186372][ C0] ? __pfx_process_one_work+0x10/0x10 [ 13.186381][ C0] ? assign_work+0x16c/0x240 [ 13.186388][ C0] worker_thread+0x591/0xcf0 [ 13.186400][ C0] ? __pfx_worker_thread+0x10/0x10 [ 13.186406][ C0] kthread+0x37b/0x600 [ 13.186414][ C0] ? __pfx_kthread+0x10/0x10 [ 13.186418][ C0] ? ret_from_fork+0x1b/0x320 [ 13.186422][ C0] ? __lock_release+0x5d/0x170 [ 13.186428][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.186432][ C0] ? __pfx_kthread+0x10/0x10 [ 13.186439][ C0] ret_from_fork+0x240/0x320 [ 13.186443][ C0] ? __pfx_kthread+0x10/0x10 [ 13.186449][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.186462][ C0]