[ 1321.479846][ T7563] netdevsim netdevsim574 eni574np1: renamed from eth1 [ 1321.576098][ T7562] netdevsim netdevsim509 eni509np1: renamed from eth0 [ 1329.267454][ T7621] [ 1329.267585][ T7621] ====================================================== [ 1329.267766][ T7621] WARNING: possible circular locking dependency detected [ 1329.267956][ T7621] 6.12.0-rc5-virtme #1 Not tainted [ 1329.268087][ T7621] ------------------------------------------------------ [ 1329.268244][ T7621] modprobe/7621 is trying to acquire lock: [ 1329.268409][ T7621] ffffffffc05ad700 (&ops->srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x21/0x2b0 [ 1329.268663][ T7621] [ 1329.268663][ T7621] but task is already holding lock: [ 1329.268880][ T7621] ffffffffa6df7d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1329.269144][ T7621] [ 1329.269144][ T7621] which lock already depends on the new lock. [ 1329.269144][ T7621] [ 1329.269423][ T7621] [ 1329.269423][ T7621] the existing dependency chain (in reverse order) is: [ 1329.269688][ T7621] [ 1329.269688][ T7621] -> #1 (rtnl_mutex){+.+.}-{3:3}: [ 1329.269899][ T7621] __lock_acquire+0xb3f/0x1580 [ 1329.270044][ T7621] lock_acquire.part.0+0xeb/0x330 [ 1329.270181][ T7621] __mutex_lock+0x149/0xac0 [ 1329.270320][ T7621] rtnl_newlink+0x64b/0xa30 [ 1329.270452][ T7621] rtnetlink_rcv_msg+0x712/0xc10 [ 1329.270583][ T7621] netlink_rcv_skb+0x130/0x360 [ 1329.270721][ T7621] netlink_unicast+0x44b/0x710 [ 1329.270862][ T7621] netlink_sendmsg+0x723/0xbe0 [ 1329.270997][ T7621] ____sys_sendmsg+0x7ac/0xa10 [ 1329.271132][ T7621] ___sys_sendmsg+0xee/0x170 [ 1329.271270][ T7621] __sys_sendmsg+0xcd/0x170 [ 1329.271406][ T7621] do_syscall_64+0xc1/0x1d0 [ 1329.271541][ T7621] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1329.271715][ T7621] [ 1329.271715][ T7621] -> #0 (&ops->srcu){.+.+}-{0:0}: [ 1329.271924][ T7621] check_prev_add+0x182/0xce0 [ 1329.272055][ T7621] validate_chain+0x71d/0x9b0 [ 1329.272187][ T7621] __lock_acquire+0xb3f/0x1580 [ 1329.272324][ T7621] lock_sync+0xd7/0x180 [ 1329.272463][ T7621] __synchronize_srcu+0x9e/0x2b0 [ 1329.272598][ T7621] __rtnl_link_unregister+0x14a/0x380 [ 1329.272781][ T7621] rtnl_link_unregister+0x14c/0x1c0 [ 1329.272963][ T7621] nsim_module_exit+0x10/0x1a [netdevsim] [ 1329.273161][ T7621] __do_sys_delete_module+0x2bd/0x470 [ 1329.273328][ T7621] do_syscall_64+0xc1/0x1d0 [ 1329.273462][ T7621] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1329.273626][ T7621] [ 1329.273626][ T7621] other info that might help us debug this: [ 1329.273626][ T7621] [ 1329.273882][ T7621] Possible unsafe locking scenario: [ 1329.273882][ T7621] [ 1329.274068][ T7621] CPU0 CPU1 [ 1329.274197][ T7621] ---- ---- [ 1329.274326][ T7621] lock(rtnl_mutex); [ 1329.274423][ T7621] lock(&ops->srcu); [ 1329.274584][ T7621] lock(rtnl_mutex); [ 1329.274760][ T7621] sync(&ops->srcu); [ 1329.274868][ T7621] [ 1329.274868][ T7621] *** DEADLOCK *** [ 1329.274868][ T7621] [ 1329.275051][ T7621] 2 locks held by modprobe/7621: [ 1329.275181][ T7621] #0: ffffffffa6ddc8d0 (pernet_ops_rwsem){++++}-{3:3}, at: rtnl_link_unregister+0xa6/0x1c0 [ 1329.275454][ T7621] #1: ffffffffa6df7d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_link_unregister+0x10c/0x1c0 [ 1329.275679][ T7621] [ 1329.275679][ T7621] stack backtrace: [ 1329.275852][ T7621] CPU: 0 UID: 0 PID: 7621 Comm: modprobe Not tainted 6.12.0-rc5-virtme #1 [ 1329.276047][ T7621] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1329.276337][ T7621] Call Trace: [ 1329.276444][ T7621] [ 1329.276512][ T7621] dump_stack_lvl+0x82/0xd0 [ 1329.276653][ T7621] print_circular_bug+0x2e2/0x4b0 [ 1329.276782][ T7621] check_noncircular+0x2f9/0x3e0 [ 1329.276918][ T7621] ? __pfx_check_noncircular+0x10/0x10 [ 1329.277053][ T7621] ? __kernel_text_address+0x12/0x40 [ 1329.277185][ T7621] ? unwind_get_return_address+0x5e/0xa0 [ 1329.277319][ T7621] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 1329.277479][ T7621] ? arch_stack_walk+0xa2/0xf0 [ 1329.277617][ T7621] ? alloc_chain_hlocks+0x4e0/0x720 [ 1329.277747][ T7621] check_prev_add+0x182/0xce0 [ 1329.277879][ T7621] ? __pfx_stack_trace_save+0x10/0x10 [ 1329.278017][ T7621] validate_chain+0x71d/0x9b0 [ 1329.278148][ T7621] ? __pfx_validate_chain+0x10/0x10 [ 1329.278277][ T7621] ? mark_lock+0x335/0x3e0 [ 1329.278406][ T7621] ? __pfx_validate_chain+0x10/0x10 [ 1329.278536][ T7621] __lock_acquire+0xb3f/0x1580 [ 1329.278671][ T7621] lock_sync+0xd7/0x180 [ 1329.278768][ T7621] ? __synchronize_srcu+0x21/0x2b0 [ 1329.278900][ T7621] __synchronize_srcu+0x9e/0x2b0 [ 1329.279036][ T7621] ? __pfx___synchronize_srcu+0x10/0x10 [ 1329.279162][ T7621] ? hlock_class+0x4e/0x130 [ 1329.279298][ T7621] ? mark_lock+0x38/0x3e0 [ 1329.279398][ T7621] ? kvm_clock_get_cycles+0x18/0x30 [ 1329.279528][ T7621] ? ktime_get_mono_fast_ns+0x84/0x360 [ 1329.279668][ T7621] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 1329.279836][ T7621] __rtnl_link_unregister+0x14a/0x380 [ 1329.279972][ T7621] ? mark_lock+0x38/0x3e0 [ 1329.280069][ T7621] ? __pfx___rtnl_link_unregister+0x10/0x10 [ 1329.280226][ T7621] ? mark_held_locks+0x9e/0xe0 [ 1329.280368][ T7621] rtnl_link_unregister+0x14c/0x1c0 [ 1329.280494][ T7621] ? __pfx_rtnl_link_unregister+0x10/0x10 [ 1329.280622][ T7621] ? __pfx_woken_wake_function+0x10/0x10 [ 1329.280752][ T7621] nsim_module_exit+0x10/0x1a [netdevsim] [ 1329.280894][ T7621] __do_sys_delete_module+0x2bd/0x470 [ 1329.281031][ T7621] ? __pfx___do_sys_delete_module+0x10/0x10 [ 1329.281187][ T7621] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 1329.281350][ T7621] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 1329.281519][ T7621] do_syscall_64+0xc1/0x1d0 [ 1329.281650][ T7621] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1329.281809][ T7621] RIP: 0033:0x7f62d0f2b5ab [ 1329.281947][ T7621] 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 [ 1329.282406][ T7621] RSP: 002b:00007ffc617a5d58 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [ 1329.282607][ T7621] RAX: ffffffffffffffda RBX: 000055872e572ab0 RCX: 00007f62d0f2b5ab [ 1329.282799][ T7621] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 000055872e572b18 [ 1329.282998][ T7621] RBP: 000055872e572ab0 R08: 0000000000000000 R09: 0000000000000000 [ 1329.283196][ T7621] R10: 00007f62d108aac0 R11: 0000000000000206 R12: 000055872e572b18 [ 1329.283388][ T7621] R13: 0000000000000000 R14: 000055872e572b18 R15: 00007ffc617a8088 [ 1329.283580][ T7621]