[ 6584.463582][ T842] netdevsim netdevsim604 eni604np1: renamed from eth1 [ 6584.579469][ T841] netdevsim netdevsim321 eni321np1: renamed from eth0 [ 6591.657434][ T899] [ 6591.657526][ T899] ====================================================== [ 6591.657691][ T899] WARNING: possible circular locking dependency detected [ 6591.657850][ T899] 6.12.0-rc5-virtme #1 Not tainted [ 6591.657976][ T899] ------------------------------------------------------ [ 6591.658137][ T899] modprobe/899 is trying to acquire lock: [ 6591.658264][ T899] ffffffffc06d47c0 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 6591.658498][ T899] [ 6591.658498][ T899] but task is already holding lock: [ 6591.658688][ T899] ffffffff85df8e08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 6591.658914][ T899] [ 6591.658914][ T899] which lock already depends on the new lock. [ 6591.658914][ T899] [ 6591.659160][ T899] [ 6591.659160][ T899] the existing dependency chain (in reverse order) is: [ 6591.659383][ T899] [ 6591.659383][ T899] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 6591.659576][ T899] __lock_acquire+0xb3f/0x1580 [ 6591.659712][ T899] lock_acquire.part.0+0xeb/0x330 [ 6591.659840][ T899] __mutex_lock+0x149/0xac0 [ 6591.659967][ T899] rtnl_newlink+0x64f/0xa20 [ 6591.660096][ T899] rtnetlink_rcv_msg+0x712/0xc10 [ 6591.660224][ T899] netlink_rcv_skb+0x130/0x360 [ 6591.660353][ T899] netlink_unicast+0x44b/0x710 [ 6591.660481][ T899] netlink_sendmsg+0x723/0xbe0 [ 6591.660605][ T899] ____sys_sendmsg+0x7ac/0xa10 [ 6591.660733][ T899] ___sys_sendmsg+0xee/0x170 [ 6591.660865][ T899] __sys_sendmsg+0xcd/0x170 [ 6591.660994][ T899] do_syscall_64+0xc1/0x1d0 [ 6591.661122][ T899] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6591.661284][ T899] [ 6591.661284][ T899] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 6591.661477][ T899] check_prev_add+0x182/0xce0 [ 6591.661605][ T899] validate_chain+0x71d/0x9b0 [ 6591.661730][ T899] __lock_acquire+0xb3f/0x1580 [ 6591.661856][ T899] lock_sync+0xd7/0x180 [ 6591.661981][ T899] __synchronize_srcu+0x9e/0x2b0 [ 6591.662106][ T899] __rtnl_link_unregister+0x14a/0x380 [ 6591.662262][ T899] rtnl_link_unregister+0x14c/0x1c0 [ 6591.662399][ T899] nsim_module_exit+0x10/0x1a [netdevsim] [ 6591.662570][ T899] __do_sys_delete_module+0x2bd/0x470 [ 6591.662726][ T899] do_syscall_64+0xc1/0x1d0 [ 6591.662852][ T899] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6591.663009][ T899] [ 6591.663009][ T899] other info that might help us debug this: [ 6591.663009][ T899] [ 6591.663248][ T899] Possible unsafe locking scenario: [ 6591.663248][ T899] [ 6591.663439][ T899] CPU0 CPU1 [ 6591.663563][ T899] ---- ---- [ 6591.663691][ T899] lock(rtnl_mutex); [ 6591.663788][ T899] lock(&ops->srcu); [ 6591.663943][ T899] lock(rtnl_mutex); [ 6591.664100][ T899] sync(&ops->srcu); [ 6591.664197][ T899] [ 6591.664197][ T899] *** DEADLOCK *** [ 6591.664197][ T899] [ 6591.664382][ T899] 2 locks held by modprobe/899: [ 6591.664507][ T899] #0: ffffffff85ddcc10 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 6591.664763][ T899] #1: ffffffff85df8e08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 6591.664983][ T899] [ 6591.664983][ T899] stack backtrace: [ 6591.665137][ T899] CPU: 3 UID: 0 PID: 899 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 6591.665328][ T899] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 6591.665607][ T899] Call Trace: [ 6591.665704][ T899] [ 6591.665771][ T899] dump_stack_lvl+0x82/0xd0 [ 6591.665901][ T899] print_circular_bug+0x2e2/0x4b0 [ 6591.666028][ T899] check_noncircular+0x2f9/0x3e0 [ 6591.666156][ T899] ? __pfx_check_noncircular+0x10/0x10 [ 6591.666287][ T899] ? __kernel_text_address+0x12/0x40 [ 6591.666414][ T899] ? unwind_get_return_address+0x5e/0xa0 [ 6591.666542][ T899] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 6591.666702][ T899] ? arch_stack_walk+0xa2/0xf0 [ 6591.666830][ T899] ? alloc_chain_hlocks+0x4e0/0x720 [ 6591.666956][ T899] check_prev_add+0x182/0xce0 [ 6591.667083][ T899] ? __pfx_stack_trace_save+0x10/0x10 [ 6591.667210][ T899] validate_chain+0x71d/0x9b0 [ 6591.667343][ T899] ? __pfx_validate_chain+0x10/0x10 [ 6591.667468][ T899] ? mark_lock+0x335/0x3e0 [ 6591.667593][ T899] ? __pfx_validate_chain+0x10/0x10 [ 6591.667720][ T899] __lock_acquire+0xb3f/0x1580 [ 6591.667851][ T899] lock_sync+0xd7/0x180 [ 6591.667947][ T899] ? __synchronize_srcu+0x21/0x2b0 [ 6591.668074][ T899] __synchronize_srcu+0x9e/0x2b0 [ 6591.668199][ T899] ? __pfx___synchronize_srcu+0x10/0x10 [ 6591.668329][ T899] ? hlock_class+0x4e/0x130 [ 6591.668456][ T899] ? mark_lock+0x38/0x3e0 [ 6591.668553][ T899] ? kvm_clock_get_cycles+0x18/0x30 [ 6591.668680][ T899] ? ktime_get_mono_fast_ns+0x84/0x360 [ 6591.668807][ T899] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 6591.668970][ T899] __rtnl_link_unregister+0x14a/0x380 [ 6591.669096][ T899] ? mark_lock+0x38/0x3e0 [ 6591.669192][ T899] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 6591.669354][ T899] ? mark_held_locks+0x9e/0xe0 [ 6591.669484][ T899] rtnl_link_unregister+0x14c/0x1c0 [ 6591.669609][ T899] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 6591.669735][ T899] ? __pfx_woken_wake_function+0x10/0x10 [ 6591.669864][ T899] nsim_module_exit+0x10/0x1a [netdevsim] [ 6591.670003][ T899] __do_sys_delete_module+0x2bd/0x470 [ 6591.670129][ T899] ? __pfx___do_sys_delete_module+0x10/0x10 [ 6591.670287][ T899] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6591.670447][ T899] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6591.670604][ T899] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 6591.670731][ T899] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6591.670887][ T899] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 6591.671075][ T899] do_syscall_64+0xc1/0x1d0 [ 6591.671201][ T899] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6591.671358][ T899] RIP: 0033:0x7f9a7a6c05ab [ 6591.671491][ T899] 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 [ 6591.671938][ T899] RSP: 002b:00007fffbd698a58 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 6591.672131][ T899] RAX: ffffffffffffffda RBX: 00005602eab32ab0 RCX: 00007f9a7a6c05ab [ 6591.672322][ T899] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005602eab32b18 [ 6591.672516][ T899] RBP: 00005602eab32ab0 R08: 0000000000000000 R09: 0000000000000000 [ 6591.672705][ T899] R10: 00007f9a7a81fac0 R11: 0000000000000206 R12: 00005602eab32b18 [ 6591.672892][ T899] R13: 0000000000000000 R14: 00005602eab32b18 R15: 00007fffbd69ad88 [ 6591.673084][ T899]