[ 25.828433][ T248] netdevsim netdevsim1337 eni1337np1: renamed from eth0 [ 113.456808][ T638] [ 113.456955][ T638] ====================================================== [ 113.457243][ T638] WARNING: possible circular locking dependency detected [ 113.457535][ T638] 6.12.0-rc5-virtme #1 Not tainted [ 113.457783][ T638] ------------------------------------------------------ [ 113.458074][ T638] modprobe/638 is trying to acquire lock: [ 113.458302][ T638] ffffffffc0484420 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 113.458739][ T638] [ 113.458739][ T638] but task is already holding lock: [ 113.459094][ T638] ffffffff8d3d3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 113.459507][ T638] [ 113.459507][ T638] which lock already depends on the new lock. [ 113.459507][ T638] [ 113.459952][ T638] [ 113.459952][ T638] the existing dependency chain (in reverse order) is: [ 113.460350][ T638] [ 113.460350][ T638] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 113.460705][ T638] __lock_acquire+0xb3f/0x1580 [ 113.460953][ T638] lock_acquire.part.0+0xeb/0x330 [ 113.461174][ T638] __mutex_lock+0x149/0xac0 [ 113.461413][ T638] rtnl_newlink+0x64b/0xa30 [ 113.461658][ T638] rtnetlink_rcv_msg+0x712/0xc10 [ 113.461893][ T638] netlink_rcv_skb+0x130/0x360 [ 113.462128][ T638] netlink_unicast+0x44b/0x710 [ 113.462363][ T638] netlink_sendmsg+0x723/0xbe0 [ 113.462606][ T638] ____sys_sendmsg+0x7ac/0xa10 [ 113.462837][ T638] ___sys_sendmsg+0xee/0x170 [ 113.463077][ T638] __sys_sendmsg+0xcd/0x170 [ 113.463298][ T638] do_syscall_64+0xc1/0x1d0 [ 113.463538][ T638] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 113.463844][ T638] [ 113.463844][ T638] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 113.464200][ T638] check_prev_add+0x182/0xce0 [ 113.464439][ T638] validate_chain+0x71d/0x9b0 [ 113.464670][ T638] __lock_acquire+0xb3f/0x1580 [ 113.464910][ T638] lock_sync+0xd7/0x180 [ 113.465151][ T638] __synchronize_srcu+0x9e/0x2b0 [ 113.465389][ T638] __rtnl_link_unregister+0x14a/0x380 [ 113.465689][ T638] rtnl_link_unregister+0x14c/0x1c0 [ 113.465925][ T638] nsim_module_exit+0x10/0x1a [netdevsim] [ 113.466243][ T638] __do_sys_delete_module+0x2bd/0x470 [ 113.466539][ T638] do_syscall_64+0xc1/0x1d0 [ 113.466779][ T638] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 113.467081][ T638] [ 113.467081][ T638] other info that might help us debug this: [ 113.467081][ T638] [ 113.467533][ T638] Possible unsafe locking scenario: [ 113.467533][ T638] [ 113.467871][ T638] CPU0 CPU1 [ 113.468105][ T638] ---- ---- [ 113.468329][ T638] lock(rtnl_mutex); [ 113.468509][ T638] lock(&ops->srcu); [ 113.468809][ T638] lock(rtnl_mutex); [ 113.469104][ T638] sync(&ops->srcu); [ 113.469276][ T638] [ 113.469276][ T638] *** DEADLOCK *** [ 113.469276][ T638] [ 113.469607][ T638] 2 locks held by modprobe/638: [ 113.469833][ T638] #0: ffffffff8d3b8650 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 113.470309][ T638] #1: ffffffff8d3d3948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 113.470724][ T638] [ 113.470724][ T638] stack backtrace: [ 113.471012][ T638] CPU: 3 UID: 0 PID: 638 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 113.471360][ T638] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 113.471864][ T638] Call Trace: [ 113.472053][ T638] [ 113.472173][ T638] dump_stack_lvl+0x82/0xd0 [ 113.472404][ T638] print_circular_bug+0x2e2/0x4b0 [ 113.472639][ T638] check_noncircular+0x2f9/0x3e0 [ 113.472875][ T638] ? __pfx_check_noncircular+0x10/0x10 [ 113.473114][ T638] ? __kernel_text_address+0x12/0x40 [ 113.473386][ T638] ? unwind_get_return_address+0x5e/0xa0 [ 113.473621][ T638] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 113.473914][ T638] ? arch_stack_walk+0xa2/0xf0 [ 113.474155][ T638] ? alloc_chain_hlocks+0x4e0/0x720 [ 113.474386][ T638] check_prev_add+0x182/0xce0 [ 113.474615][ T638] ? __pfx_stack_trace_save+0x10/0x10 [ 113.474851][ T638] validate_chain+0x71d/0x9b0 [ 113.475085][ T638] ? __pfx_validate_chain+0x10/0x10 [ 113.475308][ T638] ? mark_lock+0x335/0x3e0 [ 113.475542][ T638] ? __pfx_validate_chain+0x10/0x10 [ 113.475768][ T638] __lock_acquire+0xb3f/0x1580 [ 113.476000][ T638] lock_sync+0xd7/0x180 [ 113.476173][ T638] ? __synchronize_srcu+0x21/0x2b0 [ 113.476405][ T638] __synchronize_srcu+0x9e/0x2b0 [ 113.476628][ T638] ? __pfx___synchronize_srcu+0x10/0x10 [ 113.476844][ T638] ? hlock_class+0x4e/0x130 [ 113.477073][ T638] ? mark_lock+0x38/0x3e0 [ 113.477242][ T638] ? kvm_clock_get_cycles+0x18/0x30 [ 113.477465][ T638] ? ktime_get_mono_fast_ns+0x84/0x360 [ 113.477687][ T638] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 113.477976][ T638] __rtnl_link_unregister+0x14a/0x380 [ 113.478189][ T638] ? mark_lock+0x38/0x3e0 [ 113.478362][ T638] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 113.478637][ T638] ? mark_held_locks+0x9e/0xe0 [ 113.478861][ T638] rtnl_link_unregister+0x14c/0x1c0 [ 113.479092][ T638] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 113.479311][ T638] ? __pfx_woken_wake_function+0x10/0x10 [ 113.479541][ T638] nsim_module_exit+0x10/0x1a [netdevsim] [ 113.479785][ T638] __do_sys_delete_module+0x2bd/0x470 [ 113.480009][ T638] ? __pfx___do_sys_delete_module+0x10/0x10 [ 113.480285][ T638] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 113.480552][ T638] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 113.480814][ T638] ? trace_rcu_segcb_stats+0x37/0x1e0 [ 113.481031][ T638] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 113.481294][ T638] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 113.481584][ T638] do_syscall_64+0xc1/0x1d0 [ 113.481818][ T638] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 113.482097][ T638] RIP: 0033:0x7fc9c6b9b5ab [ 113.482332][ T638] 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 [ 113.483277][ T638] RSP: 002b:00007ffc12fc5698 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 113.483605][ T638] RAX: ffffffffffffffda RBX: 0000560837edc980 RCX: 00007fc9c6b9b5ab [ 113.484065][ T638] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000560837edc9e8 [ 113.484405][ T638] RBP: 0000560837edc980 R08: 0000000000000000 R09: 0000000000000000 [ 113.484745][ T638] R10: 00007fc9c6cfaac0 R11: 0000000000000206 R12: 0000560837edc9e8 [ 113.485203][ T638] R13: 0000000000000000 R14: 0000560837edc9e8 R15: 00007ffc12fc79c8 [ 113.485561][ T638]