[ 12.340911][ T242] openvswitch: Open vSwitch switching datapath [ 12.666703][ T238] python3 (238) used greatest stack depth: 24312 bytes left [ 16.893239][ T273] netlink: 'python3': attribute type 2 has an invalid length. [ 16.900493][ T273] arpping: entered promiscuous mode [ 17.790315][ T300] ip (300) used greatest stack depth: 23520 bytes left [ 20.505136][ T324] c0: entered promiscuous mode [ 24.063336][ T364] s0: entered promiscuous mode [ 31.539762][ T428] [ 31.539933][ T428] ============================================ [ 31.540129][ T428] WARNING: possible recursive locking detected [ 31.540457][ T428] 6.13.0-rc5-virtme #1 Not tainted [ 31.540622][ T428] -------------------------------------------- [ 31.540811][ T428] ip/428 is trying to acquire lock: [ 31.540973][ T428] ffffffff9f1f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 31.541290][ T428] [ 31.541290][ T428] but task is already holding lock: [ 31.541511][ T428] ffffffff9f1f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 31.541833][ T428] [ 31.541833][ T428] other info that might help us debug this: [ 31.542081][ T428] Possible unsafe locking scenario: [ 31.542081][ T428] [ 31.542350][ T428] CPU0 [ 31.542487][ T428] ---- [ 31.542625][ T428] lock((netdev_chain).rwsem); [ 31.542792][ T428] lock((netdev_chain).rwsem); [ 31.542951][ T428] [ 31.542951][ T428] *** DEADLOCK *** [ 31.542951][ T428] [ 31.543214][ T428] May be due to missing lock nesting notation [ 31.543214][ T428] [ 31.543447][ T428] 2 locks held by ip/428: [ 31.543570][ T428] #0: ffffffff9f207e88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 31.543849][ T428] #1: ffffffff9f1f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 31.544165][ T428] [ 31.544165][ T428] stack backtrace: [ 31.544360][ T428] CPU: 2 UID: 0 PID: 428 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 31.544591][ T428] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 31.544779][ T428] Call Trace: [ 31.544894][ T428] [ 31.544982][ T428] dump_stack_lvl+0x82/0xd0 [ 31.545141][ T428] print_deadlock_bug+0x40a/0x650 [ 31.545322][ T428] validate_chain+0x5bf/0xae0 [ 31.545471][ T428] ? __lock_acquire+0xb9a/0x1680 [ 31.545645][ T428] ? __pfx_validate_chain+0x10/0x10 [ 31.545803][ T428] ? hlock_class+0x4e/0x130 [ 31.545954][ T428] ? mark_lock+0x38/0x3e0 [ 31.546069][ T428] __lock_acquire+0xb9a/0x1680 [ 31.546223][ T428] lock_acquire.part.0+0xeb/0x330 [ 31.546394][ T428] ? blocking_notifier_call_chain+0x50/0x90 [ 31.546591][ T428] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.546750][ T428] ? trace_lock_acquire+0x14c/0x1f0 [ 31.546915][ T428] ? lock_acquire+0x32/0xc0 [ 31.547071][ T428] ? blocking_notifier_call_chain+0x50/0x90 [ 31.547256][ T428] down_read+0x9f/0x340 [ 31.547379][ T428] ? blocking_notifier_call_chain+0x50/0x90 [ 31.547565][ T428] ? __pfx_down_read+0x10/0x10 [ 31.547735][ T428] ? __mutex_unlock_slowpath+0x14a/0x3d0 [ 31.547889][ T428] blocking_notifier_call_chain+0x50/0x90 [ 31.548041][ T428] __netdev_upper_dev_unlink+0xd9/0x220 [ 31.548193][ T428] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 31.548400][ T428] ? synchronize_rcu_expedited+0x3b0/0x450 [ 31.548596][ T428] ? __pfx_autoremove_wake_function+0x10/0x10 [ 31.548946][ T428] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 31.549143][ T428] netdev_upper_dev_unlink+0x71/0xa0 [ 31.549292][ T428] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 31.549483][ T428] ? mutex_is_locked+0x1c/0x60 [ 31.549665][ T428] ? rtnl_is_locked+0x15/0x20 [ 31.549826][ T428] ? netdev_master_upper_dev_get+0x13/0x120 [ 31.550011][ T428] ovs_netdev_detach_dev+0xb0/0x170 [openvswitch] [ 31.550247][ T428] ? ovs_netdev_get_vport+0x78/0xf0 [openvswitch] [ 31.550478][ T428] dp_device_event+0x68/0x140 [openvswitch] [ 31.550678][ T428] ? trace_notifier_run+0xe7/0x150 [ 31.550839][ T428] notifier_call_chain+0xcd/0x150 [ 31.550992][ T428] blocking_notifier_call_chain+0x66/0x90 [ 31.551226][ T428] unregister_netdevice_many_notify+0xa83/0x1580 [ 31.551450][ T428] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 31.551664][ T428] ? rtnl_dellink+0x228/0xa40 [ 31.551818][ T428] ? sock_def_readable+0x11e/0x300 [ 31.551995][ T428] ? rtnl_is_locked+0x15/0x20 [ 31.552157][ T428] ? unregister_netdevice_queue+0x70/0x410 [ 31.552386][ T428] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 31.552568][ T428] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 31.552768][ T428] rtnl_dellink+0x348/0xa40 [ 31.552925][ T428] ? __pfx_rtnl_dellink+0x10/0x10 [ 31.553087][ T428] ? find_held_lock+0x2c/0x110 [ 31.553238][ T428] ? __lock_release+0x103/0x460 [ 31.553418][ T428] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 31.553568][ T428] ? __pfx___lock_release+0x10/0x10 [ 31.553740][ T428] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.553891][ T428] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 31.554038][ T428] ? __pfx_rtnl_dellink+0x10/0x10 [ 31.554191][ T428] rtnetlink_rcv_msg+0x712/0xc10 [ 31.554340][ T428] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 31.554504][ T428] ? hlock_class+0x4e/0x130 [ 31.554686][ T428] ? mark_lock+0x38/0x3e0 [ 31.554811][ T428] ? __lock_acquire+0xb9a/0x1680 [ 31.554959][ T428] netlink_rcv_skb+0x130/0x360 [ 31.555121][ T428] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 31.555268][ T428] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 31.555420][ T428] ? netlink_deliver_tap+0x13e/0x340 [ 31.555575][ T428] ? netlink_deliver_tap+0xc3/0x340 [ 31.555751][ T428] netlink_unicast+0x44b/0x710 [ 31.555909][ T428] ? __pfx_netlink_unicast+0x10/0x10 [ 31.556070][ T428] ? find_held_lock+0x2c/0x110 [ 31.556237][ T428] netlink_sendmsg+0x723/0xbe0 [ 31.556386][ T428] ? __pfx_netlink_sendmsg+0x10/0x10 [ 31.556536][ T428] ____sys_sendmsg+0x7ac/0xa10 [ 31.556697][ T428] ? __pfx_____sys_sendmsg+0x10/0x10 [ 31.556867][ T428] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 31.557053][ T428] ___sys_sendmsg+0xee/0x170 [ 31.557204][ T428] ? __pfx____sys_sendmsg+0x10/0x10 [ 31.557355][ T428] ? kasan_save_stack+0x34/0x50 [ 31.557507][ T428] ? kasan_save_stack+0x24/0x50 [ 31.557654][ T428] ? __kasan_record_aux_stack+0x8e/0xa0 [ 31.557806][ T428] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 31.558019][ T428] ? __x64_sys_close+0x7c/0xd0 [ 31.558173][ T428] ? do_syscall_64+0xc1/0x1d0 [ 31.558324][ T428] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 31.558511][ T428] ? __lock_acquire+0xb9a/0x1680 [ 31.558685][ T428] ? find_held_lock+0x2c/0x110 [ 31.558839][ T428] ? __lock_release+0x103/0x460 [ 31.558987][ T428] ? __virt_addr_valid+0x22b/0x430 [ 31.559156][ T428] ? __pfx___lock_release+0x10/0x10 [ 31.559305][ T428] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.559455][ T428] __sys_sendmsg+0x109/0x1a0 [ 31.559608][ T428] ? __pfx___sys_sendmsg+0x10/0x10 [ 31.559762][ T428] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 31.559957][ T428] do_syscall_64+0xc1/0x1d0 [ 31.560109][ T428] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 31.560293][ T428] RIP: 0033:0x7f91c693f9a7 [ 31.560478][ T428] 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 [ 31.561028][ T428] RSP: 002b:00007ffc5da63748 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 31.561282][ T428] RAX: ffffffffffffffda RBX: 00007ffc5da63e70 RCX: 00007f91c693f9a7 [ 31.561513][ T428] RDX: 0000000000000000 RSI: 00007ffc5da637b0 RDI: 0000000000000005 [ 31.561738][ T428] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 31.561975][ T428] R10: 00007f91c67fdef8 R11: 0000000000000246 R12: 0000000000000001 [ 31.562217][ T428] R13: 00000000677904bd R14: 0000000000498600 R15: 0000000000000000 [ 31.562466][ T428] [ 31.562782][ T428] s0 (unregistering): left promiscuous mode [ 31.652725][ T428] ip (428) used greatest stack depth: 23360 bytes left [ 31.919921][ T436] c0 (unregistering): left promiscuous mode [ 33.761412][ T442] arpping: left promiscuous mode [ 38.855447][ T486] netlink: 'python3': attribute type 2 has an invalid length. [ 38.860259][ T486] ct4: entered promiscuous mode [ 41.529024][ T536] c0: entered promiscuous mode [ 44.142233][ T574] s0: entered promiscuous mode [ 69.629763][ T729] s0 (unregistering): left promiscuous mode [ 69.958315][ T737] c0 (unregistering): left promiscuous mode [ 71.696290][ T743] ct4: left promiscuous mode [ 76.368369][ T786] netlink: 'python3': attribute type 2 has an invalid length. [ 76.373426][ T786] cv4: entered promiscuous mode [ 78.883855][ T836] c0: entered promiscuous mode [ 81.330348][ T875] s0: entered promiscuous mode [ 90.515900][ T962] s0 (unregistering): left promiscuous mode [ 90.830788][ T970] c0 (unregistering): left promiscuous mode [ 92.446887][ T977] cv4: left promiscuous mode [ 97.009706][ T1021] netlink: 'python3': attribute type 2 has an invalid length. [ 97.014037][ T1021] nat4: entered promiscuous mode [ 99.469700][ T1072] c0: entered promiscuous mode [ 101.851211][ T1110] s0: entered promiscuous mode [ 124.715775][ T1250] s0 (unregistering): left promiscuous mode [ 125.054735][ T1258] c0 (unregistering): left promiscuous mode [ 126.594687][ T1264] nat4: left promiscuous mode [ 130.936869][ T1308] netlink: 'python3': attribute type 2 has an invalid length. [ 130.941331][ T1308] natrelated4: entered promiscuous mode [ 133.320910][ T1358] c0: entered promiscuous mode [ 135.570758][ T1396] s0: entered promiscuous mode [ 147.998763][ T1549] s0 (unregistering): left promiscuous mode [ 148.293564][ T1557] c0 (unregistering): left promiscuous mode [ 149.739602][ T1563] natrelated4: left promiscuous mode [ 153.965810][ T1607] netlink: 'python3': attribute type 2 has an invalid length. [ 153.970014][ T1607] nv0: entered promiscuous mode [ 155.482037][ T1631] netlink: 'python3': attribute type 2 has an invalid length. [ 155.483057][ T1631] openvswitch: nv0: Dropping previously announced user features [ 157.794206][ T1680] left0: entered promiscuous mode [ 160.022057][ T1718] right0: entered promiscuous mode [ 162.818468][ T1750] right0: left promiscuous mode [ 165.661556][ T1786] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 165.753355][ T1786] python3 (1786) used greatest stack depth: 22472 bytes left [ 167.229064][ T1809] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 167.789739][ T1836] left0 (unregistering): left promiscuous mode [ 169.214005][ T1842] nv0: left promiscuous mode [ 174.793029][ T1901] ui0: entered promiscuous mode [ 177.197996][ T1951] left0: entered promiscuous mode [ 179.752649][ T1982] left0 (unregistering): left promiscuous mode [ 181.178533][ T1990] ui0: left promiscuous mode [ 185.415375][ T2034] netlink: 'python3': attribute type 2 has an invalid length. [ 185.419796][ T2034] dropreason: entered promiscuous mode [ 187.743525][ T2085] c0: entered promiscuous mode [ 189.996527][ T2123] s0: entered promiscuous mode [ 224.557570][ T2294] s0 (unregistering): left promiscuous mode [ 224.883387][ T2302] c0 (unregistering): left promiscuous mode [ 226.363478][ T2308] dropreason: left promiscuous mode [ 230.657306][ T2351] psample: entered promiscuous mode [ 233.571260][ T2403] c0: entered promiscuous mode [ 234.301379][ T2434] s0: entered promiscuous mode [ 237.970858][ T2497] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 239.827261][ T2520] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 241.575205][ T2543] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 251.381805][ T2684] s0 (unregistering): left promiscuous mode [ 251.735785][ T2694] c0 (unregistering): left promiscuous mode [ 253.297443][ T2700] psample: left promiscuous mode