[ 1791.826093][ T7758] netdevsim netdevsim318 eni318np1: renamed from eth0 [ 1791.913377][ T7757] netdevsim netdevsim669 eni669np1: renamed from eth1 [ 1799.455922][ T7816] [ 1799.456017][ T7816] ====================================================== [ 1799.456174][ T7816] WARNING: possible circular locking dependency detected [ 1799.456339][ T7816] 6.12.0-rc5-virtme #1 Not tainted [ 1799.456471][ T7816] ------------------------------------------------------ [ 1799.456626][ T7816] modprobe/7816 is trying to acquire lock: [ 1799.456786][ T7816] ffffffffc081f700 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 1799.457019][ T7816] [ 1799.457019][ T7816] but task is already holding lock: [ 1799.457207][ T7816] ffffffffb63f7e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1799.457436][ T7816] [ 1799.457436][ T7816] which lock already depends on the new lock. [ 1799.457436][ T7816] [ 1799.457687][ T7816] [ 1799.457687][ T7816] the existing dependency chain (in reverse order) is: [ 1799.457926][ T7816] [ 1799.457926][ T7816] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 1799.458118][ T7816] __lock_acquire+0xb3f/0x1580 [ 1799.458249][ T7816] lock_acquire.part.0+0xeb/0x330 [ 1799.458370][ T7816] __mutex_lock+0x149/0xac0 [ 1799.458495][ T7816] rtnl_newlink+0x64b/0xa30 [ 1799.458615][ T7816] rtnetlink_rcv_msg+0x712/0xc10 [ 1799.458738][ T7816] netlink_rcv_skb+0x130/0x360 [ 1799.458865][ T7816] netlink_unicast+0x44b/0x710 [ 1799.458987][ T7816] netlink_sendmsg+0x723/0xbe0 [ 1799.459107][ T7816] ____sys_sendmsg+0x7ac/0xa10 [ 1799.459229][ T7816] ___sys_sendmsg+0xee/0x170 [ 1799.459352][ T7816] __sys_sendmsg+0xcd/0x170 [ 1799.459474][ T7816] do_syscall_64+0xc1/0x1d0 [ 1799.459603][ T7816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1799.459758][ T7816] [ 1799.459758][ T7816] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 1799.459959][ T7816] check_prev_add+0x182/0xce0 [ 1799.460086][ T7816] validate_chain+0x71d/0x9b0 [ 1799.460209][ T7816] __lock_acquire+0xb3f/0x1580 [ 1799.460334][ T7816] lock_sync+0xd7/0x180 [ 1799.460460][ T7816] __synchronize_srcu+0x9e/0x2b0 [ 1799.460589][ T7816] __rtnl_link_unregister+0x14a/0x380 [ 1799.460747][ T7816] rtnl_link_unregister+0x14c/0x1c0 [ 1799.460873][ T7816] nsim_module_exit+0x10/0x1a [netdevsim] [ 1799.461052][ T7816] __do_sys_delete_module+0x2bd/0x470 [ 1799.461210][ T7816] do_syscall_64+0xc1/0x1d0 [ 1799.461336][ T7816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1799.461495][ T7816] [ 1799.461495][ T7816] other info that might help us debug this: [ 1799.461495][ T7816] [ 1799.461754][ T7816] Possible unsafe locking scenario: [ 1799.461754][ T7816] [ 1799.461960][ T7816] CPU0 CPU1 [ 1799.462093][ T7816] ---- ---- [ 1799.462213][ T7816] lock(rtnl_mutex); [ 1799.462306][ T7816] lock(&ops->srcu); [ 1799.462456][ T7816] lock(rtnl_mutex); [ 1799.462607][ T7816] sync(&ops->srcu); [ 1799.462701][ T7816] [ 1799.462701][ T7816] *** DEADLOCK *** [ 1799.462701][ T7816] [ 1799.462879][ T7816] 2 locks held by modprobe/7816: [ 1799.463000][ T7816] #0: ffffffffb63dca10 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 1799.463248][ T7816] #1: ffffffffb63f7e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1799.463461][ T7816] [ 1799.463461][ T7816] stack backtrace: [ 1799.463612][ T7816] CPU: 1 UID: 0 PID: 7816 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 1799.463799][ T7816] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1799.464069][ T7816] Call Trace: [ 1799.464165][ T7816] [ 1799.464233][ T7816] dump_stack_lvl+0x82/0xd0 [ 1799.464362][ T7816] print_circular_bug+0x2e2/0x4b0 [ 1799.464485][ T7816] check_noncircular+0x2f9/0x3e0 [ 1799.464606][ T7816] ? __pfx_check_noncircular+0x10/0x10 [ 1799.464733][ T7816] ? __kernel_text_address+0x12/0x40 [ 1799.464860][ T7816] ? unwind_get_return_address+0x5e/0xa0 [ 1799.464986][ T7816] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 1799.465139][ T7816] ? arch_stack_walk+0xa2/0xf0 [ 1799.465264][ T7816] ? alloc_chain_hlocks+0x4e0/0x720 [ 1799.465405][ T7816] check_prev_add+0x182/0xce0 [ 1799.465545][ T7816] ? __pfx_stack_trace_save+0x10/0x10 [ 1799.465671][ T7816] validate_chain+0x71d/0x9b0 [ 1799.465799][ T7816] ? __pfx_validate_chain+0x10/0x10 [ 1799.465920][ T7816] ? mark_lock+0x335/0x3e0 [ 1799.466041][ T7816] ? __pfx_validate_chain+0x10/0x10 [ 1799.466163][ T7816] __lock_acquire+0xb3f/0x1580 [ 1799.466292][ T7816] lock_sync+0xd7/0x180 [ 1799.466415][ T7816] ? __synchronize_srcu+0x21/0x2b0 [ 1799.466542][ T7816] __synchronize_srcu+0x9e/0x2b0 [ 1799.466666][ T7816] ? __pfx___synchronize_srcu+0x10/0x10 [ 1799.466794][ T7816] ? hlock_class+0x4e/0x130 [ 1799.466927][ T7816] ? mark_lock+0x38/0x3e0 [ 1799.467022][ T7816] ? kvm_clock_get_cycles+0x18/0x30 [ 1799.467149][ T7816] ? ktime_get_mono_fast_ns+0x84/0x360 [ 1799.467278][ T7816] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 1799.467438][ T7816] __rtnl_link_unregister+0x14a/0x380 [ 1799.467574][ T7816] ? mark_lock+0x38/0x3e0 [ 1799.467672][ T7816] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 1799.467823][ T7816] ? mark_held_locks+0x9e/0xe0 [ 1799.467948][ T7816] rtnl_link_unregister+0x14c/0x1c0 [ 1799.468071][ T7816] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 1799.468193][ T7816] ? __pfx_woken_wake_function+0x10/0x10 [ 1799.468319][ T7816] nsim_module_exit+0x10/0x1a [netdevsim] [ 1799.468456][ T7816] __do_sys_delete_module+0x2bd/0x470 [ 1799.468577][ T7816] ? __pfx___do_sys_delete_module+0x10/0x10 [ 1799.468732][ T7816] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1799.468889][ T7816] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1799.469042][ T7816] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 1799.469167][ T7816] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1799.469319][ T7816] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 1799.469471][ T7816] do_syscall_64+0xc1/0x1d0 [ 1799.469596][ T7816] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1799.469758][ T7816] RIP: 0033:0x7fc3467a05ab [ 1799.469889][ T7816] 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 [ 1799.470322][ T7816] RSP: 002b:00007ffde7c57ce8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 1799.470512][ T7816] RAX: ffffffffffffffda RBX: 0000559ab9b88ab0 RCX: 00007fc3467a05ab [ 1799.470702][ T7816] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000559ab9b88b18 [ 1799.470883][ T7816] RBP: 0000559ab9b88ab0 R08: 0000000000000000 R09: 0000000000000000 [ 1799.471066][ T7816] R10: 00007fc3468ffac0 R11: 0000000000000206 R12: 0000559ab9b88b18 [ 1799.471278][ T7816] R13: 0000000000000000 R14: 0000559ab9b88b18 R15: 00007ffde7c5a018 [ 1799.471469][ T7816]