[ 880.350311][ T7777] openvswitch: Open vSwitch switching datapath [ 884.719245][ T7807] netlink: 'python3': attribute type 2 has an invalid length. [ 884.727466][ T7807] arpping: entered promiscuous mode [ 888.143371][ T7858] c0: entered promiscuous mode [ 891.373309][ T7897] s0: entered promiscuous mode [ 898.115364][ T7961] [ 898.115515][ T7961] ============================================ [ 898.115719][ T7961] WARNING: possible recursive locking detected [ 898.115917][ T7961] 6.13.0-rc5-virtme #1 Not tainted [ 898.116081][ T7961] -------------------------------------------- [ 898.116287][ T7961] ip/7961 is trying to acquire lock: [ 898.116452][ T7961] ffffffffb7bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 898.116783][ T7961] [ 898.116783][ T7961] but task is already holding lock: [ 898.117024][ T7961] ffffffffb7bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 898.117347][ T7961] [ 898.117347][ T7961] other info that might help us debug this: [ 898.117592][ T7961] Possible unsafe locking scenario: [ 898.117592][ T7961] [ 898.117831][ T7961] CPU0 [ 898.117952][ T7961] ---- [ 898.118078][ T7961] lock((netdev_chain).rwsem); [ 898.118240][ T7961] lock((netdev_chain).rwsem); [ 898.118399][ T7961] [ 898.118399][ T7961] *** DEADLOCK *** [ 898.118399][ T7961] [ 898.118632][ T7961] May be due to missing lock nesting notation [ 898.118632][ T7961] [ 898.118872][ T7961] 2 locks held by ip/7961: [ 898.119032][ T7961] #0: ffffffffb7c07e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 898.119323][ T7961] #1: ffffffffb7bf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 898.119648][ T7961] [ 898.119648][ T7961] stack backtrace: [ 898.119847][ T7961] CPU: 2 UID: 0 PID: 7961 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 898.120090][ T7961] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 898.120295][ T7961] Call Trace: [ 898.120419][ T7961] [ 898.120503][ T7961] dump_stack_lvl+0x82/0xd0 [ 898.120671][ T7961] print_deadlock_bug+0x40a/0x650 [ 898.120834][ T7961] validate_chain+0x5bf/0xae0 [ 898.120994][ T7961] ? __lock_acquire+0xb9a/0x1680 [ 898.121161][ T7961] ? __pfx_validate_chain+0x10/0x10 [ 898.121325][ T7961] ? hlock_class+0x4e/0x130 [ 898.121485][ T7961] ? mark_lock+0x38/0x3e0 [ 898.121607][ T7961] __lock_acquire+0xb9a/0x1680 [ 898.121768][ T7961] ? copy_string_kernel+0x1d7/0x200 [ 898.121933][ T7961] lock_acquire.part.0+0xeb/0x330 [ 898.122093][ T7961] ? blocking_notifier_call_chain+0x50/0x90 [ 898.122298][ T7961] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 898.122458][ T7961] ? trace_lock_acquire+0x14c/0x1f0 [ 898.122621][ T7961] ? lock_acquire+0x32/0xc0 [ 898.122785][ T7961] ? blocking_notifier_call_chain+0x50/0x90 [ 898.122985][ T7961] down_read+0x9f/0x340 [ 898.123109][ T7961] ? blocking_notifier_call_chain+0x50/0x90 [ 898.123309][ T7961] ? __pfx_down_read+0x10/0x10 [ 898.123475][ T7961] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 898.123638][ T7961] blocking_notifier_call_chain+0x50/0x90 [ 898.123799][ T7961] __netdev_upper_dev_unlink+0xd9/0x220 [ 898.123964][ T7961] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 898.124167][ T7961] ? synchronize_rcu_expedited+0x3b0/0x450 [ 898.124368][ T7961] ? __pfx_autoremove_wake_function+0x10/0x10 [ 898.124577][ T7961] netdev_upper_dev_unlink+0x71/0xa0 [ 898.124739][ T7961] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 898.124938][ T7961] ? mutex_is_locked+0x1c/0x60 [ 898.125099][ T7961] ? rtnl_is_locked+0x15/0x20 [ 898.125275][ T7961] ? netdev_master_upper_dev_get+0x13/0x120 [ 898.125475][ T7961] ovs_netdev_detach_dev+0xb0/0x170 [openvswitch] [ 898.125691][ T7961] ? ovs_netdev_get_vport+0x78/0xf0 [openvswitch] [ 898.125909][ T7961] dp_device_event+0x68/0x140 [openvswitch] [ 898.126116][ T7961] ? trace_notifier_run+0xe7/0x150 [ 898.126276][ T7961] notifier_call_chain+0xcd/0x150 [ 898.126438][ T7961] blocking_notifier_call_chain+0x66/0x90 [ 898.126601][ T7961] unregister_netdevice_many_notify+0xa83/0x1580 [ 898.126801][ T7961] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 898.127004][ T7961] ? rtnl_dellink+0x228/0xa40 [ 898.127165][ T7961] ? sock_def_readable+0x11e/0x300 [ 898.127331][ T7961] ? rtnl_is_locked+0x15/0x20 [ 898.127492][ T7961] ? unregister_netdevice_queue+0x70/0x410 [ 898.127690][ T7961] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 898.127895][ T7961] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 898.128095][ T7961] rtnl_dellink+0x348/0xa40 [ 898.128262][ T7961] ? __pfx_rtnl_dellink+0x10/0x10 [ 898.128438][ T7961] ? find_held_lock+0x2c/0x110 [ 898.128598][ T7961] ? __lock_release+0x103/0x460 [ 898.128758][ T7961] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 898.128919][ T7961] ? __pfx___lock_release+0x10/0x10 [ 898.129082][ T7961] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 898.129245][ T7961] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 898.129410][ T7961] ? __pfx_rtnl_dellink+0x10/0x10 [ 898.129570][ T7961] rtnetlink_rcv_msg+0x712/0xc10 [ 898.129732][ T7961] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 898.129900][ T7961] ? hlock_class+0x4e/0x130 [ 898.130061][ T7961] ? mark_lock+0x38/0x3e0 [ 898.130184][ T7961] ? __lock_acquire+0xb9a/0x1680 [ 898.130348][ T7961] netlink_rcv_skb+0x130/0x360 [ 898.130512][ T7961] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 898.130677][ T7961] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 898.130841][ T7961] ? netlink_deliver_tap+0x13e/0x340 [ 898.131003][ T7961] ? netlink_deliver_tap+0xc3/0x340 [ 898.131165][ T7961] netlink_unicast+0x44b/0x710 [ 898.131326][ T7961] ? __pfx_netlink_unicast+0x10/0x10 [ 898.131485][ T7961] ? find_held_lock+0x2c/0x110 [ 898.131646][ T7961] netlink_sendmsg+0x723/0xbe0 [ 898.131814][ T7961] ? __pfx_netlink_sendmsg+0x10/0x10 [ 898.131979][ T7961] ____sys_sendmsg+0x7ac/0xa10 [ 898.132143][ T7961] ? __pfx_____sys_sendmsg+0x10/0x10 [ 898.132303][ T7961] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 898.132506][ T7961] ___sys_sendmsg+0xee/0x170 [ 898.132668][ T7961] ? __pfx____sys_sendmsg+0x10/0x10 [ 898.132828][ T7961] ? kasan_save_stack+0x34/0x50 [ 898.132994][ T7961] ? kasan_save_stack+0x24/0x50 [ 898.133154][ T7961] ? __kasan_record_aux_stack+0x8e/0xa0 [ 898.133316][ T7961] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 898.133517][ T7961] ? __x64_sys_close+0x7c/0xd0 [ 898.133685][ T7961] ? do_syscall_64+0xc1/0x1d0 [ 898.133851][ T7961] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 898.134048][ T7961] ? __lock_acquire+0xb9a/0x1680 [ 898.134216][ T7961] ? find_held_lock+0x2c/0x110 [ 898.134378][ T7961] ? __lock_release+0x103/0x460 [ 898.134538][ T7961] ? __virt_addr_valid+0x22b/0x430 [ 898.134701][ T7961] ? __pfx___lock_release+0x10/0x10 [ 898.134863][ T7961] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 898.135026][ T7961] __sys_sendmsg+0x109/0x1a0 [ 898.135202][ T7961] ? __pfx___sys_sendmsg+0x10/0x10 [ 898.135368][ T7961] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 898.135576][ T7961] do_syscall_64+0xc1/0x1d0 [ 898.135738][ T7961] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 898.135937][ T7961] RIP: 0033:0x7f4b6f2a89a7 [ 898.136103][ T7961] 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 [ 898.136672][ T7961] RSP: 002b:00007ffeae474e38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 898.136917][ T7961] RAX: ffffffffffffffda RBX: 00007ffeae475560 RCX: 00007f4b6f2a89a7 [ 898.137158][ T7961] RDX: 0000000000000000 RSI: 00007ffeae474ea0 RDI: 0000000000000005 [ 898.137398][ T7961] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 898.137645][ T7961] R10: 00007f4b6f166ef8 R11: 0000000000000246 R12: 0000000000000001 [ 898.137885][ T7961] R13: 0000000067795aca R14: 0000000000498600 R15: 0000000000000000 [ 898.138129][ T7961] [ 898.138388][ T7961] s0 (unregistering): left promiscuous mode [ 898.221209][ T7961] ip (7961) used greatest stack depth: 23128 bytes left [ 898.479803][ T7969] c0 (unregistering): left promiscuous mode [ 900.085226][ T7975] arpping: left promiscuous mode [ 904.620556][ T8019] netlink: 'python3': attribute type 2 has an invalid length. [ 904.625135][ T8019] ct4: entered promiscuous mode [ 907.094786][ T8071] c0: entered promiscuous mode [ 909.487638][ T8109] s0: entered promiscuous mode [ 934.142794][ T8264] s0 (unregistering): left promiscuous mode [ 934.471760][ T8272] c0 (unregistering): left promiscuous mode [ 936.067679][ T8278] ct4: left promiscuous mode [ 940.659798][ T8321] netlink: 'python3': attribute type 2 has an invalid length. [ 940.664355][ T8321] cv4: entered promiscuous mode [ 943.174052][ T8371] c0: entered promiscuous mode [ 945.626419][ T8409] s0: entered promiscuous mode [ 954.787801][ T8496] s0 (unregistering): left promiscuous mode [ 955.115674][ T8504] c0 (unregistering): left promiscuous mode [ 956.695388][ T8510] cv4: left promiscuous mode [ 961.167855][ T8554] netlink: 'python3': attribute type 2 has an invalid length. [ 961.172655][ T8554] nat4: entered promiscuous mode [ 963.568388][ T8604] c0: entered promiscuous mode [ 965.947284][ T8643] s0: entered promiscuous mode [ 988.605754][ T8783] s0 (unregistering): left promiscuous mode [ 988.945255][ T8791] c0 (unregistering): left promiscuous mode [ 990.447756][ T8797] nat4: left promiscuous mode [ 994.916272][ T8841] netlink: 'python3': attribute type 2 has an invalid length. [ 994.920802][ T8841] natrelated4: entered promiscuous mode [ 997.390227][ T8891] c0: entered promiscuous mode [ 999.740074][ T8930] s0: entered promiscuous mode [ 1012.645854][ T9083] s0 (unregistering): left promiscuous mode [ 1012.956794][ T9091] c0 (unregistering): left promiscuous mode [ 1014.453679][ T9097] natrelated4: left promiscuous mode [ 1018.737389][ T9142] netlink: 'python3': attribute type 2 has an invalid length. [ 1018.741852][ T9142] nv0: entered promiscuous mode [ 1020.291713][ T9167] netlink: 'python3': attribute type 2 has an invalid length. [ 1020.292729][ T9167] openvswitch: nv0: Dropping previously announced user features [ 1022.627322][ T9216] left0: entered promiscuous mode [ 1024.959767][ T9255] right0: entered promiscuous mode [ 1027.926001][ T9287] right0: left promiscuous mode [ 1030.973600][ T9323] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 1031.062668][ T9323] python3 (9323) used greatest stack depth: 22472 bytes left [ 1032.574414][ T9346] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 1033.241757][ T9373] left0 (unregistering): left promiscuous mode [ 1034.744648][ T9379] nv0: left promiscuous mode [ 1040.637292][ T9438] ui0: entered promiscuous mode [ 1043.136590][ T9489] left0: entered promiscuous mode [ 1045.692804][ T9520] left0 (unregistering): left promiscuous mode [ 1047.219094][ T9528] ui0: left promiscuous mode [ 1051.924624][ T9572] netlink: 'python3': attribute type 2 has an invalid length. [ 1051.930814][ T9572] dropreason: entered promiscuous mode [ 1054.408315][ T9622] c0: entered promiscuous mode [ 1056.802490][ T9661] s0: entered promiscuous mode [ 1092.601795][ T9832] s0 (unregistering): left promiscuous mode [ 1092.918789][ T9840] c0 (unregistering): left promiscuous mode [ 1094.564559][ T9846] dropreason: left promiscuous mode [ 1099.093043][ T9889] psample: entered promiscuous mode [ 1102.213924][ T9940] c0: entered promiscuous mode [ 1103.218027][ T9972] s0: entered promiscuous mode [ 1106.592650][T10035] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 1108.474422][T10058] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 1110.242376][T10081] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 1121.663766][T10224] s0 (unregistering): left promiscuous mode [ 1122.009752][T10234] c0 (unregistering): left promiscuous mode [ 1123.582678][T10241] psample: left promiscuous mode