[ 26.054914][ T256] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 58.553395][ T604] Failed to register fib notifier [ 114.397366][ T1194] Failed to register fib notifier [ 149.244302][ T1562] Failed to register fib notifier [ 210.451122][ T2151] Failed to register fib notifier [ 212.646448][ T2182] [ 212.646581][ T2182] ====================================================== [ 212.646841][ T2182] WARNING: possible circular locking dependency detected [ 212.647104][ T2182] 6.12.0-rc5-virtme #1 Not tainted [ 212.647312][ T2182] ------------------------------------------------------ [ 212.647563][ T2182] modprobe/2182 is trying to acquire lock: [ 212.647815][ T2182] ffffffffc026d420 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 212.648193][ T2182] [ 212.648193][ T2182] but task is already holding lock: [ 212.648493][ T2182] ffffffffbdbd3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 212.648852][ T2182] [ 212.648852][ T2182] which lock already depends on the new lock. [ 212.648852][ T2182] [ 212.649249][ T2182] [ 212.649249][ T2182] the existing dependency chain (in reverse order) is: [ 212.649597][ T2182] [ 212.649597][ T2182] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 212.649905][ T2182] __lock_acquire+0xb3f/0x1580 [ 212.650115][ T2182] lock_acquire.part.0+0xeb/0x330 [ 212.650320][ T2182] __mutex_lock+0x149/0xac0 [ 212.650522][ T2182] rtnl_newlink+0x64b/0xa30 [ 212.650731][ T2182] rtnetlink_rcv_msg+0x712/0xc10 [ 212.650949][ T2182] netlink_rcv_skb+0x130/0x360 [ 212.651168][ T2182] netlink_unicast+0x44b/0x710 [ 212.651384][ T2182] netlink_sendmsg+0x723/0xbe0 [ 212.651595][ T2182] ____sys_sendmsg+0x7ac/0xa10 [ 212.651804][ T2182] ___sys_sendmsg+0xee/0x170 [ 212.652005][ T2182] __sys_sendmsg+0xcd/0x170 [ 212.652211][ T2182] do_syscall_64+0xc1/0x1d0 [ 212.652416][ T2182] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 212.652672][ T2182] [ 212.652672][ T2182] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 212.652983][ T2182] check_prev_add+0x182/0xce0 [ 212.653199][ T2182] validate_chain+0x71d/0x9b0 [ 212.653357][ T2182] __lock_acquire+0xb3f/0x1580 [ 212.653571][ T2182] lock_sync+0xd7/0x180 [ 212.653780][ T2182] __synchronize_srcu+0x9e/0x2b0 [ 212.653956][ T2182] __rtnl_link_unregister+0x14a/0x380 [ 212.654200][ T2182] rtnl_link_unregister+0x14c/0x1c0 [ 212.654414][ T2182] nsim_module_exit+0x10/0x1a [netdevsim] [ 212.654652][ T2182] __do_sys_delete_module+0x2bd/0x470 [ 212.654920][ T2182] do_syscall_64+0xc1/0x1d0 [ 212.655130][ T2182] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 212.655386][ T2182] [ 212.655386][ T2182] other info that might help us debug this: [ 212.655386][ T2182] [ 212.655830][ T2182] Possible unsafe locking scenario: [ 212.655830][ T2182] [ 212.656142][ T2182] CPU0 CPU1 [ 212.656352][ T2182] ---- ---- [ 212.656559][ T2182] lock(rtnl_mutex); [ 212.656719][ T2182] lock(&ops->srcu); [ 212.656979][ T2182] lock(rtnl_mutex); [ 212.657238][ T2182] sync(&ops->srcu); [ 212.657412][ T2182] [ 212.657412][ T2182] *** DEADLOCK *** [ 212.657412][ T2182] [ 212.657718][ T2182] 2 locks held by modprobe/2182: [ 212.657939][ T2182] #0: ffffffffbdbb8650 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 212.658371][ T2182] #1: ffffffffbdbd3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 212.658738][ T2182] [ 212.658738][ T2182] stack backtrace: [ 212.659001][ T2182] CPU: 2 UID: 0 PID: 2182 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 212.659316][ T2182] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 212.659769][ T2182] Call Trace: [ 212.659937][ T2182] [ 212.660049][ T2182] dump_stack_lvl+0x82/0xd0 [ 212.660260][ T2182] print_circular_bug+0x2e2/0x4b0 [ 212.660475][ T2182] check_noncircular+0x2f9/0x3e0 [ 212.660692][ T2182] ? __pfx_check_noncircular+0x10/0x10 [ 212.660925][ T2182] ? __kernel_text_address+0x12/0x40 [ 212.661137][ T2182] ? unwind_get_return_address+0x5e/0xa0 [ 212.661348][ T2182] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 212.661611][ T2182] ? arch_stack_walk+0xa2/0xf0 [ 212.661826][ T2182] ? alloc_chain_hlocks+0x4e0/0x720 [ 212.662021][ T2182] check_prev_add+0x182/0xce0 [ 212.662222][ T2182] ? __pfx_stack_trace_save+0x10/0x10 [ 212.662440][ T2182] validate_chain+0x71d/0x9b0 [ 212.662607][ T2182] ? __pfx_validate_chain+0x10/0x10 [ 212.662807][ T2182] ? mark_lock+0x335/0x3e0 [ 212.663015][ T2182] ? __pfx_validate_chain+0x10/0x10 [ 212.663222][ T2182] __lock_acquire+0xb3f/0x1580 [ 212.663382][ T2182] lock_sync+0xd7/0x180 [ 212.663544][ T2182] ? __synchronize_srcu+0x21/0x2b0 [ 212.663752][ T2182] __synchronize_srcu+0x9e/0x2b0 [ 212.663965][ T2182] ? __pfx___synchronize_srcu+0x10/0x10 [ 212.664171][ T2182] ? hlock_class+0x4e/0x130 [ 212.664350][ T2182] ? mark_lock+0x38/0x3e0 [ 212.664515][ T2182] ? kvm_clock_get_cycles+0x18/0x30 [ 212.664725][ T2182] ? ktime_get_mono_fast_ns+0x84/0x360 [ 212.664941][ T2182] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 212.665205][ T2182] __rtnl_link_unregister+0x14a/0x380 [ 212.665421][ T2182] ? mark_lock+0x38/0x3e0 [ 212.665580][ T2182] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 212.665849][ T2182] ? mark_held_locks+0x9e/0xe0 [ 212.666072][ T2182] rtnl_link_unregister+0x14c/0x1c0 [ 212.666293][ T2182] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 212.666510][ T2182] ? __pfx_woken_wake_function+0x10/0x10 [ 212.666724][ T2182] nsim_module_exit+0x10/0x1a [netdevsim] [ 212.666952][ T2182] __do_sys_delete_module+0x2bd/0x470 [ 212.667143][ T2182] ? __pfx___do_sys_delete_module+0x10/0x10 [ 212.667404][ T2182] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 212.667631][ T2182] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 212.667893][ T2182] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 212.668048][ T2182] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 212.668219][ T2182] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 212.668392][ T2182] do_syscall_64+0xc1/0x1d0 [ 212.668538][ T2182] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 212.668708][ T2182] RIP: 0033:0x7fe3d23f05ab [ 212.668855][ T2182] 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 [ 212.669346][ T2182] RSP: 002b:00007ffca68ee408 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 212.669555][ T2182] RAX: ffffffffffffffda RBX: 000055f285cb8980 RCX: 00007fe3d23f05ab [ 212.669761][ T2182] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000055f285cb89e8 [ 212.669966][ T2182] RBP: 000055f285cb8980 R08: 0000000000000000 R09: 0000000000000000 [ 212.670170][ T2182] R10: 00007fe3d254fac0 R11: 0000000000000206 R12: 000055f285cb89e8 [ 212.670376][ T2182] R13: 0000000000000000 R14: 000055f285cb89e8 R15: 00007ffca68f0738 [ 212.670587][ T2182]