[ 10.791634][ T250] ip (250) used greatest stack depth: 23440 bytes left [ 14.699230][ T314] 8021q: 802.1Q VLAN Support v1.8 [ 15.062631][ T319] gre: GRE over IPv4 demultiplexor driver [ 15.084068][ T319] ip_gre: GRE over IPv4 tunneling driver [ 32.304970][ T414] ip (414) used greatest stack depth: 23240 bytes left [ 32.597686][ T417] [ 32.597860][ T417] ============================================ [ 32.598080][ T417] WARNING: possible recursive locking detected [ 32.598299][ T417] 6.13.0-rc5-virtme #1 Not tainted [ 32.598488][ T417] -------------------------------------------- [ 32.598723][ T417] ip/417 is trying to acquire lock: [ 32.598893][ T417] ffffffff8bfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.599254][ T417] [ 32.599254][ T417] but task is already holding lock: [ 32.599521][ T417] ffffffff8bfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.599916][ T417] [ 32.599916][ T417] other info that might help us debug this: [ 32.600174][ T417] Possible unsafe locking scenario: [ 32.600174][ T417] [ 32.600439][ T417] CPU0 [ 32.600574][ T417] ---- [ 32.600710][ T417] lock((netdev_chain).rwsem); [ 32.600883][ T417] lock((netdev_chain).rwsem); [ 32.601054][ T417] [ 32.601054][ T417] *** DEADLOCK *** [ 32.601054][ T417] [ 32.601315][ T417] May be due to missing lock nesting notation [ 32.601315][ T417] [ 32.601580][ T417] 2 locks held by ip/417: [ 32.601728][ T417] #0: ffffffff8bfe7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 32.602040][ T417] #1: ffffffff8bfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.602385][ T417] [ 32.602385][ T417] stack backtrace: [ 32.602618][ T417] CPU: 0 UID: 0 PID: 417 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 32.602897][ T417] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 32.603175][ T417] Call Trace: [ 32.603310][ T417] [ 32.603403][ T417] dump_stack_lvl+0x82/0xd0 [ 32.603591][ T417] print_deadlock_bug+0x40a/0x650 [ 32.603783][ T417] validate_chain+0x5bf/0xae0 [ 32.603961][ T417] ? __pfx_validate_chain+0x10/0x10 [ 32.604137][ T417] ? hlock_class+0x4e/0x130 [ 32.604314][ T417] ? mark_lock+0x38/0x3e0 [ 32.604455][ T417] __lock_acquire+0xb9a/0x1680 [ 32.604640][ T417] lock_acquire.part.0+0xeb/0x330 [ 32.604814][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.605028][ T417] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 32.605246][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.605418][ T417] ? trace_lock_acquire+0x14c/0x1f0 [ 32.605617][ T417] ? lock_acquire+0x32/0xc0 [ 32.605799][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.606014][ T417] down_read+0x9f/0x340 [ 32.606148][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.606361][ T417] ? __pfx_down_read+0x10/0x10 [ 32.606539][ T417] ? __lock_release+0x103/0x460 [ 32.606739][ T417] ? netconsole_netdev_event+0x2c1/0x620 [ 32.606914][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.607093][ T417] blocking_notifier_call_chain+0x50/0x90 [ 32.607265][ T417] __netdev_upper_dev_unlink+0xd9/0x220 [ 32.607445][ T417] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 32.607685][ T417] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 32.607858][ T417] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 32.608072][ T417] ? rtnl_is_locked+0x15/0x20 [ 32.608252][ T417] netdev_upper_dev_unlink+0x71/0xa0 [ 32.608422][ T417] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 32.608662][ T417] ? netconsole_netdev_event+0x2c1/0x620 [ 32.608835][ T417] ? mutex_is_locked+0x1c/0x60 [ 32.609008][ T417] ? rtnl_is_locked+0x15/0x20 [ 32.609182][ T417] ? netdev_master_upper_dev_get+0x13/0x120 [ 32.609396][ T417] vrf_device_event+0x78/0xe0 [vrf] [ 32.609588][ T417] notifier_call_chain+0xcd/0x150 [ 32.609777][ T417] blocking_notifier_call_chain+0x66/0x90 [ 32.609950][ T417] unregister_netdevice_many_notify+0xa7b/0x1580 [ 32.610166][ T417] ? __lock_release+0x103/0x460 [ 32.610339][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.610527][ T417] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 32.610772][ T417] ? hlock_class+0x4e/0x130 [ 32.610948][ T417] ? mark_held_locks+0x9e/0xe0 [ 32.611122][ T417] ? __pfx_vlan_info_rcu_free+0x10/0x10 [ 32.611299][ T417] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 32.611526][ T417] rtnl_dellink+0x348/0xa40 [ 32.611749][ T417] ? __pfx_rtnl_dellink+0x10/0x10 [ 32.611979][ T417] ? find_held_lock+0x2c/0x110 [ 32.612155][ T417] ? __lock_release+0x103/0x460 [ 32.612335][ T417] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 32.612522][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.612755][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.612934][ T417] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 32.613151][ T417] ? __pfx_rtnl_dellink+0x10/0x10 [ 32.613329][ T417] rtnetlink_rcv_msg+0x712/0xc10 [ 32.613514][ T417] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 32.613737][ T417] ? hlock_class+0x4e/0x130 [ 32.613914][ T417] ? mark_lock+0x38/0x3e0 [ 32.614089][ T417] ? __lock_acquire+0xb9a/0x1680 [ 32.614260][ T417] netlink_rcv_skb+0x130/0x360 [ 32.614422][ T417] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 32.614603][ T417] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 32.614930][ T417] ? netlink_deliver_tap+0x13e/0x340 [ 32.615104][ T417] ? netlink_deliver_tap+0xc3/0x340 [ 32.615319][ T417] netlink_unicast+0x44b/0x710 [ 32.615524][ T417] ? __pfx_netlink_unicast+0x10/0x10 [ 32.615682][ T417] ? find_held_lock+0x2c/0x110 [ 32.615844][ T417] netlink_sendmsg+0x723/0xbe0 [ 32.615991][ T417] ? __pfx_netlink_sendmsg+0x10/0x10 [ 32.616139][ T417] ____sys_sendmsg+0x7ac/0xa10 [ 32.616292][ T417] ? __pfx_____sys_sendmsg+0x10/0x10 [ 32.616447][ T417] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 32.616648][ T417] ___sys_sendmsg+0xee/0x170 [ 32.616794][ T417] ? __pfx____sys_sendmsg+0x10/0x10 [ 32.616942][ T417] ? kasan_save_stack+0x34/0x50 [ 32.617089][ T417] ? kasan_save_stack+0x24/0x50 [ 32.617234][ T417] ? __kasan_record_aux_stack+0x8e/0xa0 [ 32.617388][ T417] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 32.617573][ T417] ? __x64_sys_close+0x7c/0xd0 [ 32.617718][ T417] ? do_syscall_64+0xc1/0x1d0 [ 32.617863][ T417] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 32.618045][ T417] ? __lock_acquire+0xb9a/0x1680 [ 32.618195][ T417] ? find_held_lock+0x2c/0x110 [ 32.618342][ T417] ? __lock_release+0x103/0x460 [ 32.618486][ T417] ? __virt_addr_valid+0x22b/0x430 [ 32.618638][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.618786][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.618934][ T417] __sys_sendmsg+0x109/0x1a0 [ 32.619079][ T417] ? __pfx___sys_sendmsg+0x10/0x10 [ 32.619224][ T417] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 32.619413][ T417] do_syscall_64+0xc1/0x1d0 [ 32.619558][ T417] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 32.619741][ T417] RIP: 0033:0x7f13e5fae9a7 [ 32.619897][ T417] 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 [ 32.620413][ T417] RSP: 002b:00007ffc273c10f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 32.620643][ T417] RAX: ffffffffffffffda RBX: 00007ffc273c1820 RCX: 00007f13e5fae9a7 [ 32.620864][ T417] RDX: 0000000000000000 RSI: 00007ffc273c1160 RDI: 0000000000000005 [ 32.621085][ T417] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 32.621307][ T417] R10: 00007f13e5e6cef8 R11: 0000000000000246 R12: 0000000000000002 [ 32.621530][ T417] R13: 000000006779580e R14: 0000000000498600 R15: 0000000000000000 [ 32.621758][ T417]