[ 29.662789][ T265] netdevsim netdevsim1057 eni1057np1: renamed from eth1 [ 29.767308][ T262] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 29.859111][ T266] netdevsim netdevsim5417 eni5417np1: renamed from eth2 [ 60.056370][ T677] ip (677) used greatest stack depth: 23096 bytes left [ 60.673901][ T690] [ 60.674014][ T690] ====================================================== [ 60.674195][ T690] WARNING: possible circular locking dependency detected [ 60.674372][ T690] 6.12.0-rc5-virtme #1 Not tainted [ 60.674517][ T690] ------------------------------------------------------ [ 60.674696][ T690] modprobe/690 is trying to acquire lock: [ 60.674842][ T690] ffffffffc05104e0 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 60.675137][ T690] [ 60.675137][ T690] but task is already holding lock: [ 60.675371][ T690] ffffffff8c3d4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 60.675638][ T690] [ 60.675638][ T690] which lock already depends on the new lock. [ 60.675638][ T690] [ 60.675947][ T690] [ 60.675947][ T690] the existing dependency chain (in reverse order) is: [ 60.676264][ T690] [ 60.676264][ T690] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 60.676490][ T690] __lock_acquire+0xb3f/0x1580 [ 60.676647][ T690] lock_acquire.part.0+0xeb/0x330 [ 60.676788][ T690] __mutex_lock+0x149/0xac0 [ 60.676942][ T690] rtnl_newlink+0x64f/0xa20 [ 60.677092][ T690] rtnetlink_rcv_msg+0x712/0xc10 [ 60.677237][ T690] netlink_rcv_skb+0x130/0x360 [ 60.677382][ T690] netlink_unicast+0x44b/0x710 [ 60.677524][ T690] netlink_sendmsg+0x723/0xbe0 [ 60.677669][ T690] ____sys_sendmsg+0x7ac/0xa10 [ 60.677814][ T690] ___sys_sendmsg+0xee/0x170 [ 60.677976][ T690] __sys_sendmsg+0xcd/0x170 [ 60.678123][ T690] do_syscall_64+0xc1/0x1d0 [ 60.678262][ T690] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.678439][ T690] [ 60.678439][ T690] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 60.678661][ T690] check_prev_add+0x182/0xce0 [ 60.678811][ T690] validate_chain+0x71d/0x9b0 [ 60.678982][ T690] __lock_acquire+0xb3f/0x1580 [ 60.679138][ T690] lock_sync+0xd7/0x180 [ 60.679287][ T690] __synchronize_srcu+0x9e/0x2b0 [ 60.679430][ T690] __rtnl_link_unregister+0x14a/0x380 [ 60.679615][ T690] rtnl_link_unregister+0x14c/0x1c0 [ 60.679766][ T690] nsim_module_exit+0x10/0x1a [netdevsim] [ 60.680013][ T690] __do_sys_delete_module+0x2bd/0x470 [ 60.680195][ T690] do_syscall_64+0xc1/0x1d0 [ 60.680343][ T690] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.680534][ T690] [ 60.680534][ T690] other info that might help us debug this: [ 60.680534][ T690] [ 60.680827][ T690] Possible unsafe locking scenario: [ 60.680827][ T690] [ 60.681050][ T690] CPU0 CPU1 [ 60.681193][ T690] ---- ---- [ 60.681336][ T690] lock(rtnl_mutex); [ 60.681451][ T690] lock(&ops->srcu); [ 60.681635][ T690] lock(rtnl_mutex); [ 60.681818][ T690] sync(&ops->srcu); [ 60.681942][ T690] [ 60.681942][ T690] *** DEADLOCK *** [ 60.681942][ T690] [ 60.682151][ T690] 2 locks held by modprobe/690: [ 60.682301][ T690] #0: ffffffff8c3b8890 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 60.682614][ T690] #1: ffffffff8c3d4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 60.682875][ T690] [ 60.682875][ T690] stack backtrace: [ 60.683074][ T690] CPU: 1 UID: 0 PID: 690 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 60.683293][ T690] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 60.683621][ T690] Call Trace: [ 60.683741][ T690] [ 60.683817][ T690] dump_stack_lvl+0x82/0xd0 [ 60.683990][ T690] print_circular_bug+0x2e2/0x4b0 [ 60.684142][ T690] check_noncircular+0x2f9/0x3e0 [ 60.684291][ T690] ? __pfx_check_noncircular+0x10/0x10 [ 60.684435][ T690] ? __kernel_text_address+0x12/0x40 [ 60.684578][ T690] ? unwind_get_return_address+0x5e/0xa0 [ 60.684803][ T690] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 60.684998][ T690] ? arch_stack_walk+0xa2/0xf0 [ 60.685170][ T690] ? alloc_chain_hlocks+0x4e0/0x720 [ 60.685320][ T690] check_prev_add+0x182/0xce0 [ 60.685567][ T690] ? __pfx_stack_trace_save+0x10/0x10 [ 60.685713][ T690] validate_chain+0x71d/0x9b0 [ 60.685854][ T690] ? __pfx_validate_chain+0x10/0x10 [ 60.686013][ T690] ? mark_lock+0x335/0x3e0 [ 60.686162][ T690] ? __pfx_validate_chain+0x10/0x10 [ 60.686397][ T690] __lock_acquire+0xb3f/0x1580 [ 60.686554][ T690] lock_sync+0xd7/0x180 [ 60.686666][ T690] ? __synchronize_srcu+0x21/0x2b0 [ 60.686811][ T690] __synchronize_srcu+0x9e/0x2b0 [ 60.686986][ T690] ? __pfx___synchronize_srcu+0x10/0x10 [ 60.687132][ T690] ? hlock_class+0x4e/0x130 [ 60.687348][ T690] ? mark_lock+0x38/0x3e0 [ 60.687460][ T690] ? kvm_clock_get_cycles+0x18/0x30 [ 60.687603][ T690] ? ktime_get_mono_fast_ns+0x84/0x360 [ 60.687753][ T690] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 60.688034][ T690] __rtnl_link_unregister+0x14a/0x380 [ 60.688187][ T690] ? mark_lock+0x38/0x3e0 [ 60.688303][ T690] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 60.688489][ T690] ? mark_held_locks+0x9e/0xe0 [ 60.688728][ T690] rtnl_link_unregister+0x14c/0x1c0 [ 60.688880][ T690] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 60.689032][ T690] ? __pfx_woken_wake_function+0x10/0x10 [ 60.689189][ T690] nsim_module_exit+0x10/0x1a [netdevsim] [ 60.689437][ T690] __do_sys_delete_module+0x2bd/0x470 [ 60.689584][ T690] ? __pfx___do_sys_delete_module+0x10/0x10 [ 60.689763][ T690] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 60.689945][ T690] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 60.690127][ T690] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 60.690385][ T690] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 60.690575][ T690] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 60.690775][ T690] do_syscall_64+0xc1/0x1d0 [ 60.690925][ T690] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.691201][ T690] RIP: 0033:0x7fe9cfd285ab [ 60.691354][ T690] 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 [ 60.691964][ T690] RSP: 002b:00007fffc90e5658 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 60.692188][ T690] RAX: ffffffffffffffda RBX: 000055d6045e1980 RCX: 00007fe9cfd285ab [ 60.692500][ T690] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000055d6045e19e8 [ 60.692710][ T690] RBP: 000055d6045e1980 R08: 0000000000000000 R09: 0000000000000000 [ 60.692936][ T690] R10: 00007fe9cfe87ac0 R11: 0000000000000206 R12: 000055d6045e19e8 [ 60.693240][ T690] R13: 0000000000000000 R14: 000055d6045e19e8 R15: 00007fffc90e7988 [ 60.693466][ T690]