[ 11.210410][ T241] openvswitch: Open vSwitch switching datapath [ 15.384857][ T271] netlink: 'python3': attribute type 2 has an invalid length. [ 15.391565][ T271] arpping: entered promiscuous mode [ 18.614010][ T322] c0: entered promiscuous mode [ 21.757782][ T362] s0: entered promiscuous mode [ 28.788740][ T427] [ 28.788989][ T427] ============================================ [ 28.789185][ T427] WARNING: possible recursive locking detected [ 28.789373][ T427] 6.13.0-rc5-virtme #1 Not tainted [ 28.789521][ T427] -------------------------------------------- [ 28.789701][ T427] ip/427 is trying to acquire lock: [ 28.789853][ T427] ffffffff883f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.790161][ T427] [ 28.790161][ T427] but task is already holding lock: [ 28.790377][ T427] ffffffff883f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.790678][ T427] [ 28.790678][ T427] other info that might help us debug this: [ 28.790927][ T427] Possible unsafe locking scenario: [ 28.790927][ T427] [ 28.791147][ T427] CPU0 [ 28.791258][ T427] ---- [ 28.791371][ T427] lock((netdev_chain).rwsem); [ 28.791522][ T427] lock((netdev_chain).rwsem); [ 28.791671][ T427] [ 28.791671][ T427] *** DEADLOCK *** [ 28.791671][ T427] [ 28.791897][ T427] May be due to missing lock nesting notation [ 28.791897][ T427] [ 28.792123][ T427] 2 locks held by ip/427: [ 28.792241][ T427] #0: ffffffff88407e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 28.792514][ T427] #1: ffffffff883f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.792820][ T427] [ 28.792820][ T427] stack backtrace: [ 28.793006][ T427] CPU: 0 UID: 0 PID: 427 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 28.793231][ T427] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.793423][ T427] Call Trace: [ 28.793541][ T427] [ 28.793622][ T427] dump_stack_lvl+0x82/0xd0 [ 28.793778][ T427] print_deadlock_bug+0x40a/0x650 [ 28.793931][ T427] validate_chain+0x5bf/0xae0 [ 28.794084][ T427] ? __lock_acquire+0xb9a/0x1680 [ 28.794236][ T427] ? __pfx_validate_chain+0x10/0x10 [ 28.794391][ T427] ? hlock_class+0x4e/0x130 [ 28.794551][ T427] ? mark_lock+0x38/0x3e0 [ 28.794666][ T427] __lock_acquire+0xb9a/0x1680 [ 28.794817][ T427] lock_acquire.part.0+0xeb/0x330 [ 28.794967][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 28.795153][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.795309][ T427] ? trace_lock_acquire+0x14c/0x1f0 [ 28.795459][ T427] ? lock_acquire+0x32/0xc0 [ 28.795607][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 28.795795][ T427] down_read+0x9f/0x340 [ 28.795913][ T427] ? blocking_notifier_call_chain+0x50/0x90 [ 28.796098][ T427] ? __pfx_down_read+0x10/0x10 [ 28.796251][ T427] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 28.796414][ T427] blocking_notifier_call_chain+0x50/0x90 [ 28.796566][ T427] __netdev_upper_dev_unlink+0xd9/0x220 [ 28.796717][ T427] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 28.796901][ T427] ? synchronize_rcu_expedited+0x3b0/0x450 [ 28.797091][ T427] ? __pfx_autoremove_wake_function+0x10/0x10 [ 28.797282][ T427] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 28.797471][ T427] netdev_upper_dev_unlink+0x71/0xa0 [ 28.797622][ T427] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 28.797809][ T427] ? mutex_is_locked+0x1c/0x60 [ 28.797960][ T427] ? rtnl_is_locked+0x15/0x20 [ 28.798111][ T427] ? netdev_master_upper_dev_get+0x13/0x120 [ 28.798296][ T427] ovs_netdev_detach_dev+0xb0/0x170 [openvswitch] [ 28.798498][ T427] ? ovs_netdev_get_vport+0x78/0xf0 [openvswitch] [ 28.798696][ T427] dp_device_event+0x68/0x140 [openvswitch] [ 28.798895][ T427] ? trace_notifier_run+0xe7/0x150 [ 28.799044][ T427] notifier_call_chain+0xcd/0x150 [ 28.799193][ T427] blocking_notifier_call_chain+0x66/0x90 [ 28.799349][ T427] unregister_netdevice_many_notify+0xa83/0x1580 [ 28.799548][ T427] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 28.799735][ T427] ? rtnl_dellink+0x228/0xa40 [ 28.799891][ T427] ? sock_def_readable+0x11e/0x300 [ 28.800047][ T427] ? rtnl_is_locked+0x15/0x20 [ 28.800194][ T427] ? unregister_netdevice_queue+0x70/0x410 [ 28.800380][ T427] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 28.800567][ T427] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 28.800761][ T427] rtnl_dellink+0x348/0xa40 [ 28.800929][ T427] ? __pfx_rtnl_dellink+0x10/0x10 [ 28.801095][ T427] ? find_held_lock+0x2c/0x110 [ 28.801246][ T427] ? __lock_release+0x103/0x460 [ 28.801397][ T427] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 28.801548][ T427] ? __pfx___lock_release+0x10/0x10 [ 28.801699][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.801852][ T427] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 28.802003][ T427] ? __pfx_rtnl_dellink+0x10/0x10 [ 28.802151][ T427] rtnetlink_rcv_msg+0x712/0xc10 [ 28.802301][ T427] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 28.802454][ T427] ? hlock_class+0x4e/0x130 [ 28.802613][ T427] ? mark_lock+0x38/0x3e0 [ 28.802735][ T427] ? __lock_acquire+0xb9a/0x1680 [ 28.802883][ T427] netlink_rcv_skb+0x130/0x360 [ 28.803033][ T427] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 28.803183][ T427] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 28.803337][ T427] ? netlink_deliver_tap+0x13e/0x340 [ 28.803489][ T427] ? netlink_deliver_tap+0xc3/0x340 [ 28.803639][ T427] netlink_unicast+0x44b/0x710 [ 28.803797][ T427] ? __pfx_netlink_unicast+0x10/0x10 [ 28.803944][ T427] ? find_held_lock+0x2c/0x110 [ 28.804095][ T427] netlink_sendmsg+0x723/0xbe0 [ 28.804243][ T427] ? __pfx_netlink_sendmsg+0x10/0x10 [ 28.804396][ T427] ____sys_sendmsg+0x7ac/0xa10 [ 28.804545][ T427] ? __pfx_____sys_sendmsg+0x10/0x10 [ 28.804692][ T427] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 28.804884][ T427] ___sys_sendmsg+0xee/0x170 [ 28.805032][ T427] ? __pfx____sys_sendmsg+0x10/0x10 [ 28.805181][ T427] ? kasan_save_stack+0x34/0x50 [ 28.805329][ T427] ? kasan_save_stack+0x24/0x50 [ 28.805478][ T427] ? __kasan_record_aux_stack+0x8e/0xa0 [ 28.805635][ T427] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 28.805820][ T427] ? __x64_sys_close+0x7c/0xd0 [ 28.805974][ T427] ? do_syscall_64+0xc1/0x1d0 [ 28.806149][ T427] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 28.806334][ T427] ? __lock_acquire+0xb9a/0x1680 [ 28.806486][ T427] ? find_held_lock+0x2c/0x110 [ 28.806635][ T427] ? __lock_release+0x103/0x460 [ 28.806786][ T427] ? __virt_addr_valid+0x22b/0x430 [ 28.806939][ T427] ? __pfx___lock_release+0x10/0x10 [ 28.807095][ T427] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.807247][ T427] __sys_sendmsg+0x109/0x1a0 [ 28.807397][ T427] ? __pfx___sys_sendmsg+0x10/0x10 [ 28.807545][ T427] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 28.807735][ T427] do_syscall_64+0xc1/0x1d0 [ 28.807885][ T427] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 28.808068][ T427] RIP: 0033:0x7fb797af59a7 [ 28.808228][ 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 [ 28.808749][ T427] RSP: 002b:00007ffcb52d7bc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.808973][ T427] RAX: ffffffffffffffda RBX: 00007ffcb52d82f0 RCX: 00007fb797af59a7 [ 28.809203][ T427] RDX: 0000000000000000 RSI: 00007ffcb52d7c30 RDI: 0000000000000005 [ 28.809428][ T427] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 28.809651][ T427] R10: 00007fb7979b3ef8 R11: 0000000000000246 R12: 0000000000000001 [ 28.809876][ T427] R13: 0000000067793785 R14: 0000000000498600 R15: 0000000000000000 [ 28.810109][ T427] [ 28.810316][ T427] s0 (unregistering): left promiscuous mode [ 29.218188][ T435] c0 (unregistering): left promiscuous mode [ 30.933860][ T441] arpping: left promiscuous mode [ 35.624188][ T486] netlink: 'python3': attribute type 2 has an invalid length. [ 35.628595][ T486] ct4: entered promiscuous mode [ 38.214696][ T536] c0: entered promiscuous mode [ 40.627250][ T574] s0: entered promiscuous mode [ 65.235982][ T729] s0 (unregistering): left promiscuous mode [ 65.568640][ T737] c0 (unregistering): left promiscuous mode [ 67.143075][ T743] ct4: left promiscuous mode [ 71.743247][ T786] netlink: 'python3': attribute type 2 has an invalid length. [ 71.754155][ T786] cv4: entered promiscuous mode [ 74.287473][ T837] c0: entered promiscuous mode [ 76.649517][ T875] s0: entered promiscuous mode [ 85.716946][ T962] s0 (unregistering): left promiscuous mode [ 86.037897][ T970] c0 (unregistering): left promiscuous mode [ 87.638719][ T976] cv4: left promiscuous mode [ 92.111425][ T1020] netlink: 'python3': attribute type 2 has an invalid length. [ 92.115896][ T1020] nat4: entered promiscuous mode [ 94.577911][ T1071] c0: entered promiscuous mode [ 96.929232][ T1109] s0: entered promiscuous mode [ 119.642293][ T1249] s0 (unregistering): left promiscuous mode [ 119.961782][ T1257] c0 (unregistering): left promiscuous mode [ 121.437776][ T1263] nat4: left promiscuous mode [ 125.780390][ T1307] netlink: 'python3': attribute type 2 has an invalid length. [ 125.784924][ T1307] natrelated4: entered promiscuous mode [ 128.171564][ T1357] c0: entered promiscuous mode [ 130.458451][ T1395] s0: entered promiscuous mode [ 143.071998][ T1548] s0 (unregistering): left promiscuous mode [ 143.396821][ T1556] c0 (unregistering): left promiscuous mode [ 144.887121][ T1562] natrelated4: left promiscuous mode [ 149.183019][ T1606] netlink: 'python3': attribute type 2 has an invalid length. [ 149.188466][ T1606] nv0: entered promiscuous mode [ 150.773797][ T1630] netlink: 'python3': attribute type 2 has an invalid length. [ 150.774887][ T1630] openvswitch: nv0: Dropping previously announced user features [ 153.146714][ T1680] left0: entered promiscuous mode [ 155.422151][ T1718] right0: entered promiscuous mode [ 158.270147][ T1750] right0: left promiscuous mode [ 161.236540][ T1786] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 161.337253][ T1786] python3 (1786) used greatest stack depth: 22472 bytes left [ 162.854040][ T1809] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 163.485899][ T1836] left0 (unregistering): left promiscuous mode [ 164.990640][ T1842] nv0: left promiscuous mode [ 170.725852][ T1902] ui0: entered promiscuous mode [ 173.184195][ T1953] left0: entered promiscuous mode [ 175.751850][ T1984] left0 (unregistering): left promiscuous mode [ 177.224007][ T1992] ui0: left promiscuous mode [ 181.635155][ T2036] netlink: 'python3': attribute type 2 has an invalid length. [ 181.639506][ T2036] dropreason: entered promiscuous mode [ 184.053234][ T2087] c0: entered promiscuous mode [ 186.394298][ T2125] s0: entered promiscuous mode [ 221.429679][ T2297] s0 (unregistering): left promiscuous mode [ 221.751031][ T2305] c0 (unregistering): left promiscuous mode [ 223.307934][ T2311] dropreason: left promiscuous mode [ 227.663434][ T2354] psample: entered promiscuous mode [ 230.573404][ T2406] c0: entered promiscuous mode [ 231.350853][ T2437] s0: entered promiscuous mode [ 234.427797][ T2500] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 236.076000][ T2523] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 237.721729][ T2546] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 247.471841][ T2687] s0 (unregistering): left promiscuous mode [ 247.814384][ T2697] c0 (unregistering): left promiscuous mode [ 249.377933][ T2703] psample: left promiscuous mode