[ 14.785768][ T313] 8021q: 802.1Q VLAN Support v1.8 [ 15.157299][ T318] gre: GRE over IPv4 demultiplexor driver [ 15.171032][ T318] ip_gre: GRE over IPv4 tunneling driver [ 17.283026][ T346] ip (346) used greatest stack depth: 23536 bytes left [ 32.781385][ T417] [ 32.781576][ T417] ============================================ [ 32.781854][ T417] WARNING: possible recursive locking detected [ 32.782127][ T417] 6.13.0-rc5-virtme #1 Not tainted [ 32.782401][ T417] -------------------------------------------- [ 32.782702][ T417] ip/417 is trying to acquire lock: [ 32.782959][ T417] ffffffff969d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.783465][ T417] [ 32.783465][ T417] but task is already holding lock: [ 32.783839][ T417] ffffffff969d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.784309][ T417] [ 32.784309][ T417] other info that might help us debug this: [ 32.784673][ T417] Possible unsafe locking scenario: [ 32.784673][ T417] [ 32.785049][ T417] CPU0 [ 32.785238][ T417] ---- [ 32.785425][ T417] lock((netdev_chain).rwsem); [ 32.785673][ T417] lock((netdev_chain).rwsem); [ 32.785926][ T417] [ 32.785926][ T417] *** DEADLOCK *** [ 32.785926][ T417] [ 32.786304][ T417] May be due to missing lock nesting notation [ 32.786304][ T417] [ 32.786684][ T417] 2 locks held by ip/417: [ 32.786883][ T417] #0: ffffffff969e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 32.787354][ T417] #1: ffffffff969d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 32.787881][ T417] [ 32.787881][ T417] stack backtrace: [ 32.788186][ T417] CPU: 0 UID: 0 PID: 417 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 32.788563][ T417] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 32.788898][ T417] Call Trace: [ 32.789081][ T417] [ 32.789206][ T417] dump_stack_lvl+0x82/0xd0 [ 32.789455][ T417] print_deadlock_bug+0x40a/0x650 [ 32.789699][ T417] validate_chain+0x5bf/0xae0 [ 32.789975][ T417] ? __pfx_validate_chain+0x10/0x10 [ 32.790234][ T417] ? hlock_class+0x4e/0x130 [ 32.790478][ T417] ? mark_lock+0x38/0x3e0 [ 32.790683][ T417] __lock_acquire+0xb9a/0x1680 [ 32.790940][ T417] lock_acquire.part.0+0xeb/0x330 [ 32.791186][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.791491][ T417] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 32.791805][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.792051][ T417] ? trace_lock_acquire+0x14c/0x1f0 [ 32.792297][ T417] ? lock_acquire+0x32/0xc0 [ 32.792548][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.792859][ T417] down_read+0x9f/0x340 [ 32.793045][ T417] ? blocking_notifier_call_chain+0x50/0x90 [ 32.793354][ T417] ? __pfx_down_read+0x10/0x10 [ 32.793602][ T417] ? __lock_release+0x103/0x460 [ 32.793859][ T417] ? netconsole_netdev_event+0x2c1/0x620 [ 32.794118][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.794382][ T417] blocking_notifier_call_chain+0x50/0x90 [ 32.794639][ T417] __netdev_upper_dev_unlink+0xd9/0x220 [ 32.794896][ T417] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 32.795201][ T417] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 32.795433][ T417] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 32.795722][ T417] ? rtnl_is_locked+0x15/0x20 [ 32.795992][ T417] netdev_upper_dev_unlink+0x71/0xa0 [ 32.796250][ T417] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 32.796561][ T417] ? netconsole_netdev_event+0x2c1/0x620 [ 32.796822][ T417] ? mutex_is_locked+0x1c/0x60 [ 32.797075][ T417] ? rtnl_is_locked+0x15/0x20 [ 32.797331][ T417] ? netdev_master_upper_dev_get+0x13/0x120 [ 32.797640][ T417] vrf_device_event+0x78/0xe0 [vrf] [ 32.797910][ T417] notifier_call_chain+0xcd/0x150 [ 32.798157][ T417] blocking_notifier_call_chain+0x66/0x90 [ 32.798411][ T417] unregister_netdevice_many_notify+0xa7b/0x1580 [ 32.798718][ T417] ? __lock_release+0x103/0x460 [ 32.798979][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.799234][ T417] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 32.799549][ T417] ? hlock_class+0x4e/0x130 [ 32.799825][ T417] ? mark_held_locks+0x9e/0xe0 [ 32.800072][ T417] ? __pfx_vlan_info_rcu_free+0x10/0x10 [ 32.800329][ T417] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 32.800645][ T417] rtnl_dellink+0x348/0xa40 [ 32.800902][ T417] ? __pfx_rtnl_dellink+0x10/0x10 [ 32.801188][ T417] ? find_held_lock+0x2c/0x110 [ 32.801440][ T417] ? __lock_release+0x103/0x460 [ 32.801698][ T417] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 32.801951][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.802203][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.802461][ T417] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 32.802715][ T417] ? __pfx_rtnl_dellink+0x10/0x10 [ 32.802970][ T417] rtnetlink_rcv_msg+0x712/0xc10 [ 32.803215][ T417] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 32.803482][ T417] ? hlock_class+0x4e/0x130 [ 32.803741][ T417] ? mark_lock+0x38/0x3e0 [ 32.803936][ T417] ? __lock_acquire+0xb9a/0x1680 [ 32.804190][ T417] netlink_rcv_skb+0x130/0x360 [ 32.804450][ T417] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 32.804700][ T417] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 32.804970][ T417] ? netlink_deliver_tap+0x13e/0x340 [ 32.805214][ T417] ? netlink_deliver_tap+0xc3/0x340 [ 32.805457][ T417] netlink_unicast+0x44b/0x710 [ 32.805692][ T417] ? __pfx_netlink_unicast+0x10/0x10 [ 32.805929][ T417] ? find_held_lock+0x2c/0x110 [ 32.806175][ T417] netlink_sendmsg+0x723/0xbe0 [ 32.806427][ T417] ? __pfx_netlink_sendmsg+0x10/0x10 [ 32.806661][ T417] ____sys_sendmsg+0x7ac/0xa10 [ 32.806903][ T417] ? __pfx_____sys_sendmsg+0x10/0x10 [ 32.807145][ T417] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 32.807443][ T417] ___sys_sendmsg+0xee/0x170 [ 32.807679][ T417] ? __pfx____sys_sendmsg+0x10/0x10 [ 32.807919][ T417] ? kasan_save_stack+0x34/0x50 [ 32.808160][ T417] ? kasan_save_stack+0x24/0x50 [ 32.808397][ T417] ? __kasan_record_aux_stack+0x8e/0xa0 [ 32.808637][ T417] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 32.808938][ T417] ? __x64_sys_close+0x7c/0xd0 [ 32.809173][ T417] ? do_syscall_64+0xc1/0x1d0 [ 32.809417][ T417] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 32.809710][ T417] ? __lock_acquire+0xb9a/0x1680 [ 32.809951][ T417] ? find_held_lock+0x2c/0x110 [ 32.810191][ T417] ? __lock_release+0x103/0x460 [ 32.810418][ T417] ? __virt_addr_valid+0x22b/0x430 [ 32.810656][ T417] ? __pfx___lock_release+0x10/0x10 [ 32.810888][ T417] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.811129][ T417] __sys_sendmsg+0x109/0x1a0 [ 32.811371][ T417] ? __pfx___sys_sendmsg+0x10/0x10 [ 32.811607][ T417] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 32.811921][ T417] do_syscall_64+0xc1/0x1d0 [ 32.812171][ T417] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 32.812489][ T417] RIP: 0033:0x7f3a4f6d39a7 [ 32.812762][ 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.813593][ T417] RSP: 002b:00007fffa5a99518 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 32.813957][ T417] RAX: ffffffffffffffda RBX: 00007fffa5a99c40 RCX: 00007f3a4f6d39a7 [ 32.814300][ T417] RDX: 0000000000000000 RSI: 00007fffa5a99580 RDI: 0000000000000005 [ 32.814649][ T417] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 32.815000][ T417] R10: 00007f3a4f591ef8 R11: 0000000000000246 R12: 0000000000000002 [ 32.815352][ T417] R13: 00000000677957e0 R14: 0000000000498600 R15: 0000000000000000 [ 32.815723][ T417]