[ 26.685947][ T261] netdevsim netdevsim1057 eni1057np1: renamed from eth1 [ 26.773200][ T256] netdevsim netdevsim5417 eni5417np1: renamed from eth2 [ 26.873073][ T259] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 56.347309][ T691] [ 56.347411][ T691] ====================================================== [ 56.347587][ T691] WARNING: possible circular locking dependency detected [ 56.347767][ T691] 6.12.0-rc5-virtme #1 Not tainted [ 56.347907][ T691] ------------------------------------------------------ [ 56.348081][ T691] modprobe/691 is trying to acquire lock: [ 56.348231][ T691] ffffffffc04d54e0 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 56.348498][ T691] [ 56.348498][ T691] but task is already holding lock: [ 56.348697][ T691] ffffffffb3fd4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 56.348950][ T691] [ 56.348950][ T691] which lock already depends on the new lock. [ 56.348950][ T691] [ 56.349229][ T691] [ 56.349229][ T691] the existing dependency chain (in reverse order) is: [ 56.349472][ T691] [ 56.349472][ T691] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 56.349684][ T691] __lock_acquire+0xb3f/0x1580 [ 56.349830][ T691] lock_acquire.part.0+0xeb/0x330 [ 56.349976][ T691] __mutex_lock+0x149/0xac0 [ 56.350119][ T691] rtnl_newlink+0x64f/0xa20 [ 56.350262][ T691] rtnetlink_rcv_msg+0x712/0xc10 [ 56.350403][ T691] netlink_rcv_skb+0x130/0x360 [ 56.350547][ T691] netlink_unicast+0x44b/0x710 [ 56.350689][ T691] netlink_sendmsg+0x723/0xbe0 [ 56.350841][ T691] ____sys_sendmsg+0x7ac/0xa10 [ 56.350987][ T691] ___sys_sendmsg+0xee/0x170 [ 56.351135][ T691] __sys_sendmsg+0xcd/0x170 [ 56.351272][ T691] do_syscall_64+0xc1/0x1d0 [ 56.351421][ T691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.351596][ T691] [ 56.351596][ T691] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 56.351813][ T691] check_prev_add+0x182/0xce0 [ 56.351957][ T691] validate_chain+0x71d/0x9b0 [ 56.352098][ T691] __lock_acquire+0xb3f/0x1580 [ 56.352241][ T691] lock_sync+0xd7/0x180 [ 56.352388][ T691] __synchronize_srcu+0x9e/0x2b0 [ 56.352527][ T691] __rtnl_link_unregister+0x14a/0x380 [ 56.352699][ T691] rtnl_link_unregister+0x14c/0x1c0 [ 56.352839][ T691] nsim_module_exit+0x10/0x1a [netdevsim] [ 56.353053][ T691] __do_sys_delete_module+0x2bd/0x470 [ 56.353228][ T691] do_syscall_64+0xc1/0x1d0 [ 56.353364][ T691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.353547][ T691] [ 56.353547][ T691] other info that might help us debug this: [ 56.353547][ T691] [ 56.353820][ T691] Possible unsafe locking scenario: [ 56.353820][ T691] [ 56.354020][ T691] CPU0 CPU1 [ 56.354161][ T691] ---- ---- [ 56.354308][ T691] lock(rtnl_mutex); [ 56.354416][ T691] lock(&ops->srcu); [ 56.354585][ T691] lock(rtnl_mutex); [ 56.354772][ T691] sync(&ops->srcu); [ 56.354885][ T691] [ 56.354885][ T691] *** DEADLOCK *** [ 56.354885][ T691] [ 56.355084][ T691] 2 locks held by modprobe/691: [ 56.355228][ T691] #0: ffffffffb3fb8890 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 56.355516][ T691] #1: ffffffffb3fd4908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 56.355764][ T691] [ 56.355764][ T691] stack backtrace: [ 56.355946][ T691] CPU: 3 UID: 0 PID: 691 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 56.356161][ T691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 56.356462][ T691] Call Trace: [ 56.356573][ T691] [ 56.356647][ T691] dump_stack_lvl+0x82/0xd0 [ 56.356795][ T691] print_circular_bug+0x2e2/0x4b0 [ 56.356941][ T691] check_noncircular+0x2f9/0x3e0 [ 56.357083][ T691] ? __pfx_check_noncircular+0x10/0x10 [ 56.357232][ T691] ? __kernel_text_address+0x12/0x40 [ 56.357379][ T691] ? unwind_get_return_address+0x5e/0xa0 [ 56.357522][ T691] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 56.357701][ T691] ? arch_stack_walk+0xa2/0xf0 [ 56.357845][ T691] ? alloc_chain_hlocks+0x4e0/0x720 [ 56.357992][ T691] check_prev_add+0x182/0xce0 [ 56.358134][ T691] ? __pfx_stack_trace_save+0x10/0x10 [ 56.358285][ T691] validate_chain+0x71d/0x9b0 [ 56.358431][ T691] ? __pfx_validate_chain+0x10/0x10 [ 56.358573][ T691] ? mark_lock+0x335/0x3e0 [ 56.358718][ T691] ? __pfx_validate_chain+0x10/0x10 [ 56.358860][ T691] __lock_acquire+0xb3f/0x1580 [ 56.359010][ T691] lock_sync+0xd7/0x180 [ 56.359120][ T691] ? __synchronize_srcu+0x21/0x2b0 [ 56.359265][ T691] __synchronize_srcu+0x9e/0x2b0 [ 56.359406][ T691] ? __pfx___synchronize_srcu+0x10/0x10 [ 56.359549][ T691] ? hlock_class+0x4e/0x130 [ 56.359693][ T691] ? mark_lock+0x38/0x3e0 [ 56.359804][ T691] ? kvm_clock_get_cycles+0x18/0x30 [ 56.359949][ T691] ? ktime_get_mono_fast_ns+0x84/0x360 [ 56.360089][ T691] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 56.360268][ T691] __rtnl_link_unregister+0x14a/0x380 [ 56.360411][ T691] ? mark_lock+0x38/0x3e0 [ 56.360517][ T691] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 56.360692][ T691] ? mark_held_locks+0x9e/0xe0 [ 56.360835][ T691] rtnl_link_unregister+0x14c/0x1c0 [ 56.360975][ T691] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 56.361118][ T691] ? __pfx_woken_wake_function+0x10/0x10 [ 56.361267][ T691] nsim_module_exit+0x10/0x1a [netdevsim] [ 56.361421][ T691] __do_sys_delete_module+0x2bd/0x470 [ 56.361565][ T691] ? __pfx___do_sys_delete_module+0x10/0x10 [ 56.361741][ T691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 56.361928][ T691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 56.362107][ T691] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 56.362247][ T691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 56.362426][ T691] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 56.362600][ T691] do_syscall_64+0xc1/0x1d0 [ 56.362744][ T691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.362918][ T691] RIP: 0033:0x7f8a32bcd5ab [ 56.363065][ T691] 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 [ 56.363577][ T691] RSP: 002b:00007ffe514e1a78 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 56.363789][ T691] RAX: ffffffffffffffda RBX: 00005627d221e980 RCX: 00007f8a32bcd5ab [ 56.364000][ T691] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005627d221e9e8 [ 56.364212][ T691] RBP: 00005627d221e980 R08: 0000000000000000 R09: 0000000000000000 [ 56.364418][ T691] R10: 00007f8a32d2cac0 R11: 0000000000000206 R12: 00005627d221e9e8 [ 56.364628][ T691] R13: 0000000000000000 R14: 00005627d221e9e8 R15: 00007ffe514e3da8 [ 56.364845][ T691]