[ 79.766977][ T933] 8021q: 802.1Q VLAN Support v1.8 [ 80.214675][ T939] gre: GRE over IPv4 demultiplexor driver [ 80.237029][ T939] ip_gre: GRE over IPv4 tunneling driver [ 94.112282][ T1041] [ 94.112459][ T1041] ============================================ [ 94.112670][ T1041] WARNING: possible recursive locking detected [ 94.112868][ T1041] 6.13.0-rc5-virtme #1 Not tainted [ 94.113050][ T1041] -------------------------------------------- [ 94.113263][ T1041] ip/1041 is trying to acquire lock: [ 94.113448][ T1041] ffffffff87fd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 94.113801][ T1041] [ 94.113801][ T1041] but task is already holding lock: [ 94.114048][ T1041] ffffffff87fd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 94.114401][ T1041] [ 94.114401][ T1041] other info that might help us debug this: [ 94.114663][ T1041] Possible unsafe locking scenario: [ 94.114663][ T1041] [ 94.114907][ T1041] CPU0 [ 94.115028][ T1041] ---- [ 94.115158][ T1041] lock((netdev_chain).rwsem); [ 94.115329][ T1041] lock((netdev_chain).rwsem); [ 94.115498][ T1041] [ 94.115498][ T1041] *** DEADLOCK *** [ 94.115498][ T1041] [ 94.115732][ T1041] May be due to missing lock nesting notation [ 94.115732][ T1041] [ 94.115979][ T1041] 2 locks held by ip/1041: [ 94.116144][ T1041] #0: ffffffff87fe7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 94.116462][ T1041] #1: ffffffff87fd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 94.116787][ T1041] [ 94.116787][ T1041] stack backtrace: [ 94.116998][ T1041] CPU: 3 UID: 0 PID: 1041 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 94.117253][ T1041] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 94.117463][ T1041] Call Trace: [ 94.117594][ T1041] [ 94.117678][ T1041] dump_stack_lvl+0x82/0xd0 [ 94.117844][ T1041] print_deadlock_bug+0x40a/0x650 [ 94.118006][ T1041] validate_chain+0x5bf/0xae0 [ 94.118169][ T1041] ? __pfx_validate_chain+0x10/0x10 [ 94.118346][ T1041] ? hlock_class+0x4e/0x130 [ 94.118505][ T1041] ? mark_lock+0x38/0x3e0 [ 94.118630][ T1041] __lock_acquire+0xb9a/0x1680 [ 94.118792][ T1041] lock_acquire.part.0+0xeb/0x330 [ 94.118952][ T1041] ? blocking_notifier_call_chain+0x50/0x90 [ 94.119151][ T1041] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 94.119366][ T1041] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.119547][ T1041] ? trace_lock_acquire+0x14c/0x1f0 [ 94.119709][ T1041] ? lock_acquire+0x32/0xc0 [ 94.119870][ T1041] ? blocking_notifier_call_chain+0x50/0x90 [ 94.120071][ T1041] down_read+0x9f/0x340 [ 94.120196][ T1041] ? blocking_notifier_call_chain+0x50/0x90 [ 94.120402][ T1041] ? __pfx_down_read+0x10/0x10 [ 94.120563][ T1041] ? __lock_release+0x103/0x460 [ 94.120736][ T1041] ? netconsole_netdev_event+0x2c1/0x620 [ 94.120902][ T1041] ? __pfx___lock_release+0x10/0x10 [ 94.121065][ T1041] blocking_notifier_call_chain+0x50/0x90 [ 94.121229][ T1041] __netdev_upper_dev_unlink+0xd9/0x220 [ 94.121400][ T1041] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 94.121613][ T1041] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 94.121774][ T1041] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 94.121984][ T1041] ? rtnl_is_locked+0x15/0x20 [ 94.122154][ T1041] netdev_upper_dev_unlink+0x71/0xa0 [ 94.122325][ T1041] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 94.122525][ T1041] ? netconsole_netdev_event+0x2c1/0x620 [ 94.122692][ T1041] ? mutex_is_locked+0x1c/0x60 [ 94.122861][ T1041] ? rtnl_is_locked+0x15/0x20 [ 94.123024][ T1041] ? netdev_master_upper_dev_get+0x13/0x120 [ 94.123240][ T1041] vrf_device_event+0x78/0xe0 [vrf] [ 94.123415][ T1041] notifier_call_chain+0xcd/0x150 [ 94.123576][ T1041] blocking_notifier_call_chain+0x66/0x90 [ 94.123751][ T1041] unregister_netdevice_many_notify+0xa7b/0x1580 [ 94.123976][ T1041] ? find_held_lock+0x2c/0x110 [ 94.124156][ T1041] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 94.124379][ T1041] ? __pfx___lock_release+0x10/0x10 [ 94.124561][ T1041] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.124742][ T1041] ? rtnl_is_locked+0x15/0x20 [ 94.124919][ T1041] ? unregister_netdevice_queue+0x70/0x410 [ 94.125140][ T1041] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 94.125364][ T1041] ? net_generic+0xbb/0x1f0 [ 94.125548][ T1041] rtnl_dellink+0x348/0xa40 [ 94.125733][ T1041] ? __pfx_rtnl_dellink+0x10/0x10 [ 94.125927][ T1041] ? find_held_lock+0x2c/0x110 [ 94.126130][ T1041] ? __lock_release+0x103/0x460 [ 94.126302][ T1041] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 94.126463][ T1041] ? __pfx___lock_release+0x10/0x10 [ 94.126628][ T1041] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.126791][ T1041] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 94.126959][ T1041] ? __pfx_rtnl_dellink+0x10/0x10 [ 94.127122][ T1041] rtnetlink_rcv_msg+0x712/0xc10 [ 94.127284][ T1041] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 94.127446][ T1041] ? hlock_class+0x4e/0x130 [ 94.127606][ T1041] ? mark_lock+0x38/0x3e0 [ 94.127729][ T1041] ? __lock_acquire+0xb9a/0x1680 [ 94.127893][ T1041] netlink_rcv_skb+0x130/0x360 [ 94.128055][ T1041] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 94.128223][ T1041] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 94.128390][ T1041] ? netlink_deliver_tap+0x13e/0x340 [ 94.128555][ T1041] ? netlink_deliver_tap+0xc3/0x340 [ 94.128723][ T1041] netlink_unicast+0x44b/0x710 [ 94.128891][ T1041] ? __pfx_netlink_unicast+0x10/0x10 [ 94.129054][ T1041] ? find_held_lock+0x2c/0x110 [ 94.129220][ T1041] netlink_sendmsg+0x723/0xbe0 [ 94.129389][ T1041] ? __pfx_netlink_sendmsg+0x10/0x10 [ 94.129553][ T1041] ____sys_sendmsg+0x7ac/0xa10 [ 94.129716][ T1041] ? __pfx_____sys_sendmsg+0x10/0x10 [ 94.129879][ T1041] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 94.130083][ T1041] ___sys_sendmsg+0xee/0x170 [ 94.130246][ T1041] ? __pfx____sys_sendmsg+0x10/0x10 [ 94.130414][ T1041] ? kasan_save_stack+0x34/0x50 [ 94.130587][ T1041] ? kasan_save_stack+0x24/0x50 [ 94.130750][ T1041] ? __kasan_record_aux_stack+0x8e/0xa0 [ 94.130913][ T1041] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 94.131120][ T1041] ? __x64_sys_close+0x7c/0xd0 [ 94.131286][ T1041] ? do_syscall_64+0xc1/0x1d0 [ 94.131448][ T1041] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.131661][ T1041] ? __lock_acquire+0xb9a/0x1680 [ 94.131834][ T1041] ? find_held_lock+0x2c/0x110 [ 94.132001][ T1041] ? __lock_release+0x103/0x460 [ 94.132161][ T1041] ? __virt_addr_valid+0x22b/0x430 [ 94.132325][ T1041] ? __pfx___lock_release+0x10/0x10 [ 94.132487][ T1041] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.132653][ T1041] __sys_sendmsg+0x109/0x1a0 [ 94.132816][ T1041] ? __pfx___sys_sendmsg+0x10/0x10 [ 94.132983][ T1041] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 94.133197][ T1041] do_syscall_64+0xc1/0x1d0 [ 94.133366][ T1041] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.133567][ T1041] RIP: 0033:0x7f08eafeb9a7 [ 94.133740][ T1041] 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 [ 94.134319][ T1041] RSP: 002b:00007ffc2fd1d888 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 94.134564][ T1041] RAX: ffffffffffffffda RBX: 00007ffc2fd1dfb0 RCX: 00007f08eafeb9a7 [ 94.134809][ T1041] RDX: 0000000000000000 RSI: 00007ffc2fd1d8f0 RDI: 0000000000000005 [ 94.135052][ T1041] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 94.135298][ T1041] R10: 00007f08eaea9ef8 R11: 0000000000000246 R12: 0000000000000002 [ 94.135537][ T1041] R13: 000000006779547b R14: 0000000000498600 R15: 0000000000000000 [ 94.135782][ T1041]