[ 62.709025][ T680] 8021q: 802.1Q VLAN Support v1.8 [ 63.172896][ T685] gre: GRE over IPv4 demultiplexor driver [ 63.252839][ T685] ip6_gre: GRE over IPv6 tunneling driver [ 72.992407][ T760] GACT probability NOT on [ 90.544355][ T977] [ 90.544556][ T977] ============================================ [ 90.544864][ T977] WARNING: possible recursive locking detected [ 90.545165][ T977] 6.13.0-rc5-virtme #1 Not tainted [ 90.545399][ T977] -------------------------------------------- [ 90.545683][ T977] ip/977 is trying to acquire lock: [ 90.545913][ T977] ffffffffb05d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 90.546391][ T977] [ 90.546391][ T977] but task is already holding lock: [ 90.546729][ T977] ffffffffb05d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 90.547189][ T977] [ 90.547189][ T977] other info that might help us debug this: [ 90.547546][ T977] Possible unsafe locking scenario: [ 90.547546][ T977] [ 90.547929][ T977] CPU0 [ 90.548110][ T977] ---- [ 90.548291][ T977] lock((netdev_chain).rwsem); [ 90.548539][ T977] lock((netdev_chain).rwsem); [ 90.548767][ T977] [ 90.548767][ T977] *** DEADLOCK *** [ 90.548767][ T977] [ 90.549101][ T977] May be due to missing lock nesting notation [ 90.549101][ T977] [ 90.549440][ T977] 2 locks held by ip/977: [ 90.549617][ T977] #0: ffffffffb05e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 90.550048][ T977] #1: ffffffffb05d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 90.550515][ T977] [ 90.550515][ T977] stack backtrace: [ 90.550801][ T977] CPU: 1 UID: 0 PID: 977 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 90.551154][ T977] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 90.551445][ T977] Call Trace: [ 90.551639][ T977] [ 90.551760][ T977] dump_stack_lvl+0x82/0xd0 [ 90.552004][ T977] print_deadlock_bug+0x40a/0x650 [ 90.552248][ T977] validate_chain+0x5bf/0xae0 [ 90.552490][ T977] ? __pfx_validate_chain+0x10/0x10 [ 90.552729][ T977] ? hlock_class+0x4e/0x130 [ 90.552969][ T977] ? mark_lock+0x38/0x3e0 [ 90.553150][ T977] __lock_acquire+0xb9a/0x1680 [ 90.553405][ T977] lock_acquire.part.0+0xeb/0x330 [ 90.553658][ T977] ? blocking_notifier_call_chain+0x50/0x90 [ 90.553950][ T977] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 90.554254][ T977] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 90.554487][ T977] ? trace_lock_acquire+0x14c/0x1f0 [ 90.554724][ T977] ? lock_acquire+0x32/0xc0 [ 90.554965][ T977] ? blocking_notifier_call_chain+0x50/0x90 [ 90.555263][ T977] down_read+0x9f/0x340 [ 90.555447][ T977] ? blocking_notifier_call_chain+0x50/0x90 [ 90.555737][ T977] ? __pfx_down_read+0x10/0x10 [ 90.555973][ T977] ? __lock_release+0x103/0x460 [ 90.556208][ T977] ? netconsole_netdev_event+0x2c1/0x620 [ 90.556443][ T977] ? __pfx___lock_release+0x10/0x10 [ 90.556686][ T977] blocking_notifier_call_chain+0x50/0x90 [ 90.556927][ T977] __netdev_upper_dev_unlink+0xd9/0x220 [ 90.557167][ T977] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 90.557485][ T977] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 90.557743][ T977] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 90.558037][ T977] ? rtnl_is_locked+0x15/0x20 [ 90.558278][ T977] netdev_upper_dev_unlink+0x71/0xa0 [ 90.558510][ T977] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 90.558788][ T977] ? netconsole_netdev_event+0x2c1/0x620 [ 90.559028][ T977] ? mutex_is_locked+0x1c/0x60 [ 90.559267][ T977] ? rtnl_is_locked+0x15/0x20 [ 90.559499][ T977] ? netdev_master_upper_dev_get+0x13/0x120 [ 90.559768][ T977] vrf_device_event+0x78/0xe0 [vrf] [ 90.559999][ T977] notifier_call_chain+0xcd/0x150 [ 90.560227][ T977] blocking_notifier_call_chain+0x66/0x90 [ 90.560471][ T977] unregister_netdevice_many_notify+0xa7b/0x1580 [ 90.560750][ T977] ? __lock_release+0x103/0x460 [ 90.560972][ T977] ? __pfx___lock_release+0x10/0x10 [ 90.561205][ T977] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 90.561495][ T977] ? hlock_class+0x4e/0x130 [ 90.561727][ T977] ? mark_held_locks+0x9e/0xe0 [ 90.561972][ T977] ? __pfx_vlan_info_rcu_free+0x10/0x10 [ 90.562204][ T977] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 90.562498][ T977] rtnl_dellink+0x348/0xa40 [ 90.562730][ T977] ? __pfx_rtnl_dellink+0x10/0x10 [ 90.562995][ T977] ? find_held_lock+0x2c/0x110 [ 90.563234][ T977] ? __lock_release+0x103/0x460 [ 90.563476][ T977] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 90.563708][ T977] ? __pfx___lock_release+0x10/0x10 [ 90.563942][ T977] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 90.564180][ T977] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 90.564409][ T977] ? __pfx_rtnl_dellink+0x10/0x10 [ 90.564638][ T977] rtnetlink_rcv_msg+0x712/0xc10 [ 90.564874][ T977] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 90.565104][ T977] ? hlock_class+0x4e/0x130 [ 90.565335][ T977] ? mark_lock+0x38/0x3e0 [ 90.565526][ T977] ? __lock_acquire+0xb9a/0x1680 [ 90.565753][ T977] netlink_rcv_skb+0x130/0x360 [ 90.565986][ T977] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 90.566220][ T977] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 90.566459][ T977] ? netlink_deliver_tap+0x13e/0x340 [ 90.566691][ T977] ? netlink_deliver_tap+0xc3/0x340 [ 90.566922][ T977] netlink_unicast+0x44b/0x710 [ 90.567163][ T977] ? __pfx_netlink_unicast+0x10/0x10 [ 90.567396][ T977] ? find_held_lock+0x2c/0x110 [ 90.567631][ T977] netlink_sendmsg+0x723/0xbe0 [ 90.567864][ T977] ? __pfx_netlink_sendmsg+0x10/0x10 [ 90.568094][ T977] ____sys_sendmsg+0x7ac/0xa10 [ 90.568325][ T977] ? __pfx_____sys_sendmsg+0x10/0x10 [ 90.568559][ T977] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 90.568859][ T977] ___sys_sendmsg+0xee/0x170 [ 90.569090][ T977] ? __pfx____sys_sendmsg+0x10/0x10 [ 90.569320][ T977] ? kasan_save_stack+0x34/0x50 [ 90.569554][ T977] ? kasan_save_stack+0x24/0x50 [ 90.569781][ T977] ? __kasan_record_aux_stack+0x8e/0xa0 [ 90.570011][ T977] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 90.570299][ T977] ? __x64_sys_close+0x7c/0xd0 [ 90.570540][ T977] ? do_syscall_64+0xc1/0x1d0 [ 90.570781][ T977] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.571069][ T977] ? __lock_acquire+0xb9a/0x1680 [ 90.571305][ T977] ? find_held_lock+0x2c/0x110 [ 90.571542][ T977] ? __lock_release+0x103/0x460 [ 90.571769][ T977] ? __virt_addr_valid+0x22b/0x430 [ 90.572002][ T977] ? __pfx___lock_release+0x10/0x10 [ 90.572244][ T977] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 90.572481][ T977] __sys_sendmsg+0x109/0x1a0 [ 90.572707][ T977] ? __pfx___sys_sendmsg+0x10/0x10 [ 90.572937][ T977] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 90.573232][ T977] do_syscall_64+0xc1/0x1d0 [ 90.573478][ T977] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.573768][ T977] RIP: 0033:0x7f138eb639a7 [ 90.574020][ T977] 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 [ 90.574832][ T977] RSP: 002b:00007ffd1f192358 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 90.575184][ T977] RAX: ffffffffffffffda RBX: 00007ffd1f192a80 RCX: 00007f138eb639a7 [ 90.575544][ T977] RDX: 0000000000000000 RSI: 00007ffd1f1923c0 RDI: 0000000000000005 [ 90.575901][ T977] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 90.576260][ T977] R10: 00007f138ea21ef8 R11: 0000000000000246 R12: 0000000000000002 [ 90.576612][ T977] R13: 0000000067795400 R14: 0000000000498600 R15: 0000000000000000 [ 90.576977][ T977] [ 90.607143][ T977] ip (977) used greatest stack depth: 23624 bytes left