[ 16.409302][ T331] 8021q: 802.1Q VLAN Support v1.8 [ 16.861969][ T337] gre: GRE over IPv4 demultiplexor driver [ 16.875819][ T337] ip_gre: GRE over IPv4 tunneling driver [ 30.427376][ T440] [ 30.427613][ T440] ============================================ [ 30.427801][ T440] WARNING: possible recursive locking detected [ 30.427984][ T440] 6.13.0-rc5-virtme #1 Not tainted [ 30.428140][ T440] -------------------------------------------- [ 30.428325][ T440] ip/440 is trying to acquire lock: [ 30.428474][ T440] ffffffffa93d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.428780][ T440] [ 30.428780][ T440] but task is already holding lock: [ 30.428998][ T440] ffffffffa93d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.429295][ T440] [ 30.429295][ T440] other info that might help us debug this: [ 30.429513][ T440] Possible unsafe locking scenario: [ 30.429513][ T440] [ 30.429730][ T440] CPU0 [ 30.429841][ T440] ---- [ 30.429953][ T440] lock((netdev_chain).rwsem); [ 30.430103][ T440] lock((netdev_chain).rwsem); [ 30.430261][ T440] [ 30.430261][ T440] *** DEADLOCK *** [ 30.430261][ T440] [ 30.430483][ T440] May be due to missing lock nesting notation [ 30.430483][ T440] [ 30.430699][ T440] 2 locks held by ip/440: [ 30.430811][ T440] #0: ffffffffa93e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 30.431088][ T440] #1: ffffffffa93d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.431393][ T440] [ 30.431393][ T440] stack backtrace: [ 30.431576][ T440] CPU: 0 UID: 0 PID: 440 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 30.431800][ T440] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.431994][ T440] Call Trace: [ 30.432106][ T440] [ 30.432182][ T440] dump_stack_lvl+0x82/0xd0 [ 30.432337][ T440] print_deadlock_bug+0x40a/0x650 [ 30.432487][ T440] validate_chain+0x5bf/0xae0 [ 30.432634][ T440] ? __pfx_validate_chain+0x10/0x10 [ 30.432783][ T440] ? hlock_class+0x4e/0x130 [ 30.432930][ T440] ? mark_lock+0x38/0x3e0 [ 30.433043][ T440] __lock_acquire+0xb9a/0x1680 [ 30.433195][ T440] lock_acquire.part.0+0xeb/0x330 [ 30.433340][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.433524][ T440] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 30.433708][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.433855][ T440] ? trace_lock_acquire+0x14c/0x1f0 [ 30.434001][ T440] ? lock_acquire+0x32/0xc0 [ 30.434145][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.434335][ T440] down_read+0x9f/0x340 [ 30.434447][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.434628][ T440] ? __pfx_down_read+0x10/0x10 [ 30.434773][ T440] ? __lock_release+0x103/0x460 [ 30.434920][ T440] ? netconsole_netdev_event+0x2c1/0x620 [ 30.435067][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.435215][ T440] blocking_notifier_call_chain+0x50/0x90 [ 30.435365][ T440] __netdev_upper_dev_unlink+0xd9/0x220 [ 30.435515][ T440] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 30.435695][ T440] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 30.435840][ T440] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 30.436022][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.436170][ T440] netdev_upper_dev_unlink+0x71/0xa0 [ 30.436319][ T440] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 30.436501][ T440] ? netconsole_netdev_event+0x2c1/0x620 [ 30.436650][ T440] ? mutex_is_locked+0x1c/0x60 [ 30.436798][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.436945][ T440] ? netdev_master_upper_dev_get+0x13/0x120 [ 30.437127][ T440] vrf_device_event+0x78/0xe0 [vrf] [ 30.437279][ T440] notifier_call_chain+0xcd/0x150 [ 30.437427][ T440] blocking_notifier_call_chain+0x66/0x90 [ 30.437572][ T440] unregister_netdevice_many_notify+0xa7b/0x1580 [ 30.437754][ T440] ? find_held_lock+0x2c/0x110 [ 30.437904][ T440] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 30.438086][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.438231][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.438385][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.438532][ T440] ? unregister_netdevice_queue+0x70/0x410 [ 30.438712][ T440] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 30.438894][ T440] ? net_generic+0xbb/0x1f0 [ 30.439044][ T440] rtnl_dellink+0x348/0xa40 [ 30.439191][ T440] ? __pfx_rtnl_dellink+0x10/0x10 [ 30.439350][ T440] ? find_held_lock+0x2c/0x110 [ 30.439505][ T440] ? __lock_release+0x103/0x460 [ 30.439659][ T440] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 30.439806][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.439952][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.440101][ T440] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 30.440259][ T440] ? __pfx_rtnl_dellink+0x10/0x10 [ 30.440406][ T440] rtnetlink_rcv_msg+0x712/0xc10 [ 30.440554][ T440] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 30.440704][ T440] ? hlock_class+0x4e/0x130 [ 30.440852][ T440] ? mark_lock+0x38/0x3e0 [ 30.440966][ T440] ? __lock_acquire+0xb9a/0x1680 [ 30.441112][ T440] netlink_rcv_skb+0x130/0x360 [ 30.441257][ T440] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 30.441404][ T440] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 30.441552][ T440] ? netlink_deliver_tap+0x13e/0x340 [ 30.441702][ T440] ? netlink_deliver_tap+0xc3/0x340 [ 30.441850][ T440] netlink_unicast+0x44b/0x710 [ 30.442000][ T440] ? __pfx_netlink_unicast+0x10/0x10 [ 30.442147][ T440] ? find_held_lock+0x2c/0x110 [ 30.442292][ T440] netlink_sendmsg+0x723/0xbe0 [ 30.442438][ T440] ? __pfx_netlink_sendmsg+0x10/0x10 [ 30.442590][ T440] ____sys_sendmsg+0x7ac/0xa10 [ 30.442739][ T440] ? __pfx_____sys_sendmsg+0x10/0x10 [ 30.442885][ T440] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 30.443073][ T440] ___sys_sendmsg+0xee/0x170 [ 30.443220][ T440] ? __pfx____sys_sendmsg+0x10/0x10 [ 30.443367][ T440] ? kasan_save_stack+0x34/0x50 [ 30.443513][ T440] ? kasan_save_stack+0x24/0x50 [ 30.443658][ T440] ? __kasan_record_aux_stack+0x8e/0xa0 [ 30.443811][ T440] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 30.443992][ T440] ? __x64_sys_close+0x7c/0xd0 [ 30.444138][ T440] ? do_syscall_64+0xc1/0x1d0 [ 30.444288][ T440] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 30.444471][ T440] ? __lock_acquire+0xb9a/0x1680 [ 30.444620][ T440] ? find_held_lock+0x2c/0x110 [ 30.444767][ T440] ? __lock_release+0x103/0x460 [ 30.444914][ T440] ? __virt_addr_valid+0x22b/0x430 [ 30.445063][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.445208][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.445356][ T440] __sys_sendmsg+0x109/0x1a0 [ 30.445504][ T440] ? __pfx___sys_sendmsg+0x10/0x10 [ 30.445648][ T440] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 30.445835][ T440] do_syscall_64+0xc1/0x1d0 [ 30.445982][ T440] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 30.446166][ T440] RIP: 0033:0x7f22936329a7 [ 30.446320][ T440] Code: 0a 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 [ 30.446835][ T440] RSP: 002b:00007ffeae42aee8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 30.447060][ T440] RAX: ffffffffffffffda RBX: 00007ffeae42b610 RCX: 00007f22936329a7 [ 30.447282][ T440] RDX: 0000000000000000 RSI: 00007ffeae42af50 RDI: 0000000000000005 [ 30.447501][ T440] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 30.447719][ T440] R10: 00007f22934f0ef8 R11: 0000000000000246 R12: 0000000000000002 [ 30.447945][ T440] R13: 00000000677957e5 R14: 0000000000498600 R15: 0000000000000000 [ 30.448168][ T440] [ 30.470766][ T440] ip (440) used greatest stack depth: 23696 bytes left