[ 134.001138][ T1525] br0: port 1(veth0) entered blocking state [ 134.001496][ T1525] br0: port 1(veth0) entered disabled state [ 134.001758][ T1525] veth0: entered allmulticast mode [ 134.003618][ T1525] veth0: entered promiscuous mode [ 134.275044][ T1528] br0: port 1(veth0) entered blocking state [ 134.275484][ T1528] br0: port 1(veth0) entered forwarding state [ 137.543804][ T1573] veth0: left allmulticast mode [ 137.544036][ T1573] veth0: left promiscuous mode [ 137.544378][ T1573] br0: port 1(veth0) entered disabled state [ 137.823565][ T1576] 8021q: 802.1Q VLAN Support v1.8 [ 137.929707][ T1577] [ 137.929895][ T1577] ============================================ [ 137.930099][ T1577] WARNING: possible recursive locking detected [ 137.930304][ T1577] 6.13.0-rc5-virtme #1 Not tainted [ 137.930465][ T1577] -------------------------------------------- [ 137.930665][ T1577] ip/1577 is trying to acquire lock: [ 137.930817][ T1577] ffffffffad7dfc30 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 137.931143][ T1577] [ 137.931143][ T1577] but task is already holding lock: [ 137.931368][ T1577] ffffffffad7dfc30 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 137.931681][ T1577] [ 137.931681][ T1577] other info that might help us debug this: [ 137.931906][ T1577] Possible unsafe locking scenario: [ 137.931906][ T1577] [ 137.932139][ T1577] CPU0 [ 137.932255][ T1577] ---- [ 137.932368][ T1577] lock((netdev_chain).rwsem); [ 137.932522][ T1577] lock((netdev_chain).rwsem); [ 137.932674][ T1577] [ 137.932674][ T1577] *** DEADLOCK *** [ 137.932674][ T1577] [ 137.932902][ T1577] May be due to missing lock nesting notation [ 137.932902][ T1577] [ 137.933130][ T1577] 2 locks held by ip/1577: [ 137.933284][ T1577] #0: ffffffffad7f1088 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x653/0xa70 [ 137.933559][ T1577] #1: ffffffffad7dfc30 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 137.933877][ T1577] [ 137.933877][ T1577] stack backtrace: [ 137.934066][ T1577] CPU: 3 UID: 0 PID: 1577 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 137.934301][ T1577] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 137.934495][ T1577] Call Trace: [ 137.934612][ T1577] [ 137.934694][ T1577] dump_stack_lvl+0x82/0xd0 [ 137.934851][ T1577] print_deadlock_bug+0x40a/0x650 [ 137.935014][ T1577] validate_chain+0x5bf/0xae0 [ 137.935170][ T1577] ? __pfx_validate_chain+0x10/0x10 [ 137.935333][ T1577] ? hlock_class+0x4e/0x130 [ 137.935488][ T1577] ? mark_lock+0x38/0x3e0 [ 137.935607][ T1577] ? add_lock_to_list+0x61/0x5e0 [ 137.935773][ T1577] __lock_acquire+0xb9a/0x1680 [ 137.935930][ T1577] ? validate_chain+0x5a7/0xae0 [ 137.936086][ T1577] lock_acquire.part.0+0xeb/0x330 [ 137.936247][ T1577] ? blocking_notifier_call_chain+0x50/0x90 [ 137.936438][ T1577] ? __pfx_validate_chain+0x10/0x10 [ 137.936593][ T1577] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 137.936746][ T1577] ? trace_lock_acquire+0x14c/0x1f0 [ 137.936906][ T1577] ? lock_acquire+0x32/0xc0 [ 137.937059][ T1577] ? blocking_notifier_call_chain+0x50/0x90 [ 137.937249][ T1577] down_read+0x9f/0x340 [ 137.937370][ T1577] ? blocking_notifier_call_chain+0x50/0x90 [ 137.937561][ T1577] ? __pfx_down_read+0x10/0x10 [ 137.937716][ T1577] blocking_notifier_call_chain+0x50/0x90 [ 137.937872][ T1577] __dev_open+0x15c/0x430 [ 137.937992][ T1577] ? __pfx___dev_open+0x10/0x10 [ 137.938149][ T1577] ? mark_held_locks+0x9e/0xe0 [ 137.938302][ T1577] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 137.938501][ T1577] __dev_change_flags+0x469/0x6c0 [ 137.938657][ T1577] ? __pfx___dev_change_flags+0x10/0x10 [ 137.938813][ T1577] dev_change_flags+0x80/0x160 [ 137.938970][ T1577] vlan_device_event+0x810/0x2130 [8021q] [ 137.939131][ T1577] ? __pfx_nf_tables_netdev_event+0x10/0x10 [nf_tables] [ 137.939358][ T1577] ? __pfx_vlan_device_event+0x10/0x10 [8021q] [ 137.939551][ T1577] ? __pfx_br_device_event+0x10/0x10 [bridge] [ 137.939778][ T1577] ? nft_offload_netdev_event+0x3d/0x3b0 [nf_tables] [ 137.939995][ T1577] notifier_call_chain+0xcd/0x150 [ 137.940153][ T1577] blocking_notifier_call_chain+0x66/0x90 [ 137.940307][ T1577] __dev_notify_flags+0xe6/0x250 [ 137.940468][ T1577] ? __pfx___dev_notify_flags+0x10/0x10 [ 137.940624][ T1577] ? __pfx___dev_change_flags+0x10/0x10 [ 137.940781][ T1577] ? unwind_get_return_address+0x5e/0xa0 [ 137.940935][ T1577] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 137.941127][ T1577] ? __pfx_validate_chain+0x10/0x10 [ 137.941290][ T1577] dev_change_flags+0xec/0x160 [ 137.941445][ T1577] do_setlink.constprop.0+0x79d/0x2300 [ 137.941600][ T1577] ? __pfx_do_setlink.constprop.0+0x10/0x10 [ 137.941809][ T1577] ? lock_acquire.part.0+0xeb/0x330 [ 137.941969][ T1577] ? rtnl_newlink+0x653/0xa70 [ 137.942131][ T1577] ? rtnl_newlink+0xb9/0xa70 [ 137.942282][ T1577] ? rtnetlink_rcv_msg+0x712/0xc10 [ 137.942437][ T1577] ? __mutex_trylock_common+0xfa/0x260 [ 137.942593][ T1577] ? __pfx___mutex_trylock_common+0x10/0x10 [ 137.942783][ T1577] ? lock_acquire+0x32/0xc0 [ 137.942937][ T1577] ? trace_contention_end+0xef/0x150 [ 137.943096][ T1577] ? __mutex_lock+0x190/0xbc0 [ 137.943250][ T1577] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 137.943404][ T1577] ? rtnl_newlink+0x653/0xa70 [ 137.943556][ T1577] ? __pfx___mutex_lock+0x10/0x10 [ 137.943711][ T1577] ? __create_object+0x5e/0xb0 [ 137.943873][ T1577] ? __rtnl_newlink+0x3f2/0xa80 [ 137.944031][ T1577] rtnl_newlink+0x69c/0xa70 [ 137.944186][ T1577] ? __pfx_rtnl_newlink+0x10/0x10 [ 137.944346][ T1577] ? find_held_lock+0x2c/0x110 [ 137.944504][ T1577] ? __pfx___lock_release+0x10/0x10 [ 137.944656][ T1577] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 137.944812][ T1577] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 137.944965][ T1577] ? __pfx_rtnl_newlink+0x10/0x10 [ 137.945120][ T1577] rtnetlink_rcv_msg+0x712/0xc10 [ 137.945273][ T1577] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 137.945431][ T1577] ? hlock_class+0x4e/0x130 [ 137.945585][ T1577] ? mark_lock+0x38/0x3e0 [ 137.945705][ T1577] ? __lock_acquire+0xb9a/0x1680 [ 137.945858][ T1577] netlink_rcv_skb+0x130/0x360 [ 137.946014][ T1577] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 137.946183][ T1577] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 137.946360][ T1577] ? netlink_deliver_tap+0x13e/0x340 [ 137.946539][ T1577] ? netlink_deliver_tap+0xc3/0x340 [ 137.946694][ T1577] netlink_unicast+0x44b/0x710 [ 137.946971][ T1577] ? __pfx_netlink_unicast+0x10/0x10 [ 137.947125][ T1577] ? find_held_lock+0x2c/0x110 [ 137.947279][ T1577] ? __lock_release+0x103/0x460 [ 137.947431][ T1577] netlink_sendmsg+0x723/0xbe0 [ 137.947586][ T1577] ? __pfx_netlink_sendmsg+0x10/0x10 [ 137.947745][ T1577] ? _copy_from_user+0x55/0xa0 [ 137.947926][ T1577] ____sys_sendmsg+0x7ac/0xa10 [ 137.948082][ T1577] ? __pfx_____sys_sendmsg+0x10/0x10 [ 137.948235][ T1577] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 137.948432][ T1577] ___sys_sendmsg+0xee/0x170 [ 137.948585][ T1577] ? __pfx____sys_sendmsg+0x10/0x10 [ 137.948739][ T1577] ? kasan_save_stack+0x34/0x50 [ 137.948894][ T1577] ? kasan_save_stack+0x24/0x50 [ 137.949051][ T1577] ? __kasan_record_aux_stack+0x8e/0xa0 [ 137.949206][ T1577] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 137.949398][ T1577] ? __x64_sys_close+0x7c/0xd0 [ 137.949554][ T1577] ? do_syscall_64+0xc1/0x1d0 [ 137.949709][ T1577] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 137.949898][ T1577] ? __lock_acquire+0xb9a/0x1680 [ 137.950077][ T1577] ? find_held_lock+0x2c/0x110 [ 137.950236][ T1577] ? __lock_release+0x103/0x460 [ 137.950394][ T1577] ? __virt_addr_valid+0x22b/0x430 [ 137.950552][ T1577] ? __pfx___lock_release+0x10/0x10 [ 137.950706][ T1577] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 137.950862][ T1577] __sys_sendmsg+0x109/0x1a0 [ 137.951017][ T1577] ? __pfx___sys_sendmsg+0x10/0x10 [ 137.951171][ T1577] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 137.951370][ T1577] do_syscall_64+0xc1/0x1d0 [ 137.951527][ T1577] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 137.951712][ T1577] RIP: 0033:0x7fbe94a069a7 [ 137.951872][ T1577] 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 [ 137.952432][ T1577] RSP: 002b:00007ffec922b9b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 137.952665][ T1577] RAX: ffffffffffffffda RBX: 00007ffec922c0f0 RCX: 00007fbe94a069a7 [ 137.952897][ T1577] RDX: 0000000000000000 RSI: 00007ffec922ba20 RDI: 0000000000000005 [ 137.953129][ T1577] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 137.953366][ T1577] R10: 00007fbe948c44a8 R11: 0000000000000246 R12: 0000000000000003 [ 137.953599][ T1577] R13: 0000000067792e3c R14: 0000000000498600 R15: 0000000000000000 [ 137.953832][ T1577] [ 137.966209][ T1577] ip (1577) used greatest stack depth: 23280 bytes left [ 138.096213][ T1580] br0: port 1(veth0.10) entered blocking state [ 138.096488][ T1580] br0: port 1(veth0.10) entered disabled state [ 138.096718][ T1580] veth0.10: entered allmulticast mode [ 138.096884][ T1580] veth0: entered allmulticast mode [ 138.098752][ T1580] veth0.10: entered promiscuous mode [ 138.098932][ T1580] veth0: entered promiscuous mode [ 138.099922][ T1580] br0: port 1(veth0.10) entered blocking state [ 138.100142][ T1580] br0: port 1(veth0.10) entered forwarding state [ 140.695892][ T1631] veth0: left allmulticast mode [ 140.696100][ T1631] veth0: left promiscuous mode [ 140.697328][ T1631] br0: port 1(veth0.10) entered disabled state [ 140.853148][ T1633] veth0.10 (unregistering): left allmulticast mode [ 140.853468][ T1633] veth0.10 (unregistering): left promiscuous mode [ 140.853682][ T1633] br0: port 1(veth0.10) entered disabled state [ 142.334483][ T1656] Initializing XFRM netlink socket [ 171.827521][ T1956] br0: port 1(veth0) entered blocking state [ 171.827750][ T1956] br0: port 1(veth0) entered disabled state [ 171.827964][ T1956] veth0: entered allmulticast mode [ 171.829407][ T1956] veth0: entered promiscuous mode [ 172.030265][ T1959] br0: port 1(veth0) entered blocking state [ 172.030567][ T1959] br0: port 1(veth0) entered forwarding state [ 177.190169][ T2004] veth0: left allmulticast mode [ 177.190390][ T2004] veth0: left promiscuous mode [ 177.190682][ T2004] br0: port 1(veth0) entered disabled state [ 177.542152][ T2009] br0: port 1(veth0.10) entered blocking state [ 177.542434][ T2009] br0: port 1(veth0.10) entered disabled state [ 177.542666][ T2009] veth0.10: entered allmulticast mode [ 177.542825][ T2009] veth0: entered allmulticast mode [ 177.544770][ T2009] veth0.10: entered promiscuous mode [ 177.544950][ T2009] veth0: entered promiscuous mode [ 177.545906][ T2009] br0: port 1(veth0.10) entered blocking state [ 177.546118][ T2009] br0: port 1(veth0.10) entered forwarding state [ 182.790976][ T2060] veth0: left allmulticast mode [ 182.791206][ T2060] veth0: left promiscuous mode [ 182.792438][ T2060] br0: port 1(veth0.10) entered disabled state [ 182.942868][ T2062] veth0.10 (unregistering): left allmulticast mode [ 182.943100][ T2062] veth0.10 (unregistering): left promiscuous mode [ 182.943305][ T2062] br0: port 1(veth0.10) entered disabled state