[ 26.488358][ T253] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 30.346698][ T291] ip (291) used greatest stack depth: 23616 bytes left [ 59.850372][ T603] Failed to register fib notifier [ 117.810833][ T1192] Failed to register fib notifier [ 153.718827][ T1560] Failed to register fib notifier [ 211.301301][ T2149] Failed to register fib notifier [ 213.369068][ T2180] [ 213.369164][ T2180] ====================================================== [ 213.369335][ T2180] WARNING: possible circular locking dependency detected [ 213.369502][ T2180] 6.12.0-rc5-virtme #1 Not tainted [ 213.369640][ T2180] ------------------------------------------------------ [ 213.369800][ T2180] modprobe/2180 is trying to acquire lock: [ 213.369958][ T2180] ffffffffc027a4e0 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 213.370199][ T2180] [ 213.370199][ T2180] but task is already holding lock: [ 213.370394][ T2180] ffffffff9a3d4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 213.370637][ T2180] [ 213.370637][ T2180] which lock already depends on the new lock. [ 213.370637][ T2180] [ 213.370893][ T2180] [ 213.370893][ T2180] the existing dependency chain (in reverse order) is: [ 213.371132][ T2180] [ 213.371132][ T2180] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 213.371334][ T2180] __lock_acquire+0xb3f/0x1580 [ 213.371468][ T2180] lock_acquire.part.0+0xeb/0x330 [ 213.371598][ T2180] __mutex_lock+0x149/0xac0 [ 213.371736][ T2180] rtnl_newlink+0x64f/0xa20 [ 213.371868][ T2180] rtnetlink_rcv_msg+0x712/0xc10 [ 213.372000][ T2180] netlink_rcv_skb+0x130/0x360 [ 213.372131][ T2180] netlink_unicast+0x44b/0x710 [ 213.372276][ T2180] netlink_sendmsg+0x723/0xbe0 [ 213.372405][ T2180] ____sys_sendmsg+0x7ac/0xa10 [ 213.372536][ T2180] ___sys_sendmsg+0xee/0x170 [ 213.372669][ T2180] __sys_sendmsg+0xcd/0x170 [ 213.372800][ T2180] do_syscall_64+0xc1/0x1d0 [ 213.372929][ T2180] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 213.373093][ T2180] [ 213.373093][ T2180] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 213.373291][ T2180] check_prev_add+0x182/0xce0 [ 213.373426][ T2180] validate_chain+0x71d/0x9b0 [ 213.373559][ T2180] __lock_acquire+0xb3f/0x1580 [ 213.373687][ T2180] lock_sync+0xd7/0x180 [ 213.373820][ T2180] __synchronize_srcu+0x9e/0x2b0 [ 213.373949][ T2180] __rtnl_link_unregister+0x14a/0x380 [ 213.374111][ T2180] rtnl_link_unregister+0x14c/0x1c0 [ 213.374241][ T2180] nsim_module_exit+0x10/0x1a [netdevsim] [ 213.374414][ T2180] __do_sys_delete_module+0x2bd/0x470 [ 213.374576][ T2180] do_syscall_64+0xc1/0x1d0 [ 213.374706][ T2180] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 213.374879][ T2180] [ 213.374879][ T2180] other info that might help us debug this: [ 213.374879][ T2180] [ 213.375131][ T2180] Possible unsafe locking scenario: [ 213.375131][ T2180] [ 213.375324][ T2180] CPU0 CPU1 [ 213.375459][ T2180] ---- ---- [ 213.375588][ T2180] lock(rtnl_mutex); [ 213.375688][ T2180] lock(&ops->srcu); [ 213.375853][ T2180] lock(rtnl_mutex); [ 213.376015][ T2180] sync(&ops->srcu); [ 213.376116][ T2180] [ 213.376116][ T2180] *** DEADLOCK *** [ 213.376116][ T2180] [ 213.376304][ T2180] 2 locks held by modprobe/2180: [ 213.376433][ T2180] #0: ffffffff9a3b8890 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 213.376701][ T2180] #1: ffffffff9a3d4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 213.376933][ T2180] [ 213.376933][ T2180] stack backtrace: [ 213.377109][ T2180] CPU: 1 UID: 0 PID: 2180 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 213.377303][ T2180] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 213.377612][ T2180] Call Trace: [ 213.377715][ T2180] [ 213.377788][ T2180] dump_stack_lvl+0x82/0xd0 [ 213.377925][ T2180] print_circular_bug+0x2e2/0x4b0 [ 213.378058][ T2180] check_noncircular+0x2f9/0x3e0 [ 213.378197][ T2180] ? __pfx_check_noncircular+0x10/0x10 [ 213.378331][ T2180] ? __kernel_text_address+0x12/0x40 [ 213.378463][ T2180] ? unwind_get_return_address+0x5e/0xa0 [ 213.378606][ T2180] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 213.378768][ T2180] ? arch_stack_walk+0xa2/0xf0 [ 213.378903][ T2180] ? alloc_chain_hlocks+0x4e0/0x720 [ 213.379043][ T2180] check_prev_add+0x182/0xce0 [ 213.379175][ T2180] ? __pfx_stack_trace_save+0x10/0x10 [ 213.379318][ T2180] validate_chain+0x71d/0x9b0 [ 213.379463][ T2180] ? __pfx_validate_chain+0x10/0x10 [ 213.379594][ T2180] ? mark_lock+0x335/0x3e0 [ 213.379732][ T2180] ? __pfx_validate_chain+0x10/0x10 [ 213.379865][ T2180] __lock_acquire+0xb3f/0x1580 [ 213.380006][ T2180] lock_sync+0xd7/0x180 [ 213.380112][ T2180] ? __synchronize_srcu+0x21/0x2b0 [ 213.380248][ T2180] __synchronize_srcu+0x9e/0x2b0 [ 213.380379][ T2180] ? __pfx___synchronize_srcu+0x10/0x10 [ 213.380518][ T2180] ? hlock_class+0x4e/0x130 [ 213.380653][ T2180] ? mark_lock+0x38/0x3e0 [ 213.380758][ T2180] ? kvm_clock_get_cycles+0x18/0x30 [ 213.380892][ T2180] ? ktime_get_mono_fast_ns+0x84/0x360 [ 213.381030][ T2180] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 213.381214][ T2180] __rtnl_link_unregister+0x14a/0x380 [ 213.381344][ T2180] ? mark_lock+0x38/0x3e0 [ 213.381441][ T2180] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 213.381613][ T2180] ? mark_held_locks+0x9e/0xe0 [ 213.381748][ T2180] rtnl_link_unregister+0x14c/0x1c0 [ 213.381880][ T2180] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 213.382019][ T2180] ? __pfx_woken_wake_function+0x10/0x10 [ 213.382154][ T2180] nsim_module_exit+0x10/0x1a [netdevsim] [ 213.382298][ T2180] __do_sys_delete_module+0x2bd/0x470 [ 213.382433][ T2180] ? __pfx___do_sys_delete_module+0x10/0x10 [ 213.382598][ T2180] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 213.382770][ T2180] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 213.382933][ T2180] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 213.383065][ T2180] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 213.383230][ T2180] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 213.383398][ T2180] do_syscall_64+0xc1/0x1d0 [ 213.383614][ T2180] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 213.383778][ T2180] RIP: 0033:0x7f276555f5ab [ 213.383917][ T2180] Code: 73 01 c3 48 8b 0d 55 98 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 25 98 1b 00 f7 d8 64 89 01 48 [ 213.384463][ T2180] RSP: 002b:00007ffc0dd9a768 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 213.384659][ T2180] RAX: ffffffffffffffda RBX: 000055b71a7f6980 RCX: 00007f276555f5ab [ 213.384869][ T2180] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000055b71a7f69e8 [ 213.385142][ T2180] RBP: 000055b71a7f6980 R08: 0000000000000000 R09: 0000000000000000 [ 213.385337][ T2180] R10: 00007f27656beac0 R11: 0000000000000206 R12: 000055b71a7f69e8 [ 213.385538][ T2180] R13: 0000000000000000 R14: 000055b71a7f69e8 R15: 00007ffc0dd9ca98 [ 213.385813][ T2180]