[ 11.042775][ T242] openvswitch: Open vSwitch switching datapath [ 15.116542][ T273] netlink: 'python3': attribute type 2 has an invalid length. [ 15.123349][ T273] arpping: entered promiscuous mode [ 15.844773][ T300] ip (300) used greatest stack depth: 23552 bytes left [ 18.245986][ T323] c0: entered promiscuous mode [ 21.275928][ T363] s0: entered promiscuous mode [ 27.567280][ T427] [ 27.567410][ T427] ============================================ [ 27.567600][ T427] WARNING: possible recursive locking detected [ 27.567781][ T427] 6.13.0-rc5-virtme #1 Not tainted [ 27.567929][ T427] -------------------------------------------- [ 27.568110][ T427] ip/427 is trying to acquire lock: [ 27.568254][ T427] ffffffffa49f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 27.568559][ T427] [ 27.568559][ T427] but task is already holding lock: [ 27.568773][ T427] ffffffffa49f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 27.569076][ T427] [ 27.569076][ T427] other info that might help us debug this: [ 27.569301][ T427] Possible unsafe locking scenario: [ 27.569301][ T427] [ 27.569508][ T427] CPU0 [ 27.569618][ T427] ---- [ 27.569725][ T427] lock((netdev_chain).rwsem); [ 27.569867][ T427] lock((netdev_chain).rwsem); [ 27.570028][ T427] [ 27.570028][ T427] *** DEADLOCK *** [ 27.570028][ T427] [ 27.570242][ T427] May be due to missing lock nesting notation [ 27.570242][ T427] [ 27.570454][ T427] 2 locks held by ip/427: [ 27.570570][ T427] #0: ffffffffa4a07e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 27.570839][ T427] #1: ffffffffa49f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 27.571137][ T427] [ 27.571137][ T427] stack backtrace: [ 27.571329][ T427] CPU: 2 UID: 0 PID: 427 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 27.571551][ T427] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 27.571729][ T427] Call Trace: [ 27.571839][ T427] [ 27.571917][ T427] dump_stack_lvl+0x82/0xd0 [ 27.572089][ T427] print_deadlock_bug+0x40a/0x650 [ 27.572242][ T427] validate_chain+0x5bf/0xae0 [ 27.572391][ T427] ? __lock_acquire+0xb9a/0x1680 [ 27.572550][ T427] ? __pfx_validate_chain+0x10/0x10 [ 27.572700][ T427] ? hlock_class+0x4e/0x130 [ 27.572848][ T427] ? mark_lock+0x38/0x3e0 [ 27.572962][ T427] __lock_acquire+0xb9a/0x1680 [ 27.573113][ T427] lock_acquire.part.0+0xeb/0x330 [ 27.573262][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 27.573458][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 27.573606][ T427] ? trace_lock_acquire+0x14c/0x1f0 [ 27.573751][ T427] ? lock_acquire+0x32/0xc0 [ 27.573895][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 27.574094][ T427] down_read+0x9f/0x340 [ 27.574210][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 27.574396][ T427] ? __pfx_down_read+0x10/0x10 [ 27.574546][ T427] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 27.574696][ T427] blocking_notifier_call_chain+0x50/0x90 [ 27.574843][ T427] __netdev_upper_dev_unlink+0xd9/0x220 [ 27.574995][ T427] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 27.575181][ T427] ? synchronize_rcu_expedited+0x3b0/0x450 [ 27.575369][ T427] ? __pfx_autoremove_wake_function+0x10/0x10 [ 27.575554][ T427] ? mark_held_locks+0x9e/0xe0 [ 27.575704][ T427] netdev_upper_dev_unlink+0x71/0xa0 [ 27.575858][ T427] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 27.576057][ T427] ? mutex_is_locked+0x1c/0x60 [ 27.576213][ T427] ? rtnl_is_locked+0x15/0x20 [ 27.576361][ T427] ? netdev_master_upper_dev_get+0x13/0x120 [ 27.576541][ T427] ovs_netdev_detach_dev+0xb0/0x170 [openvswitch] [ 27.576738][ T427] ? ovs_netdev_get_vport+0x78/0xf0 [openvswitch] [ 27.576934][ T427] dp_device_event+0x68/0x140 [openvswitch] [ 27.577133][ T427] notifier_call_chain+0xcd/0x150 [ 27.577281][ T427] blocking_notifier_call_chain+0x66/0x90 [ 27.577439][ T427] unregister_netdevice_many_notify+0xa83/0x1580 [ 27.577617][ T427] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 27.577814][ T427] ? rtnl_dellink+0x228/0xa40 [ 27.577961][ T427] ? sock_def_readable+0x11e/0x300 [ 27.578117][ T427] ? rtnl_is_locked+0x15/0x20 [ 27.578266][ T427] ? unregister_netdevice_queue+0x70/0x410 [ 27.578446][ T427] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 27.578629][ T427] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 27.578810][ T427] rtnl_dellink+0x348/0xa40 [ 27.578957][ T427] ? __pfx_rtnl_dellink+0x10/0x10 [ 27.579118][ T427] ? find_held_lock+0x2c/0x110 [ 27.579265][ T427] ? __lock_release+0x103/0x460 [ 27.579420][ T427] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 27.579562][ T427] ? __pfx___lock_release+0x10/0x10 [ 27.579705][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 27.579851][ T427] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 27.579995][ T427] ? __pfx_rtnl_dellink+0x10/0x10 [ 27.580138][ T427] rtnetlink_rcv_msg+0x712/0xc10 [ 27.580282][ T427] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 27.580429][ T427] ? hlock_class+0x4e/0x130 [ 27.580571][ T427] ? mark_lock+0x38/0x3e0 [ 27.580681][ T427] ? __lock_acquire+0xb9a/0x1680 [ 27.580825][ T427] netlink_rcv_skb+0x130/0x360 [ 27.580970][ T427] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 27.581112][ T427] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 27.581279][ T427] ? netlink_deliver_tap+0x13e/0x340 [ 27.581438][ T427] ? netlink_deliver_tap+0xc3/0x340 [ 27.581583][ T427] netlink_unicast+0x44b/0x710 [ 27.581726][ T427] ? __pfx_netlink_unicast+0x10/0x10 [ 27.581886][ T427] ? find_held_lock+0x2c/0x110 [ 27.582037][ T427] netlink_sendmsg+0x723/0xbe0 [ 27.582186][ T427] ? __pfx_netlink_sendmsg+0x10/0x10 [ 27.582335][ T427] ____sys_sendmsg+0x7ac/0xa10 [ 27.582482][ T427] ? __pfx_____sys_sendmsg+0x10/0x10 [ 27.582629][ T427] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 27.582816][ T427] ___sys_sendmsg+0xee/0x170 [ 27.582961][ T427] ? __pfx____sys_sendmsg+0x10/0x10 [ 27.583107][ T427] ? kasan_save_stack+0x34/0x50 [ 27.583255][ T427] ? kasan_save_stack+0x24/0x50 [ 27.583411][ T427] ? __kasan_record_aux_stack+0x8e/0xa0 [ 27.583553][ T427] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 27.583733][ T427] ? __x64_sys_close+0x7c/0xd0 [ 27.583876][ T427] ? do_syscall_64+0xc1/0x1d0 [ 27.584022][ T427] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 27.584199][ T427] ? __lock_acquire+0xb9a/0x1680 [ 27.584343][ T427] ? find_held_lock+0x2c/0x110 [ 27.584486][ T427] ? __lock_release+0x103/0x460 [ 27.584630][ T427] ? __virt_addr_valid+0x22b/0x430 [ 27.584778][ T427] ? __pfx___lock_release+0x10/0x10 [ 27.584920][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 27.585067][ T427] __sys_sendmsg+0x109/0x1a0 [ 27.585209][ T427] ? __pfx___sys_sendmsg+0x10/0x10 [ 27.585352][ T427] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 27.585534][ T427] do_syscall_64+0xc1/0x1d0 [ 27.585678][ T427] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 27.585857][ T427] RIP: 0033:0x7fdfadd7f9a7 [ 27.586026][ T427] 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 [ 27.586579][ T427] RSP: 002b:00007fff0a9f8cc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 27.586803][ T427] RAX: ffffffffffffffda RBX: 00007fff0a9f93f0 RCX: 00007fdfadd7f9a7 [ 27.587025][ T427] RDX: 0000000000000000 RSI: 00007fff0a9f8d30 RDI: 0000000000000005 [ 27.587244][ T427] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 27.587474][ T427] R10: 00007fdfadc3def8 R11: 0000000000000246 R12: 0000000000000001 [ 27.587687][ T427] R13: 0000000067796170 R14: 0000000000498600 R15: 0000000000000000 [ 27.587907][ T427] [ 27.588253][ T427] s0 (unregistering): left promiscuous mode [ 27.889578][ T435] c0 (unregistering): left promiscuous mode [ 29.362155][ T441] arpping: left promiscuous mode [ 33.562986][ T487] netlink: 'python3': attribute type 2 has an invalid length. [ 33.567179][ T487] ct4: entered promiscuous mode [ 35.846833][ T538] c0: entered promiscuous mode [ 38.067159][ T576] s0: entered promiscuous mode [ 61.444550][ T731] s0 (unregistering): left promiscuous mode [ 61.734582][ T739] c0 (unregistering): left promiscuous mode [ 63.232353][ T745] ct4: left promiscuous mode [ 67.537505][ T788] netlink: 'python3': attribute type 2 has an invalid length. [ 67.541649][ T788] cv4: entered promiscuous mode [ 69.857709][ T838] c0: entered promiscuous mode [ 72.079240][ T877] s0: entered promiscuous mode [ 80.780600][ T965] s0 (unregistering): left promiscuous mode [ 81.096502][ T973] c0 (unregistering): left promiscuous mode [ 82.586181][ T979] cv4: left promiscuous mode [ 86.756144][ T1023] netlink: 'python3': attribute type 2 has an invalid length. [ 86.760460][ T1023] nat4: entered promiscuous mode [ 89.020974][ T1074] c0: entered promiscuous mode [ 91.190131][ T1112] s0: entered promiscuous mode [ 113.560356][ T1252] s0 (unregistering): left promiscuous mode [ 113.891478][ T1260] c0 (unregistering): left promiscuous mode [ 115.359932][ T1266] nat4: left promiscuous mode [ 119.531819][ T1310] netlink: 'python3': attribute type 2 has an invalid length. [ 119.536235][ T1310] natrelated4: entered promiscuous mode [ 121.796823][ T1360] c0: entered promiscuous mode [ 123.992725][ T1399] s0: entered promiscuous mode [ 136.227608][ T1552] s0 (unregistering): left promiscuous mode [ 136.501568][ T1560] c0 (unregistering): left promiscuous mode [ 137.952414][ T1566] natrelated4: left promiscuous mode [ 142.100540][ T1610] netlink: 'python3': attribute type 2 has an invalid length. [ 142.104822][ T1610] nv0: entered promiscuous mode [ 143.623422][ T1634] netlink: 'python3': attribute type 2 has an invalid length. [ 143.624449][ T1634] openvswitch: nv0: Dropping previously announced user features [ 145.922531][ T1684] left0: entered promiscuous mode [ 148.084373][ T1722] right0: entered promiscuous mode [ 150.877259][ T1754] right0: left promiscuous mode [ 153.749634][ T1790] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 153.840921][ T1790] python3 (1790) used greatest stack depth: 22472 bytes left [ 155.296880][ T1813] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 155.903608][ T1840] left0 (unregistering): left promiscuous mode [ 157.346338][ T1846] nv0: left promiscuous mode [ 162.883624][ T1905] ui0: entered promiscuous mode [ 165.225006][ T1955] left0: entered promiscuous mode [ 167.828301][ T1986] left0 (unregistering): left promiscuous mode [ 169.261410][ T1994] ui0: left promiscuous mode [ 173.525279][ T2038] netlink: 'python3': attribute type 2 has an invalid length. [ 173.529651][ T2038] dropreason: entered promiscuous mode [ 175.861641][ T2088] c0: entered promiscuous mode [ 178.106441][ T2126] s0: entered promiscuous mode [ 212.793298][ T2297] s0 (unregistering): left promiscuous mode [ 213.085590][ T2305] c0 (unregistering): left promiscuous mode [ 214.584710][ T2311] dropreason: left promiscuous mode [ 218.855010][ T2354] psample: entered promiscuous mode [ 221.640324][ T2405] c0: entered promiscuous mode [ 222.336057][ T2436] s0: entered promiscuous mode [ 225.513211][ T2499] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 227.140958][ T2522] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 228.732007][ T2545] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 238.378522][ T2686] s0 (unregistering): left promiscuous mode [ 238.730585][ T2696] c0 (unregistering): left promiscuous mode [ 240.285955][ T2702] psample: left promiscuous mode