[ 11.571253][ T259] ip (259) used greatest stack depth: 23296 bytes left [ 16.579625][ T331] 8021q: 802.1Q VLAN Support v1.8 [ 17.074157][ T337] gre: GRE over IPv4 demultiplexor driver [ 17.087748][ T337] ip_gre: GRE over IPv4 tunneling driver [ 30.821719][ T440] [ 30.821934][ T440] ============================================ [ 30.822212][ T440] WARNING: possible recursive locking detected [ 30.822487][ T440] 6.13.0-rc5-virtme #1 Not tainted [ 30.822688][ T440] -------------------------------------------- [ 30.822898][ T440] ip/440 is trying to acquire lock: [ 30.823061][ T440] ffffffffbc5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.823436][ T440] [ 30.823436][ T440] but task is already holding lock: [ 30.823722][ T440] ffffffffbc5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.824119][ T440] [ 30.824119][ T440] other info that might help us debug this: [ 30.824472][ T440] Possible unsafe locking scenario: [ 30.824472][ T440] [ 30.824840][ T440] CPU0 [ 30.825025][ T440] ---- [ 30.825207][ T440] lock((netdev_chain).rwsem); [ 30.825456][ T440] lock((netdev_chain).rwsem); [ 30.825711][ T440] [ 30.825711][ T440] *** DEADLOCK *** [ 30.825711][ T440] [ 30.826076][ T440] May be due to missing lock nesting notation [ 30.826076][ T440] [ 30.826441][ T440] 2 locks held by ip/440: [ 30.826630][ T440] #0: ffffffffbc5e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 30.827084][ T440] #1: ffffffffbc5d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 30.827557][ T440] [ 30.827557][ T440] stack backtrace: [ 30.827853][ T440] CPU: 2 UID: 0 PID: 440 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 30.828220][ T440] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.828514][ T440] Call Trace: [ 30.828703][ T440] [ 30.828839][ T440] dump_stack_lvl+0x82/0xd0 [ 30.829096][ T440] print_deadlock_bug+0x40a/0x650 [ 30.829349][ T440] validate_chain+0x5bf/0xae0 [ 30.829596][ T440] ? __pfx_validate_chain+0x10/0x10 [ 30.829843][ T440] ? hlock_class+0x4e/0x130 [ 30.830088][ T440] ? mark_lock+0x38/0x3e0 [ 30.830303][ T440] __lock_acquire+0xb9a/0x1680 [ 30.830555][ T440] lock_acquire.part.0+0xeb/0x330 [ 30.830803][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.831108][ T440] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 30.831413][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.831658][ T440] ? trace_lock_acquire+0x14c/0x1f0 [ 30.831913][ T440] ? lock_acquire+0x32/0xc0 [ 30.832164][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.832461][ T440] down_read+0x9f/0x340 [ 30.832650][ T440] ? blocking_notifier_call_chain+0x50/0x90 [ 30.832943][ T440] ? __pfx_down_read+0x10/0x10 [ 30.833184][ T440] ? __lock_release+0x103/0x460 [ 30.833428][ T440] ? netconsole_netdev_event+0x2c1/0x620 [ 30.833674][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.833918][ T440] blocking_notifier_call_chain+0x50/0x90 [ 30.834164][ T440] __netdev_upper_dev_unlink+0xd9/0x220 [ 30.834420][ T440] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 30.834718][ T440] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 30.834964][ T440] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 30.835268][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.835510][ T440] netdev_upper_dev_unlink+0x71/0xa0 [ 30.835751][ T440] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 30.836062][ T440] ? netconsole_netdev_event+0x2c1/0x620 [ 30.836304][ T440] ? mutex_is_locked+0x1c/0x60 [ 30.836553][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.836795][ T440] ? netdev_master_upper_dev_get+0x13/0x120 [ 30.837099][ T440] vrf_device_event+0x78/0xe0 [vrf] [ 30.837349][ T440] notifier_call_chain+0xcd/0x150 [ 30.837597][ T440] blocking_notifier_call_chain+0x66/0x90 [ 30.837844][ T440] unregister_netdevice_many_notify+0xa7b/0x1580 [ 30.838139][ T440] ? find_held_lock+0x2c/0x110 [ 30.838377][ T440] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 30.838666][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.838905][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.839149][ T440] ? rtnl_is_locked+0x15/0x20 [ 30.839394][ T440] ? unregister_netdevice_queue+0x70/0x410 [ 30.839708][ T440] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 30.840019][ T440] ? net_generic+0xbb/0x1f0 [ 30.840269][ T440] rtnl_dellink+0x348/0xa40 [ 30.840519][ T440] ? __pfx_rtnl_dellink+0x10/0x10 [ 30.840724][ T440] ? find_held_lock+0x2c/0x110 [ 30.840889][ T440] ? __lock_release+0x103/0x460 [ 30.841048][ T440] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 30.841256][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.841499][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.841734][ T440] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 30.841896][ T440] ? __pfx_rtnl_dellink+0x10/0x10 [ 30.842062][ T440] rtnetlink_rcv_msg+0x712/0xc10 [ 30.842236][ T440] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 30.842398][ T440] ? hlock_class+0x4e/0x130 [ 30.842569][ T440] ? mark_lock+0x38/0x3e0 [ 30.842692][ T440] ? __lock_acquire+0xb9a/0x1680 [ 30.842860][ T440] netlink_rcv_skb+0x130/0x360 [ 30.843026][ T440] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 30.843198][ T440] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 30.843364][ T440] ? netlink_deliver_tap+0x13e/0x340 [ 30.843529][ T440] ? netlink_deliver_tap+0xc3/0x340 [ 30.843699][ T440] netlink_unicast+0x44b/0x710 [ 30.843875][ T440] ? __pfx_netlink_unicast+0x10/0x10 [ 30.844057][ T440] ? find_held_lock+0x2c/0x110 [ 30.844235][ T440] netlink_sendmsg+0x723/0xbe0 [ 30.844451][ T440] ? __pfx_netlink_sendmsg+0x10/0x10 [ 30.844655][ T440] ____sys_sendmsg+0x7ac/0xa10 [ 30.844897][ T440] ? __pfx_____sys_sendmsg+0x10/0x10 [ 30.845147][ T440] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 30.845456][ T440] ___sys_sendmsg+0xee/0x170 [ 30.845666][ T440] ? __pfx____sys_sendmsg+0x10/0x10 [ 30.845829][ T440] ? kasan_save_stack+0x34/0x50 [ 30.846038][ T440] ? kasan_save_stack+0x24/0x50 [ 30.846213][ T440] ? __kasan_record_aux_stack+0x8e/0xa0 [ 30.846378][ T440] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 30.846590][ T440] ? __x64_sys_close+0x7c/0xd0 [ 30.846798][ T440] ? do_syscall_64+0xc1/0x1d0 [ 30.846993][ T440] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 30.847225][ T440] ? __lock_acquire+0xb9a/0x1680 [ 30.847435][ T440] ? find_held_lock+0x2c/0x110 [ 30.847633][ T440] ? __lock_release+0x103/0x460 [ 30.847852][ T440] ? __virt_addr_valid+0x22b/0x430 [ 30.848077][ T440] ? __pfx___lock_release+0x10/0x10 [ 30.848337][ T440] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.848583][ T440] __sys_sendmsg+0x109/0x1a0 [ 30.848751][ T440] ? __pfx___sys_sendmsg+0x10/0x10 [ 30.848914][ T440] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 30.849174][ T440] do_syscall_64+0xc1/0x1d0 [ 30.849373][ T440] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 30.849641][ T440] RIP: 0033:0x7fb4ee4869a7 [ 30.849883][ 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.850711][ T440] RSP: 002b:00007ffc47b5fa88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 30.850964][ T440] RAX: ffffffffffffffda RBX: 00007ffc47b601b0 RCX: 00007fb4ee4869a7 [ 30.851249][ T440] RDX: 0000000000000000 RSI: 00007ffc47b5faf0 RDI: 0000000000000005 [ 30.851604][ T440] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 30.851942][ T440] R10: 00007fb4ee344ef8 R11: 0000000000000246 R12: 0000000000000002 [ 30.852227][ T440] R13: 0000000067795480 R14: 0000000000498600 R15: 0000000000000000 [ 30.852566][ T440]