[ 35.241980][ T311] veth2: entered promiscuous mode [ 54.886695][ T338] 8021q: 802.1Q VLAN Support v1.8 [ 433.602631][ T311] veth2: left promiscuous mode [ 477.280156][ T1481] br0: port 1(veth1) entered blocking state [ 477.280455][ T1481] br0: port 1(veth1) entered disabled state [ 477.280750][ T1481] veth1: entered allmulticast mode [ 477.283516][ T1481] veth1: entered promiscuous mode [ 477.284872][ T1481] br0: port 1(veth1) entered blocking state [ 477.285266][ T1481] br0: port 1(veth1) entered forwarding state [ 477.421318][ T1482] br1: port 1(veth3) entered blocking state [ 477.421631][ T1482] br1: port 1(veth3) entered disabled state [ 477.422189][ T1482] veth3: entered allmulticast mode [ 477.425688][ T1482] veth3: entered promiscuous mode [ 477.426715][ T1482] br1: port 1(veth3) entered blocking state [ 477.426956][ T1482] br1: port 1(veth3) entered forwarding state [ 478.318811][ T1495] veth2: entered promiscuous mode [ 492.329578][ C0] [ 492.329748][ C0] ======================================================== [ 492.330027][ C0] WARNING: possible irq lock inversion dependency detected [ 492.330276][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 492.330444][ C0] -------------------------------------------------------- [ 492.330691][ C0] swapper/0/0 just changed the state of lock: [ 492.330905][ C0] ffff88800ab32c38 (&br->lock){+.-.}-{2:2}, at: br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.331328][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 492.331575][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 492.331580][ C0] [ 492.331580][ C0] [ 492.331580][ C0] and interrupts could create inverse lock ordering between them. [ 492.331580][ C0] [ 492.332203][ C0] [ 492.332203][ C0] other info that might help us debug this: [ 492.332449][ C0] Chain exists of: [ 492.332449][ C0] &br->lock --> lweventlist_lock --> &p->alloc_lock [ 492.332449][ C0] [ 492.332824][ C0] Possible interrupt unsafe locking scenario: [ 492.332824][ C0] [ 492.333067][ C0] CPU0 CPU1 [ 492.333237][ C0] ---- ---- [ 492.333404][ C0] lock(&p->alloc_lock); [ 492.333534][ C0] local_irq_disable(); [ 492.333738][ C0] lock(&br->lock); [ 492.333945][ C0] lock(lweventlist_lock); [ 492.334152][ C0] [ 492.334280][ C0] lock(&br->lock); [ 492.334406][ C0] [ 492.334406][ C0] *** DEADLOCK *** [ 492.334406][ C0] [ 492.334654][ C0] 1 lock held by swapper/0/0: [ 492.334824][ C0] #0: ffffc90000007b68 ((&p->forward_delay_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 492.335199][ C0] [ 492.335199][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 492.335487][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 492.335765][ C0] HARDIRQ-ON-W at: [ 492.335900][ C0] __lock_acquire+0x797/0x1570 [ 492.336115][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.336324][ C0] _raw_spin_lock+0x30/0x40 [ 492.336534][ C0] set_mems_allowed+0x1d/0x210 [ 492.336743][ C0] kernel_init_freeable+0x72/0x310 [ 492.336956][ C0] kernel_init+0x20/0x200 [ 492.337166][ C0] ret_from_fork+0x31/0x70 [ 492.337379][ C0] ret_from_fork_asm+0x1a/0x30 [ 492.337585][ C0] SOFTIRQ-ON-W at: [ 492.337711][ C0] __lock_acquire+0x797/0x1570 [ 492.337919][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.338124][ C0] _raw_spin_lock+0x30/0x40 [ 492.338334][ C0] set_mems_allowed+0x1d/0x210 [ 492.338540][ C0] kernel_init_freeable+0x72/0x310 [ 492.338749][ C0] kernel_init+0x20/0x200 [ 492.338957][ C0] ret_from_fork+0x31/0x70 [ 492.339165][ C0] ret_from_fork_asm+0x1a/0x30 [ 492.339373][ C0] INITIAL USE at: [ 492.339500][ C0] __lock_acquire+0x797/0x1570 [ 492.339712][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.339919][ C0] _raw_spin_lock+0x30/0x40 [ 492.340130][ C0] set_mems_allowed+0x1d/0x210 [ 492.340337][ C0] kernel_init_freeable+0x72/0x310 [ 492.340543][ C0] kernel_init+0x20/0x200 [ 492.340755][ C0] ret_from_fork+0x31/0x70 [ 492.340967][ C0] ret_from_fork_asm+0x1a/0x30 [ 492.341174][ C0] } [ 492.341258][ C0] ... key at: [] __key.387+0x0/0x40 [ 492.341508][ C0] ... acquired at: [ 492.341631][ C0] __lock_acquire+0xaf0/0x1570 [ 492.341803][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.341969][ C0] _raw_spin_lock+0x30/0x40 [ 492.342134][ C0] __get_task_comm+0x27/0x70 [ 492.342306][ C0] ref_tracker_alloc+0x2ee/0x490 [ 492.342471][ C0] linkwatch_fire_event+0x196/0x200 [ 492.342638][ C0] veth_newlink+0x367/0x830 [veth] [ 492.342812][ C0] rtnl_newlink_create+0x341/0x850 [ 492.342978][ C0] __rtnl_newlink+0xac9/0xd80 [ 492.343142][ C0] rtnl_newlink+0x63/0xa0 [ 492.343307][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 492.343476][ C0] netlink_rcv_skb+0x130/0x360 [ 492.343645][ C0] netlink_unicast+0x449/0x710 [ 492.343808][ C0] netlink_sendmsg+0x723/0xbe0 [ 492.343973][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 492.344141][ C0] ___sys_sendmsg+0xee/0x170 [ 492.344308][ C0] __sys_sendmsg+0xcd/0x170 [ 492.344475][ C0] do_syscall_64+0xc6/0x1e0 [ 492.344641][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 492.344849][ C0] [ 492.344934][ C0] -> (lweventlist_lock){....}-{2:2} { [ 492.345110][ C0] INITIAL USE at: [ 492.345235][ C0] __lock_acquire+0x797/0x1570 [ 492.345443][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.345667][ C0] _raw_spin_lock_irqsave+0x3f/0x60 [ 492.345879][ C0] linkwatch_sync_dev+0x29/0x1f0 [ 492.346087][ C0] rtnl_getlink+0x4c9/0x970 [ 492.346299][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 492.346506][ C0] netlink_rcv_skb+0x130/0x360 [ 492.346712][ C0] netlink_unicast+0x449/0x710 [ 492.346919][ C0] netlink_sendmsg+0x723/0xbe0 [ 492.347125][ C0] __sys_sendto+0x37d/0x410 [ 492.347360][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 492.347579][ C0] do_syscall_64+0xc6/0x1e0 [ 492.347803][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 492.348053][ C0] } [ 492.348136][ C0] ... key at: [] lweventlist_lock+0x18/0x60 [ 492.348383][ C0] ... acquired at: [ 492.348505][ C0] __lock_acquire+0xaf0/0x1570 [ 492.348674][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.348843][ C0] _raw_spin_lock_irqsave+0x3f/0x60 [ 492.349009][ C0] linkwatch_fire_event+0x74/0x200 [ 492.349173][ C0] br_stp_change_bridge_id+0x25f/0x360 [bridge] [ 492.349421][ C0] br_set_mac_address+0x1f3/0x260 [bridge] [ 492.349659][ C0] dev_set_mac_address+0x28a/0x410 [ 492.349840][ C0] dev_set_mac_address_user+0x31/0x50 [ 492.350008][ C0] do_setlink+0x17b4/0x21e0 [ 492.350177][ C0] rtnl_setlink+0x1f7/0x310 [ 492.350346][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 492.350514][ C0] netlink_rcv_skb+0x130/0x360 [ 492.350678][ C0] netlink_unicast+0x449/0x710 [ 492.350833][ C0] netlink_sendmsg+0x723/0xbe0 [ 492.350993][ C0] __sys_sendto+0x37d/0x410 [ 492.351166][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 492.351335][ C0] do_syscall_64+0xc6/0x1e0 [ 492.351517][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 492.351727][ C0] [ 492.351809][ C0] -> (&br->lock){+.-.}-{2:2} { [ 492.351977][ C0] HARDIRQ-ON-W at: [ 492.352116][ C0] __lock_acquire+0x797/0x1570 [ 492.352308][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.352501][ C0] _raw_spin_lock_bh+0x38/0x50 [ 492.352694][ C0] br_set_mac_address+0xd2/0x260 [bridge] [ 492.352963][ C0] dev_set_mac_address+0x28a/0x410 [ 492.353158][ C0] dev_set_mac_address_user+0x31/0x50 [ 492.353349][ C0] do_setlink+0x17b4/0x21e0 [ 492.353547][ C0] rtnl_setlink+0x1f7/0x310 [ 492.353742][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 492.353934][ C0] netlink_rcv_skb+0x130/0x360 [ 492.354154][ C0] netlink_unicast+0x449/0x710 [ 492.354368][ C0] netlink_sendmsg+0x723/0xbe0 [ 492.354574][ C0] __sys_sendto+0x37d/0x410 [ 492.354811][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 492.355038][ C0] do_syscall_64+0xc6/0x1e0 [ 492.355239][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 492.355498][ C0] IN-SOFTIRQ-W at: [ 492.355631][ C0] __lock_acquire+0x797/0x1570 [ 492.355876][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.356096][ C0] _raw_spin_lock+0x30/0x40 [ 492.356294][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.356595][ C0] call_timer_fn+0x13b/0x230 [ 492.356805][ C0] __run_timers+0x545/0x810 [ 492.357014][ C0] timer_expire_remote+0x9b/0xe0 [ 492.357227][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 492.357438][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 492.357646][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 492.357853][ C0] __do_softirq+0x1f8/0x5df [ 492.358062][ C0] irq_exit_rcu+0x97/0xc0 [ 492.358271][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 492.358524][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 492.358777][ C0] default_idle+0xf/0x20 [ 492.358985][ C0] default_idle_call+0x6d/0xb0 [ 492.359194][ C0] cpuidle_idle_call+0x1f4/0x280 [ 492.359405][ C0] do_idle+0xf9/0x160 [ 492.359574][ C0] cpu_startup_entry+0x54/0x60 [ 492.359785][ C0] rest_init+0x14f/0x260 [ 492.359993][ C0] start_kernel+0x318/0x3d0 [ 492.360301][ C0] x86_64_start_reservations+0x18/0x30 [ 492.360509][ C0] x86_64_start_kernel+0xba/0x110 [ 492.360717][ C0] common_startup_64+0x12c/0x138 [ 492.360927][ C0] INITIAL USE at: [ 492.361148][ C0] __lock_acquire+0x797/0x1570 [ 492.361359][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.361568][ C0] _raw_spin_lock_bh+0x38/0x50 [ 492.361776][ C0] br_set_mac_address+0xd2/0x260 [bridge] [ 492.362152][ C0] dev_set_mac_address+0x28a/0x410 [ 492.362362][ C0] dev_set_mac_address_user+0x31/0x50 [ 492.362570][ C0] do_setlink+0x17b4/0x21e0 [ 492.362973][ C0] rtnl_setlink+0x1f7/0x310 [ 492.363209][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 492.363419][ C0] netlink_rcv_skb+0x130/0x360 [ 492.363725][ C0] netlink_unicast+0x449/0x710 [ 492.363933][ C0] netlink_sendmsg+0x723/0xbe0 [ 492.364140][ C0] __sys_sendto+0x37d/0x410 [ 492.364358][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 492.364702][ C0] do_syscall_64+0xc6/0x1e0 [ 492.364906][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 492.365212][ C0] } [ 492.365404][ C0] ... key at: [] __key.6+0x0/0xfffffffffffe5ac0 [bridge] [ 492.365910][ C0] ... acquired at: [ 492.366080][ C0] mark_lock+0x28d/0x3e0 [ 492.366321][ C0] mark_usage+0xd9/0x2a0 [ 492.366800][ C0] __lock_acquire+0x797/0x1570 [ 492.367087][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.367372][ C0] _raw_spin_lock+0x30/0x40 [ 492.367674][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.368256][ C0] call_timer_fn+0x13b/0x230 [ 492.368518][ C0] __run_timers+0x545/0x810 [ 492.368777][ C0] timer_expire_remote+0x9b/0xe0 [ 492.369036][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 492.369475][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 492.369735][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 492.369996][ C0] __do_softirq+0x1f8/0x5df [ 492.370256][ C0] irq_exit_rcu+0x97/0xc0 [ 492.370519][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 492.371012][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 492.371343][ C0] default_idle+0xf/0x20 [ 492.371611][ C0] default_idle_call+0x6d/0xb0 [ 492.372069][ C0] cpuidle_idle_call+0x1f4/0x280 [ 492.372326][ C0] do_idle+0xf9/0x160 [ 492.372526][ C0] cpu_startup_entry+0x54/0x60 [ 492.372805][ C0] rest_init+0x14f/0x260 [ 492.373063][ C0] start_kernel+0x318/0x3d0 [ 492.373496][ C0] x86_64_start_reservations+0x18/0x30 [ 492.373756][ C0] x86_64_start_kernel+0xba/0x110 [ 492.374013][ C0] common_startup_64+0x12c/0x138 [ 492.374282][ C0] [ 492.374414][ C0] [ 492.374414][ C0] stack backtrace: [ 492.374894][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 492.375273][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 492.376285][ C0] Call Trace: [ 492.376447][ C0] [ 492.376577][ C0] dump_stack_lvl+0x82/0xd0 [ 492.376822][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 492.377086][ C0] ? common_startup_64+0x12c/0x138 [ 492.377348][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 492.377534][ C0] ? __pfx_usage_skip+0x10/0x10 [ 492.377687][ C0] ? __pfx_usage_match+0x10/0x10 [ 492.377857][ C0] ? arch_stack_walk+0x8c/0xf0 [ 492.378112][ C0] mark_lock_irq+0x4cd/0xa10 [ 492.378275][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 492.378444][ C0] ? stack_trace_save+0x94/0xd0 [ 492.378597][ C0] ? add_chain_cache+0x248/0x8b0 [ 492.378902][ C0] ? save_trace+0x8f/0x5b0 [ 492.379088][ C0] mark_lock+0x28d/0x3e0 [ 492.379221][ C0] mark_usage+0xd9/0x2a0 [ 492.379348][ C0] __lock_acquire+0x797/0x1570 [ 492.379501][ C0] ? __lock_acquire+0xaf0/0x1570 [ 492.379761][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 492.380054][ C0] lock_acquire.part.0+0xeb/0x330 [ 492.380207][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.380638][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 492.380790][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 492.380958][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.381191][ C0] ? lock_acquire+0x32/0xc0 [ 492.381448][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.381699][ C0] _raw_spin_lock+0x30/0x40 [ 492.381865][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.382103][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 492.382473][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 492.382762][ C0] call_timer_fn+0x13b/0x230 [ 492.382943][ C0] ? call_timer_fn+0xe8/0x230 [ 492.383254][ C0] ? call_timer_fn+0xe8/0x230 [ 492.383433][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 492.383607][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 492.383786][ C0] __run_timers+0x545/0x810 [ 492.383981][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 492.384444][ C0] ? __pfx___run_timers+0x10/0x10 [ 492.384706][ C0] ? __lock_release+0x103/0x460 [ 492.384964][ C0] ? do_raw_spin_lock+0x131/0x270 [ 492.385381][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 492.385658][ C0] ? lock_acquire+0x32/0xc0 [ 492.385924][ C0] ? timer_expire_remote+0x93/0xe0 [ 492.386187][ C0] timer_expire_remote+0x9b/0xe0 [ 492.386455][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 492.386891][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 492.387227][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 492.387496][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 492.387765][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 492.388210][ C0] __do_softirq+0x1f8/0x5df [ 492.388490][ C0] irq_exit_rcu+0x97/0xc0 [ 492.388688][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 492.388947][ C0] [ 492.389081][ C0] [ 492.389388][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 492.389709][ C0] RIP: 0010:default_idle+0xf/0x20 [ 492.389983][ C0] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 492.391075][ C0] RSP: 0018:ffffffff9b607e00 EFLAGS: 00000242 [ 492.391393][ C0] RAX: 00000000002feaab RBX: 1ffffffff36c0fc2 RCX: ffffffff9a70e9d5 [ 492.391980][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff980aa4a4 [ 492.392367][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 492.392758][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 492.393270][ C0] R13: ffffffff9b61d000 R14: dffffc0000000000 R15: 0000000000014770 [ 492.393572][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 492.393822][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 492.394084][ C0] default_idle_call+0x6d/0xb0 [ 492.394428][ C0] cpuidle_idle_call+0x1f4/0x280 [ 492.394594][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 492.394783][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 492.394963][ C0] do_idle+0xf9/0x160 [ 492.395181][ C0] cpu_startup_entry+0x54/0x60 [ 492.395356][ C0] rest_init+0x14f/0x260 [ 492.395480][ C0] start_kernel+0x318/0x3d0 [ 492.395662][ C0] x86_64_start_reservations+0x18/0x30 [ 492.395828][ C0] x86_64_start_kernel+0xba/0x110 [ 492.396105][ C0] common_startup_64+0x12c/0x138 [ 492.396273][ C0] WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr [ 794.009203][ T1495] veth2: left promiscuous mode WAIT TIMEOUT stderr