[ 6481.767800][T25034] netdevsim netdevsim266 eni266np1: renamed from eth0 [ 6481.859810][T25032] netdevsim netdevsim584 eni584np1: renamed from eth1 [ 6489.407109][T25092] [ 6489.407220][T25092] ====================================================== [ 6489.407404][T25092] WARNING: possible circular locking dependency detected [ 6489.407593][T25092] 6.12.0-rc5-virtme #1 Not tainted [ 6489.407739][T25092] ------------------------------------------------------ [ 6489.407916][T25092] modprobe/25092 is trying to acquire lock: [ 6489.408096][T25092] ffffffffc091a7c0 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 6489.408365][T25092] [ 6489.408365][T25092] but task is already holding lock: [ 6489.408575][T25092] ffffffff989f8e08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 6489.408832][T25092] [ 6489.408832][T25092] which lock already depends on the new lock. [ 6489.408832][T25092] [ 6489.409113][T25092] [ 6489.409113][T25092] the existing dependency chain (in reverse order) is: [ 6489.409359][T25092] [ 6489.409359][T25092] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 6489.409576][T25092] __lock_acquire+0xb3f/0x1580 [ 6489.409723][T25092] lock_acquire.part.0+0xeb/0x330 [ 6489.409866][T25092] __mutex_lock+0x149/0xac0 [ 6489.410012][T25092] rtnl_newlink+0x64f/0xa20 [ 6489.410161][T25092] rtnetlink_rcv_msg+0x712/0xc10 [ 6489.410304][T25092] netlink_rcv_skb+0x130/0x360 [ 6489.410449][T25092] netlink_unicast+0x44b/0x710 [ 6489.410613][T25092] netlink_sendmsg+0x723/0xbe0 [ 6489.410761][T25092] ____sys_sendmsg+0x7ac/0xa10 [ 6489.410910][T25092] ___sys_sendmsg+0xee/0x170 [ 6489.411066][T25092] __sys_sendmsg+0xcd/0x170 [ 6489.411212][T25092] do_syscall_64+0xc1/0x1d0 [ 6489.411357][T25092] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6489.411541][T25092] [ 6489.411541][T25092] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 6489.411766][T25092] check_prev_add+0x182/0xce0 [ 6489.411916][T25092] validate_chain+0x71d/0x9b0 [ 6489.412059][T25092] __lock_acquire+0xb3f/0x1580 [ 6489.412207][T25092] lock_sync+0xd7/0x180 [ 6489.412355][T25092] __synchronize_srcu+0x9e/0x2b0 [ 6489.412501][T25092] __rtnl_link_unregister+0x14a/0x380 [ 6489.412688][T25092] rtnl_link_unregister+0x14c/0x1c0 [ 6489.412830][T25092] nsim_module_exit+0x10/0x1a [netdevsim] [ 6489.413053][T25092] __do_sys_delete_module+0x2bd/0x470 [ 6489.413234][T25092] do_syscall_64+0xc1/0x1d0 [ 6489.413374][T25092] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6489.413552][T25092] [ 6489.413552][T25092] other info that might help us debug this: [ 6489.413552][T25092] [ 6489.413828][T25092] Possible unsafe locking scenario: [ 6489.413828][T25092] [ 6489.414038][T25092] CPU0 CPU1 [ 6489.414181][T25092] ---- ---- [ 6489.414329][T25092] lock(rtnl_mutex); [ 6489.414440][T25092] lock(&ops->srcu); [ 6489.414627][T25092] lock(rtnl_mutex); [ 6489.414803][T25092] sync(&ops->srcu); [ 6489.414918][T25092] [ 6489.414918][T25092] *** DEADLOCK *** [ 6489.414918][T25092] [ 6489.415126][T25092] 2 locks held by modprobe/25092: [ 6489.415272][T25092] #0: ffffffff989dcc10 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 6489.415565][T25092] #1: ffffffff989f8e08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 6489.415819][T25092] [ 6489.415819][T25092] stack backtrace: [ 6489.415991][T25092] CPU: 3 UID: 0 PID: 25092 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 6489.416238][T25092] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 6489.416554][T25092] Call Trace: [ 6489.416663][T25092] [ 6489.416739][T25092] dump_stack_lvl+0x82/0xd0 [ 6489.416885][T25092] print_circular_bug+0x2e2/0x4b0 [ 6489.417026][T25092] check_noncircular+0x2f9/0x3e0 [ 6489.417169][T25092] ? __pfx_check_noncircular+0x10/0x10 [ 6489.417314][T25092] ? __kernel_text_address+0x12/0x40 [ 6489.417461][T25092] ? unwind_get_return_address+0x5e/0xa0 [ 6489.417610][T25092] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 6489.417790][T25092] ? arch_stack_walk+0xa2/0xf0 [ 6489.417936][T25092] ? alloc_chain_hlocks+0x4e0/0x720 [ 6489.418083][T25092] check_prev_add+0x182/0xce0 [ 6489.418225][T25092] ? __pfx_stack_trace_save+0x10/0x10 [ 6489.418370][T25092] validate_chain+0x71d/0x9b0 [ 6489.418531][T25092] ? __pfx_validate_chain+0x10/0x10 [ 6489.418682][T25092] ? mark_lock+0x335/0x3e0 [ 6489.418825][T25092] ? __pfx_validate_chain+0x10/0x10 [ 6489.418970][T25092] __lock_acquire+0xb3f/0x1580 [ 6489.419118][T25092] lock_sync+0xd7/0x180 [ 6489.419230][T25092] ? __synchronize_srcu+0x21/0x2b0 [ 6489.419373][T25092] __synchronize_srcu+0x9e/0x2b0 [ 6489.419516][T25092] ? __pfx___synchronize_srcu+0x10/0x10 [ 6489.419662][T25092] ? hlock_class+0x4e/0x130 [ 6489.419807][T25092] ? mark_lock+0x38/0x3e0 [ 6489.419926][T25092] ? kvm_clock_get_cycles+0x18/0x30 [ 6489.420073][T25092] ? ktime_get_mono_fast_ns+0x84/0x360 [ 6489.420218][T25092] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 6489.420398][T25092] __rtnl_link_unregister+0x14a/0x380 [ 6489.420541][T25092] ? mark_lock+0x38/0x3e0 [ 6489.420648][T25092] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 6489.420834][T25092] ? mark_held_locks+0x9e/0xe0 [ 6489.420983][T25092] rtnl_link_unregister+0x14c/0x1c0 [ 6489.421132][T25092] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 6489.421275][T25092] ? __pfx_woken_wake_function+0x10/0x10 [ 6489.421423][T25092] nsim_module_exit+0x10/0x1a [netdevsim] [ 6489.421578][T25092] __do_sys_delete_module+0x2bd/0x470 [ 6489.421722][T25092] ? __pfx___do_sys_delete_module+0x10/0x10 [ 6489.421901][T25092] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6489.422084][T25092] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6489.422262][T25092] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 6489.422408][T25092] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 6489.422589][T25092] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 6489.422768][T25092] do_syscall_64+0xc1/0x1d0 [ 6489.422910][T25092] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 6489.423087][T25092] RIP: 0033:0x7f03107705ab [ 6489.423240][T25092] 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 [ 6489.423766][T25092] RSP: 002b:00007fffc631c9e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 6489.423988][T25092] RAX: ffffffffffffffda RBX: 00005578d2496ab0 RCX: 00007f03107705ab [ 6489.424202][T25092] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005578d2496b18 [ 6489.424421][T25092] RBP: 00005578d2496ab0 R08: 0000000000000000 R09: 0000000000000000 [ 6489.424637][T25092] R10: 00007f03108cfac0 R11: 0000000000000206 R12: 00005578d2496b18 [ 6489.424852][T25092] R13: 0000000000000000 R14: 00005578d2496b18 R15: 00007fffc631ed18 [ 6489.425069][T25092]