[ 31.796300][ T254] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 341.415385][ T1150] netdevsim: Exceeded number of supported nexthops [ 344.690117][ T1196] netdevsim: Failed to replace nexthop bucket [ 344.690716][ T1196] netdevsim: Failed to replace nexthop bucket [ 348.181454][ T1252] Failed to register nexthop notifier [ 349.168261][ T1268] [ 349.168369][ T1268] ====================================================== [ 349.168542][ T1268] WARNING: possible circular locking dependency detected [ 349.168710][ T1268] 6.12.0-rc5-virtme #1 Not tainted [ 349.168848][ T1268] ------------------------------------------------------ [ 349.169014][ T1268] modprobe/1268 is trying to acquire lock: [ 349.169175][ T1268] ffffffffc028f420 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 349.169413][ T1268] [ 349.169413][ T1268] but task is already holding lock: [ 349.169610][ T1268] ffffffff9b7d3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 349.169841][ T1268] [ 349.169841][ T1268] which lock already depends on the new lock. [ 349.169841][ T1268] [ 349.170097][ T1268] [ 349.170097][ T1268] the existing dependency chain (in reverse order) is: [ 349.170341][ T1268] [ 349.170341][ T1268] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 349.170537][ T1268] __lock_acquire+0xb3f/0x1580 [ 349.170672][ T1268] lock_acquire.part.0+0xeb/0x330 [ 349.170802][ T1268] __mutex_lock+0x149/0xac0 [ 349.170938][ T1268] rtnl_newlink+0x64b/0xa30 [ 349.171066][ T1268] rtnetlink_rcv_msg+0x712/0xc10 [ 349.171199][ T1268] netlink_rcv_skb+0x130/0x360 [ 349.171333][ T1268] netlink_unicast+0x44b/0x710 [ 349.171463][ T1268] netlink_sendmsg+0x723/0xbe0 [ 349.171598][ T1268] ____sys_sendmsg+0x7ac/0xa10 [ 349.171731][ T1268] ___sys_sendmsg+0xee/0x170 [ 349.171866][ T1268] __sys_sendmsg+0xcd/0x170 [ 349.172000][ T1268] do_syscall_64+0xc1/0x1d0 [ 349.172135][ T1268] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 349.172307][ T1268] [ 349.172307][ T1268] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 349.172502][ T1268] check_prev_add+0x182/0xce0 [ 349.172635][ T1268] validate_chain+0x71d/0x9b0 [ 349.172766][ T1268] __lock_acquire+0xb3f/0x1580 [ 349.172897][ T1268] lock_sync+0xd7/0x180 [ 349.173040][ T1268] __synchronize_srcu+0x9e/0x2b0 [ 349.173168][ T1268] __rtnl_link_unregister+0x14a/0x380 [ 349.173334][ T1268] rtnl_link_unregister+0x14c/0x1c0 [ 349.173461][ T1268] nsim_module_exit+0x10/0x1a [netdevsim] [ 349.173650][ T1268] __do_sys_delete_module+0x2bd/0x470 [ 349.173843][ T1268] do_syscall_64+0xc1/0x1d0 [ 349.173982][ T1268] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 349.174137][ T1268] [ 349.174137][ T1268] other info that might help us debug this: [ 349.174137][ T1268] [ 349.174390][ T1268] Possible unsafe locking scenario: [ 349.174390][ T1268] [ 349.174584][ T1268] CPU0 CPU1 [ 349.174717][ T1268] ---- ---- [ 349.174845][ T1268] lock(rtnl_mutex); [ 349.174947][ T1268] lock(&ops->srcu); [ 349.175117][ T1268] lock(rtnl_mutex); [ 349.175284][ T1268] sync(&ops->srcu); [ 349.175386][ T1268] [ 349.175386][ T1268] *** DEADLOCK *** [ 349.175386][ T1268] [ 349.175667][ T1268] 2 locks held by modprobe/1268: [ 349.175803][ T1268] #0: ffffffff9b7b8650 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 349.176068][ T1268] #1: ffffffff9b7d3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 349.176298][ T1268] [ 349.176298][ T1268] stack backtrace: [ 349.176550][ T1268] CPU: 1 UID: 0 PID: 1268 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 349.176747][ T1268] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 349.177036][ T1268] Call Trace: [ 349.177143][ T1268] [ 349.177210][ T1268] dump_stack_lvl+0x82/0xd0 [ 349.177345][ T1268] print_circular_bug+0x2e2/0x4b0 [ 349.177473][ T1268] check_noncircular+0x2f9/0x3e0 [ 349.177600][ T1268] ? __pfx_check_noncircular+0x10/0x10 [ 349.177871][ T1268] ? __kernel_text_address+0x12/0x40 [ 349.178000][ T1268] ? unwind_get_return_address+0x5e/0xa0 [ 349.178127][ T1268] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 349.178288][ T1268] ? arch_stack_walk+0xa2/0xf0 [ 349.178487][ T1268] ? alloc_chain_hlocks+0x4e0/0x720 [ 349.178618][ T1268] check_prev_add+0x182/0xce0 [ 349.178748][ T1268] ? __pfx_stack_trace_save+0x10/0x10 [ 349.178874][ T1268] validate_chain+0x71d/0x9b0 [ 349.179004][ T1268] ? __pfx_validate_chain+0x10/0x10 [ 349.179199][ T1268] ? mark_lock+0x335/0x3e0 [ 349.179326][ T1268] ? __pfx_validate_chain+0x10/0x10 [ 349.179457][ T1268] __lock_acquire+0xb3f/0x1580 [ 349.179585][ T1268] lock_sync+0xd7/0x180 [ 349.179749][ T1268] ? __synchronize_srcu+0x21/0x2b0 [ 349.179875][ T1268] __synchronize_srcu+0x9e/0x2b0 [ 349.180000][ T1268] ? __pfx___synchronize_srcu+0x10/0x10 [ 349.180125][ T1268] ? hlock_class+0x4e/0x130 [ 349.180322][ T1268] ? mark_lock+0x38/0x3e0 [ 349.180421][ T1268] ? kvm_clock_get_cycles+0x18/0x30 [ 349.180551][ T1268] ? ktime_get_mono_fast_ns+0x84/0x360 [ 349.180684][ T1268] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 349.180847][ T1268] __rtnl_link_unregister+0x14a/0x380 [ 349.181043][ T1268] ? mark_lock+0x38/0x3e0 [ 349.181140][ T1268] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 349.181298][ T1268] ? mark_held_locks+0x9e/0xe0 [ 349.181424][ T1268] rtnl_link_unregister+0x14c/0x1c0 [ 349.181620][ T1268] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 349.181747][ T1268] ? __pfx_woken_wake_function+0x10/0x10 [ 349.181876][ T1268] nsim_module_exit+0x10/0x1a [netdevsim] [ 349.182010][ T1268] __do_sys_delete_module+0x2bd/0x470 [ 349.182203][ T1268] ? __pfx___do_sys_delete_module+0x10/0x10 [ 349.182360][ T1268] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 349.182518][ T1268] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 349.182674][ T1268] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 349.182881][ T1268] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 349.183035][ T1268] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 349.183190][ T1268] do_syscall_64+0xc1/0x1d0 [ 349.183391][ T1268] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 349.183546][ T1268] RIP: 0033:0x7f612c3325ab [ 349.183679][ T1268] 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 [ 349.184145][ T1268] RSP: 002b:00007ffd2d21d028 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 349.184337][ T1268] RAX: ffffffffffffffda RBX: 00005647eec97980 RCX: 00007f612c3325ab [ 349.184610][ T1268] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647eec979e8 [ 349.184809][ T1268] RBP: 00005647eec97980 R08: 0000000000000000 R09: 0000000000000000 [ 349.185008][ T1268] R10: 00007f612c491ac0 R11: 0000000000000206 R12: 00005647eec979e8 [ 349.185285][ T1268] R13: 0000000000000000 R14: 00005647eec979e8 R15: 00007ffd2d21f358 [ 349.185474][ T1268]