[ 286.370155][ T1839] gre: GRE over IPv4 demultiplexor driver [ 286.398128][ T1839] ip_gre: GRE over IPv4 tunneling driver [ 288.279870][ T1862] 8021q: 802.1Q VLAN Support v1.8 [ 291.626548][ T1900] GACT probability NOT on [ 467.492025][ T2112] [ 467.492195][ T2112] ============================================ [ 467.492438][ T2112] WARNING: possible recursive locking detected [ 467.492684][ T2112] 6.13.0-rc5-virtme #1 Not tainted [ 467.492888][ T2112] -------------------------------------------- [ 467.493085][ T2112] ip/2112 is trying to acquire lock: [ 467.493270][ T2112] ffffffff9dfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 467.493638][ T2112] [ 467.493638][ T2112] but task is already holding lock: [ 467.493955][ T2112] ffffffff9dfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 467.494306][ T2112] [ 467.494306][ T2112] other info that might help us debug this: [ 467.494598][ T2112] Possible unsafe locking scenario: [ 467.494598][ T2112] [ 467.494897][ T2112] CPU0 [ 467.495067][ T2112] ---- [ 467.495195][ T2112] lock((netdev_chain).rwsem); [ 467.495361][ T2112] lock((netdev_chain).rwsem); [ 467.495522][ T2112] [ 467.495522][ T2112] *** DEADLOCK *** [ 467.495522][ T2112] [ 467.495759][ T2112] May be due to missing lock nesting notation [ 467.495759][ T2112] [ 467.496028][ T2112] 2 locks held by ip/2112: [ 467.496197][ T2112] #0: ffffffff9dfe7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 467.496532][ T2112] #1: ffffffff9dfd6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 467.496954][ T2112] [ 467.496954][ T2112] stack backtrace: [ 467.497180][ T2112] CPU: 0 UID: 0 PID: 2112 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 467.497424][ T2112] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 467.497611][ T2112] Call Trace: [ 467.497743][ T2112] [ 467.497837][ T2112] dump_stack_lvl+0x82/0xd0 [ 467.498055][ T2112] print_deadlock_bug+0x40a/0x650 [ 467.498261][ T2112] validate_chain+0x5bf/0xae0 [ 467.498448][ T2112] ? __pfx_validate_chain+0x10/0x10 [ 467.498653][ T2112] ? hlock_class+0x4e/0x130 [ 467.498815][ T2112] ? mark_lock+0x38/0x3e0 [ 467.498932][ T2112] __lock_acquire+0xb9a/0x1680 [ 467.499130][ T2112] lock_acquire.part.0+0xeb/0x330 [ 467.499318][ T2112] ? blocking_notifier_call_chain+0x50/0x90 [ 467.499550][ T2112] ? netconsole_process_cleanups_core+0x2e/0x3d0 [ 467.499754][ T2112] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 467.499933][ T2112] ? trace_lock_acquire+0x14c/0x1f0 [ 467.500085][ T2112] ? lock_acquire+0x32/0xc0 [ 467.500236][ T2112] ? blocking_notifier_call_chain+0x50/0x90 [ 467.500476][ T2112] down_read+0x9f/0x340 [ 467.500603][ T2112] ? blocking_notifier_call_chain+0x50/0x90 [ 467.500863][ T2112] ? __pfx_down_read+0x10/0x10 [ 467.501015][ T2112] ? __lock_release+0x103/0x460 [ 467.501165][ T2112] ? netconsole_netdev_event+0x2c1/0x620 [ 467.501321][ T2112] ? __pfx___lock_release+0x10/0x10 [ 467.501482][ T2112] blocking_notifier_call_chain+0x50/0x90 [ 467.501667][ T2112] __netdev_upper_dev_unlink+0xd9/0x220 [ 467.501859][ T2112] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 467.502094][ T2112] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 467.502249][ T2112] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 467.502489][ T2112] ? rtnl_is_locked+0x15/0x20 [ 467.502682][ T2112] netdev_upper_dev_unlink+0x71/0xa0 [ 467.502851][ T2112] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 467.503042][ T2112] ? netconsole_netdev_event+0x2c1/0x620 [ 467.503205][ T2112] ? mutex_is_locked+0x1c/0x60 [ 467.503361][ T2112] ? rtnl_is_locked+0x15/0x20 [ 467.503513][ T2112] ? netdev_master_upper_dev_get+0x13/0x120 [ 467.503708][ T2112] vrf_device_event+0x78/0xe0 [vrf] [ 467.503929][ T2112] notifier_call_chain+0xcd/0x150 [ 467.504109][ T2112] blocking_notifier_call_chain+0x66/0x90 [ 467.504262][ T2112] unregister_netdevice_many_notify+0xa7b/0x1580 [ 467.504462][ T2112] ? hlock_class+0x4e/0x130 [ 467.504634][ T2112] ? mark_lock+0x38/0x3e0 [ 467.504789][ T2112] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 467.504974][ T2112] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 467.505178][ T2112] ? kfree+0xf3/0x330 [ 467.505334][ T2112] ? vlan_vid_del+0x310/0x5e0 [ 467.505489][ T2112] ? vlan_vid_del+0x310/0x5e0 [ 467.505655][ T2112] rtnl_dellink+0x348/0xa40 [ 467.505837][ T2112] ? __pfx_rtnl_dellink+0x10/0x10 [ 467.506009][ T2112] ? find_held_lock+0x2c/0x110 [ 467.506161][ T2112] ? __lock_release+0x103/0x460 [ 467.506306][ T2112] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 467.506455][ T2112] ? __pfx___lock_release+0x10/0x10 [ 467.506657][ T2112] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 467.506860][ T2112] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 467.507010][ T2112] ? __pfx_rtnl_dellink+0x10/0x10 [ 467.507187][ T2112] rtnetlink_rcv_msg+0x712/0xc10 [ 467.507343][ T2112] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 467.507512][ T2112] ? hlock_class+0x4e/0x130 [ 467.507674][ T2112] ? mark_lock+0x38/0x3e0 [ 467.507803][ T2112] ? __lock_acquire+0xb9a/0x1680 [ 467.507950][ T2112] netlink_rcv_skb+0x130/0x360 [ 467.508105][ T2112] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 467.508252][ T2112] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 467.508405][ T2112] ? netlink_deliver_tap+0x13e/0x340 [ 467.508553][ T2112] ? netlink_deliver_tap+0xc3/0x340 [ 467.508699][ T2112] netlink_unicast+0x44b/0x710 [ 467.508861][ T2112] ? __pfx_netlink_unicast+0x10/0x10 [ 467.509017][ T2112] ? find_held_lock+0x2c/0x110 [ 467.509166][ T2112] netlink_sendmsg+0x723/0xbe0 [ 467.509314][ T2112] ? __pfx_netlink_sendmsg+0x10/0x10 [ 467.509464][ T2112] ____sys_sendmsg+0x7ac/0xa10 [ 467.509613][ T2112] ? __pfx_____sys_sendmsg+0x10/0x10 [ 467.509765][ T2112] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 467.509952][ T2112] ___sys_sendmsg+0xee/0x170 [ 467.510099][ T2112] ? __pfx____sys_sendmsg+0x10/0x10 [ 467.510253][ T2112] ? kasan_save_stack+0x34/0x50 [ 467.510406][ T2112] ? kasan_save_stack+0x24/0x50 [ 467.510554][ T2112] ? __kasan_record_aux_stack+0x8e/0xa0 [ 467.510701][ T2112] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 467.510981][ T2112] ? __x64_sys_close+0x7c/0xd0 [ 467.511142][ T2112] ? do_syscall_64+0xc1/0x1d0 [ 467.511290][ T2112] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 467.511498][ T2112] ? __lock_acquire+0xb9a/0x1680 [ 467.511650][ T2112] ? find_held_lock+0x2c/0x110 [ 467.511808][ T2112] ? __lock_release+0x103/0x460 [ 467.511989][ T2112] ? __virt_addr_valid+0x22b/0x430 [ 467.512166][ T2112] ? __pfx___lock_release+0x10/0x10 [ 467.512312][ T2112] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 467.512472][ T2112] __sys_sendmsg+0x109/0x1a0 [ 467.512631][ T2112] ? __pfx___sys_sendmsg+0x10/0x10 [ 467.512793][ T2112] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 467.512982][ T2112] do_syscall_64+0xc1/0x1d0 [ 467.513131][ T2112] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 467.513314][ T2112] RIP: 0033:0x7fe721e5c9a7 [ 467.513471][ T2112] 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 [ 467.514059][ T2112] RSP: 002b:00007ffdfce37208 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 467.514321][ T2112] RAX: ffffffffffffffda RBX: 00007ffdfce37930 RCX: 00007fe721e5c9a7 [ 467.514544][ T2112] RDX: 0000000000000000 RSI: 00007ffdfce37270 RDI: 0000000000000005 [ 467.514812][ T2112] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 467.515090][ T2112] R10: 00007fe721d1aef8 R11: 0000000000000246 R12: 0000000000000002 [ 467.515354][ T2112] R13: 00000000677951d2 R14: 0000000000498600 R15: 0000000000000000 [ 467.515629][ T2112] [ 467.536596][ T2112] ip (2112) used greatest stack depth: 23544 bytes left