[ 1315.979198][T10632] netdevsim netdevsim263 eni263np1: renamed from eth0 [ 1316.075375][T10631] netdevsim netdevsim678 eni678np1: renamed from eth1 [ 1323.052320][T10691] [ 1323.052415][T10691] ====================================================== [ 1323.052597][T10691] WARNING: possible circular locking dependency detected [ 1323.052768][T10691] 6.12.0-rc5-virtme #1 Not tainted [ 1323.052895][T10691] ------------------------------------------------------ [ 1323.053052][T10691] modprobe/10691 is trying to acquire lock: [ 1323.053209][T10691] ffffffffc08b0700 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 1323.053441][T10691] [ 1323.053441][T10691] but task is already holding lock: [ 1323.053626][T10691] ffffffff87bf7d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1323.053857][T10691] [ 1323.053857][T10691] which lock already depends on the new lock. [ 1323.053857][T10691] [ 1323.054103][T10691] [ 1323.054103][T10691] the existing dependency chain (in reverse order) is: [ 1323.054316][T10691] [ 1323.054316][T10691] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 1323.054503][T10691] __lock_acquire+0xb3f/0x1580 [ 1323.054633][T10691] lock_acquire.part.0+0xeb/0x330 [ 1323.054758][T10691] __mutex_lock+0x149/0xac0 [ 1323.054886][T10691] rtnl_newlink+0x64b/0xa30 [ 1323.055009][T10691] rtnetlink_rcv_msg+0x712/0xc10 [ 1323.055137][T10691] netlink_rcv_skb+0x130/0x360 [ 1323.055267][T10691] netlink_unicast+0x44b/0x710 [ 1323.055393][T10691] netlink_sendmsg+0x723/0xbe0 [ 1323.055516][T10691] ____sys_sendmsg+0x7ac/0xa10 [ 1323.055641][T10691] ___sys_sendmsg+0xee/0x170 [ 1323.055767][T10691] __sys_sendmsg+0xcd/0x170 [ 1323.055891][T10691] do_syscall_64+0xc1/0x1d0 [ 1323.056018][T10691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1323.056173][T10691] [ 1323.056173][T10691] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 1323.056373][T10691] check_prev_add+0x182/0xce0 [ 1323.056502][T10691] validate_chain+0x71d/0x9b0 [ 1323.056628][T10691] __lock_acquire+0xb3f/0x1580 [ 1323.056757][T10691] lock_sync+0xd7/0x180 [ 1323.056888][T10691] __synchronize_srcu+0x9e/0x2b0 [ 1323.057014][T10691] __rtnl_link_unregister+0x14a/0x380 [ 1323.057171][T10691] rtnl_link_unregister+0x14c/0x1c0 [ 1323.057299][T10691] nsim_module_exit+0x10/0x1a [netdevsim] [ 1323.057475][T10691] __do_sys_delete_module+0x2bd/0x470 [ 1323.057632][T10691] do_syscall_64+0xc1/0x1d0 [ 1323.057758][T10691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1323.057925][T10691] [ 1323.057925][T10691] other info that might help us debug this: [ 1323.057925][T10691] [ 1323.058170][T10691] Possible unsafe locking scenario: [ 1323.058170][T10691] [ 1323.058350][T10691] CPU0 CPU1 [ 1323.058479][T10691] ---- ---- [ 1323.058601][T10691] lock(rtnl_mutex); [ 1323.058699][T10691] lock(&ops->srcu); [ 1323.058852][T10691] lock(rtnl_mutex); [ 1323.059006][T10691] sync(&ops->srcu); [ 1323.059101][T10691] [ 1323.059101][T10691] *** DEADLOCK *** [ 1323.059101][T10691] [ 1323.059280][T10691] 2 locks held by modprobe/10691: [ 1323.059409][T10691] #0: ffffffff87bdc8d0 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 1323.059661][T10691] #1: ffffffff87bf7d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1323.059878][T10691] [ 1323.059878][T10691] stack backtrace: [ 1323.060037][T10691] CPU: 1 UID: 0 PID: 10691 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 1323.060251][T10691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1323.060532][T10691] Call Trace: [ 1323.060628][T10691] [ 1323.060696][T10691] dump_stack_lvl+0x82/0xd0 [ 1323.060826][T10691] print_circular_bug+0x2e2/0x4b0 [ 1323.060951][T10691] check_noncircular+0x2f9/0x3e0 [ 1323.061078][T10691] ? __pfx_check_noncircular+0x10/0x10 [ 1323.061205][T10691] ? __kernel_text_address+0x12/0x40 [ 1323.061332][T10691] ? unwind_get_return_address+0x5e/0xa0 [ 1323.061461][T10691] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 1323.061624][T10691] ? arch_stack_walk+0xa2/0xf0 [ 1323.061758][T10691] ? alloc_chain_hlocks+0x4e0/0x720 [ 1323.061882][T10691] check_prev_add+0x182/0xce0 [ 1323.062006][T10691] ? __pfx_stack_trace_save+0x10/0x10 [ 1323.062131][T10691] validate_chain+0x71d/0x9b0 [ 1323.062257][T10691] ? __pfx_validate_chain+0x10/0x10 [ 1323.062385][T10691] ? mark_lock+0x335/0x3e0 [ 1323.062508][T10691] ? __pfx_validate_chain+0x10/0x10 [ 1323.062632][T10691] __lock_acquire+0xb3f/0x1580 [ 1323.062761][T10691] lock_sync+0xd7/0x180 [ 1323.062856][T10691] ? __synchronize_srcu+0x21/0x2b0 [ 1323.062981][T10691] __synchronize_srcu+0x9e/0x2b0 [ 1323.063105][T10691] ? __pfx___synchronize_srcu+0x10/0x10 [ 1323.063230][T10691] ? hlock_class+0x4e/0x130 [ 1323.063381][T10691] ? mark_lock+0x38/0x3e0 [ 1323.063487][T10691] ? kvm_clock_get_cycles+0x18/0x30 [ 1323.063622][T10691] ? ktime_get_mono_fast_ns+0x84/0x360 [ 1323.063757][T10691] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 1323.063917][T10691] __rtnl_link_unregister+0x14a/0x380 [ 1323.064042][T10691] ? mark_lock+0x38/0x3e0 [ 1323.064138][T10691] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 1323.064294][T10691] ? mark_held_locks+0x9e/0xe0 [ 1323.064425][T10691] rtnl_link_unregister+0x14c/0x1c0 [ 1323.064549][T10691] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 1323.064674][T10691] ? __pfx_woken_wake_function+0x10/0x10 [ 1323.064801][T10691] nsim_module_exit+0x10/0x1a [netdevsim] [ 1323.064940][T10691] __do_sys_delete_module+0x2bd/0x470 [ 1323.065064][T10691] ? __pfx___do_sys_delete_module+0x10/0x10 [ 1323.065218][T10691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1323.065384][T10691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1323.065539][T10691] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 1323.065666][T10691] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1323.065825][T10691] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 1323.065983][T10691] do_syscall_64+0xc1/0x1d0 [ 1323.066108][T10691] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1323.066264][T10691] RIP: 0033:0x7fea994a35ab [ 1323.066394][T10691] 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 [ 1323.066842][T10691] RSP: 002b:00007ffe0f8d54c8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 1323.067036][T10691] RAX: ffffffffffffffda RBX: 0000561be84d6ab0 RCX: 00007fea994a35ab [ 1323.067225][T10691] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561be84d6b18 [ 1323.067414][T10691] RBP: 0000561be84d6ab0 R08: 0000000000000000 R09: 0000000000000000 [ 1323.067600][T10691] R10: 00007fea99602ac0 R11: 0000000000000206 R12: 0000561be84d6b18 [ 1323.067784][T10691] R13: 0000000000000000 R14: 0000561be84d6b18 R15: 00007ffe0f8d77f8 [ 1323.067975][T10691]