[ 30.239068][ T287] br0: port 1(veth1) entered blocking state [ 30.239486][ T287] br0: port 1(veth1) entered disabled state [ 30.239819][ T287] veth1: entered allmulticast mode [ 30.241826][ T287] veth1: entered promiscuous mode [ 30.249221][ T287] ip (287) used greatest stack depth: 24080 bytes left [ 30.379897][ T289] br0: port 2(veth2) entered blocking state [ 30.380187][ T289] br0: port 2(veth2) entered disabled state [ 30.380791][ T289] veth2: entered allmulticast mode [ 30.382761][ T289] veth2: entered promiscuous mode [ 30.624366][ T7] br0: port 1(veth1) entered blocking state [ 30.624783][ T7] br0: port 1(veth1) entered forwarding state [ 30.745855][ T49] br0: port 2(veth2) entered blocking state [ 30.746160][ T49] br0: port 2(veth2) entered forwarding state [ 39.903199][ T319] veth0: entered promiscuous mode [ 40.527940][ T325] GACT probability NOT on [ 45.867185][ C0] [ 45.867366][ C0] ======================================================== [ 45.867602][ C0] WARNING: possible irq lock inversion dependency detected [ 45.867821][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 45.867968][ C0] -------------------------------------------------------- [ 45.868186][ C0] swapper/0/0 just changed the state of lock: [ 45.868378][ C0] ffff8880068c2c38 (&br->lock){+.-.}-{2:2}, at: br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.868753][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 45.869002][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 45.869007][ C0] [ 45.869007][ C0] [ 45.869007][ C0] and interrupts could create inverse lock ordering between them. [ 45.869007][ C0] [ 45.869557][ C0] [ 45.869557][ C0] other info that might help us debug this: [ 45.869779][ C0] Chain exists of: [ 45.869779][ C0] &br->lock --> lweventlist_lock --> &p->alloc_lock [ 45.869779][ C0] [ 45.870127][ C0] Possible interrupt unsafe locking scenario: [ 45.870127][ C0] [ 45.870353][ C0] CPU0 CPU1 [ 45.870544][ C0] ---- ---- [ 45.870692][ C0] lock(&p->alloc_lock); [ 45.870807][ C0] local_irq_disable(); [ 45.870994][ C0] lock(&br->lock); [ 45.871189][ C0] lock(lweventlist_lock); [ 45.871375][ C0] [ 45.871489][ C0] lock(&br->lock); [ 45.871607][ C0] [ 45.871607][ C0] *** DEADLOCK *** [ 45.871607][ C0] [ 45.871825][ C0] 1 lock held by swapper/0/0: [ 45.871976][ C0] #0: ffffc90000007d68 ((&p->forward_delay_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 45.872286][ C0] [ 45.872286][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 45.872547][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 45.872701][ C0] HARDIRQ-ON-W at: [ 45.872813][ C0] __lock_acquire+0x797/0x1570 [ 45.873005][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.873189][ C0] _raw_spin_lock+0x30/0x40 [ 45.873379][ C0] set_mems_allowed+0x1d/0x210 [ 45.873577][ C0] kernel_init_freeable+0x72/0x310 [ 45.873765][ C0] kernel_init+0x20/0x200 [ 45.873952][ C0] ret_from_fork+0x31/0x70 [ 45.874147][ C0] ret_from_fork_asm+0x1a/0x30 [ 45.874337][ C0] SOFTIRQ-ON-W at: [ 45.874450][ C0] __lock_acquire+0x797/0x1570 [ 45.874666][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.874856][ C0] _raw_spin_lock+0x30/0x40 [ 45.875044][ C0] set_mems_allowed+0x1d/0x210 [ 45.875229][ C0] kernel_init_freeable+0x72/0x310 [ 45.875421][ C0] kernel_init+0x20/0x200 [ 45.875618][ C0] ret_from_fork+0x31/0x70 [ 45.875817][ C0] ret_from_fork_asm+0x1a/0x30 [ 45.876014][ C0] INITIAL USE at: [ 45.876128][ C0] __lock_acquire+0x797/0x1570 [ 45.876323][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.876515][ C0] _raw_spin_lock+0x30/0x40 [ 45.876702][ C0] set_mems_allowed+0x1d/0x210 [ 45.876899][ C0] kernel_init_freeable+0x72/0x310 [ 45.877090][ C0] kernel_init+0x20/0x200 [ 45.877277][ C0] ret_from_fork+0x31/0x70 [ 45.877470][ C0] ret_from_fork_asm+0x1a/0x30 [ 45.877658][ C0] } [ 45.877738][ C0] ... key at: [] __key.387+0x0/0x40 [ 45.877968][ C0] ... acquired at: [ 45.878083][ C0] __lock_acquire+0xaf0/0x1570 [ 45.878239][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.878391][ C0] _raw_spin_lock+0x30/0x40 [ 45.878547][ C0] __get_task_comm+0x27/0x70 [ 45.878701][ C0] ref_tracker_alloc+0x2ee/0x490 [ 45.878854][ C0] linkwatch_fire_event+0x196/0x200 [ 45.879008][ C0] veth_newlink+0x367/0x830 [veth] [ 45.879168][ C0] rtnl_newlink_create+0x341/0x850 [ 45.879321][ C0] __rtnl_newlink+0xac9/0xd80 [ 45.879486][ C0] rtnl_newlink+0x63/0xa0 [ 45.879636][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 45.879787][ C0] netlink_rcv_skb+0x130/0x360 [ 45.879939][ C0] netlink_unicast+0x449/0x710 [ 45.880090][ C0] netlink_sendmsg+0x723/0xbe0 [ 45.880242][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 45.880399][ C0] ___sys_sendmsg+0xee/0x170 [ 45.880572][ C0] __sys_sendmsg+0xcd/0x170 [ 45.880726][ C0] do_syscall_64+0xc6/0x1e0 [ 45.880885][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 45.881073][ C0] [ 45.881150][ C0] -> (lweventlist_lock){....}-{2:2} { [ 45.881304][ C0] INITIAL USE at: [ 45.881421][ C0] __lock_acquire+0x797/0x1570 [ 45.881615][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.881811][ C0] _raw_spin_lock_irqsave+0x3f/0x60 [ 45.882000][ C0] linkwatch_sync_dev+0x29/0x1f0 [ 45.882192][ C0] rtnl_getlink+0x4c9/0x970 [ 45.882377][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 45.882564][ C0] netlink_rcv_skb+0x130/0x360 [ 45.882755][ C0] netlink_unicast+0x449/0x710 [ 45.882944][ C0] netlink_sendmsg+0x723/0xbe0 [ 45.883131][ C0] __sys_sendto+0x37d/0x410 [ 45.883318][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 45.883510][ C0] do_syscall_64+0xc6/0x1e0 [ 45.883708][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 45.883931][ C0] } [ 45.884009][ C0] ... key at: [] lweventlist_lock+0x18/0x60 [ 45.884242][ C0] ... acquired at: [ 45.884354][ C0] __lock_acquire+0xaf0/0x1570 [ 45.884503][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.884654][ C0] _raw_spin_lock_irqsave+0x3f/0x60 [ 45.884802][ C0] linkwatch_fire_event+0x74/0x200 [ 45.884955][ C0] br_stp_change_bridge_id+0x25f/0x360 [bridge] [ 45.885179][ C0] br_set_mac_address+0x1f3/0x260 [bridge] [ 45.885409][ C0] dev_set_mac_address+0x28a/0x410 [ 45.885560][ C0] dev_set_mac_address_user+0x31/0x50 [ 45.885707][ C0] do_setlink+0x17b4/0x21e0 [ 45.885856][ C0] rtnl_setlink+0x1f7/0x310 [ 45.886005][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 45.886153][ C0] netlink_rcv_skb+0x130/0x360 [ 45.886300][ C0] netlink_unicast+0x449/0x710 [ 45.886468][ C0] netlink_sendmsg+0x723/0xbe0 [ 45.886624][ C0] __sys_sendto+0x37d/0x410 [ 45.886776][ C0] __x64_sys_sendto+0xe0/0x1c0 [ 45.886927][ C0] do_syscall_64+0xc6/0x1e0 [ 45.887073][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 45.887257][ C0] [ 45.887335][ C0] -> (&br->lock){+.-.}-{2:2} { [ 45.887494][ C0] HARDIRQ-ON-W at: [ 45.887605][ C0] __lock_acquire+0x797/0x1570 [ 45.887795][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.887989][ C0] _raw_spin_lock_bh+0x38/0x50 [ 45.888175][ C0] br_set_ageing_time+0x2d/0xf0 [bridge] [ 45.888439][ C0] br_changelink+0x231/0x1360 [bridge] [ 45.888664][ C0] br_dev_newlink+0xa5/0x100 [bridge] [ 45.888886][ C0] rtnl_newlink_create+0x341/0x850 [ 45.889069][ C0] __rtnl_newlink+0xac9/0xd80 [ 45.889264][ C0] rtnl_newlink+0x63/0xa0 [ 45.889455][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 45.889639][ C0] netlink_rcv_skb+0x130/0x360 [ 45.889825][ C0] netlink_unicast+0x449/0x710 [ 45.890010][ C0] netlink_sendmsg+0x723/0xbe0 [ 45.890195][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 45.890384][ C0] ___sys_sendmsg+0xee/0x170 [ 45.890587][ C0] __sys_sendmsg+0xcd/0x170 [ 45.890793][ C0] do_syscall_64+0xc6/0x1e0 [ 45.890976][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 45.891197][ C0] IN-SOFTIRQ-W at: [ 45.891310][ C0] __lock_acquire+0x797/0x1570 [ 45.891500][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.891693][ C0] _raw_spin_lock+0x30/0x40 [ 45.891880][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.892142][ C0] call_timer_fn+0x13b/0x230 [ 45.892339][ C0] __run_timers+0x545/0x810 [ 45.892526][ C0] run_timer_softirq+0xe8/0x1b0 [ 45.892717][ C0] __do_softirq+0x1f8/0x5df [ 45.892906][ C0] irq_exit_rcu+0x97/0xc0 [ 45.893099][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 45.893323][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 45.893542][ C0] default_idle+0xf/0x20 [ 45.893728][ C0] default_idle_call+0x6d/0xb0 [ 45.893922][ C0] cpuidle_idle_call+0x1f4/0x280 [ 45.894111][ C0] do_idle+0xf9/0x160 [ 45.894283][ C0] cpu_startup_entry+0x54/0x60 [ 45.894484][ C0] rest_init+0x14f/0x260 [ 45.894677][ C0] start_kernel+0x318/0x3d0 [ 45.894875][ C0] x86_64_start_reservations+0x18/0x30 [ 45.895058][ C0] x86_64_start_kernel+0xba/0x110 [ 45.895249][ C0] common_startup_64+0x12c/0x138 [ 45.895485][ C0] INITIAL USE at: [ 45.895654][ C0] __lock_acquire+0x797/0x1570 [ 45.895850][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.896043][ C0] _raw_spin_lock_bh+0x38/0x50 [ 45.896233][ C0] br_set_ageing_time+0x2d/0xf0 [bridge] [ 45.896500][ C0] br_changelink+0x231/0x1360 [bridge] [ 45.896733][ C0] br_dev_newlink+0xa5/0x100 [bridge] [ 45.896954][ C0] rtnl_newlink_create+0x341/0x850 [ 45.897155][ C0] __rtnl_newlink+0xac9/0xd80 [ 45.897342][ C0] rtnl_newlink+0x63/0xa0 [ 45.897531][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 45.897724][ C0] netlink_rcv_skb+0x130/0x360 [ 45.897918][ C0] netlink_unicast+0x449/0x710 [ 45.898115][ C0] netlink_sendmsg+0x723/0xbe0 [ 45.898300][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 45.898485][ C0] ___sys_sendmsg+0xee/0x170 [ 45.898674][ C0] __sys_sendmsg+0xcd/0x170 [ 45.898860][ C0] do_syscall_64+0xc6/0x1e0 [ 45.899062][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 45.899321][ C0] } [ 45.899495][ C0] ... key at: [] __key.6+0x0/0xfffffffffffe5ac0 [bridge] [ 45.899793][ C0] ... acquired at: [ 45.899902][ C0] mark_lock+0x28d/0x3e0 [ 45.900078][ C0] mark_usage+0xd9/0x2a0 [ 45.900343][ C0] __lock_acquire+0x797/0x1570 [ 45.900502][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.900648][ C0] _raw_spin_lock+0x30/0x40 [ 45.900818][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.901178][ C0] call_timer_fn+0x13b/0x230 [ 45.901355][ C0] __run_timers+0x545/0x810 [ 45.901507][ C0] run_timer_softirq+0xe8/0x1b0 [ 45.901667][ C0] __do_softirq+0x1f8/0x5df [ 45.901816][ C0] irq_exit_rcu+0x97/0xc0 [ 45.901978][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 45.902162][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 45.902378][ C0] default_idle+0xf/0x20 [ 45.902540][ C0] default_idle_call+0x6d/0xb0 [ 45.902704][ C0] cpuidle_idle_call+0x1f4/0x280 [ 45.902886][ C0] do_idle+0xf9/0x160 [ 45.902999][ C0] cpu_startup_entry+0x54/0x60 [ 45.903157][ C0] rest_init+0x14f/0x260 [ 45.903398][ C0] start_kernel+0x318/0x3d0 [ 45.903557][ C0] x86_64_start_reservations+0x18/0x30 [ 45.903710][ C0] x86_64_start_kernel+0xba/0x110 [ 45.903865][ C0] common_startup_64+0x12c/0x138 [ 45.904114][ C0] [ 45.904195][ C0] [ 45.904195][ C0] stack backtrace: [ 45.904380][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 45.904612][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 45.904944][ C0] Call Trace: [ 45.905072][ C0] [ 45.905158][ C0] dump_stack_lvl+0x82/0xd0 [ 45.905311][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 45.905596][ C0] ? common_startup_64+0x12c/0x138 [ 45.905748][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 45.905979][ C0] ? __pfx_usage_skip+0x10/0x10 [ 45.906247][ C0] ? __pfx_usage_match+0x10/0x10 [ 45.906426][ C0] ? arch_stack_walk+0x8c/0xf0 [ 45.906629][ C0] mark_lock_irq+0x4cd/0xa10 [ 45.906782][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 45.906934][ C0] ? stack_trace_save+0x94/0xd0 [ 45.907205][ C0] ? add_chain_cache+0x248/0x8b0 [ 45.907353][ C0] ? save_trace+0x8f/0x5b0 [ 45.907523][ C0] mark_lock+0x28d/0x3e0 [ 45.907661][ C0] mark_usage+0xd9/0x2a0 [ 45.907773][ C0] __lock_acquire+0x797/0x1570 [ 45.907925][ C0] ? __lock_acquire+0xaf0/0x1570 [ 45.908092][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 45.908398][ C0] lock_acquire.part.0+0xeb/0x330 [ 45.908559][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.908786][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 45.908941][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 45.909091][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.909404][ C0] ? lock_acquire+0x32/0xc0 [ 45.909553][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.909808][ C0] _raw_spin_lock+0x30/0x40 [ 45.909965][ C0] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.910302][ C0] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 45.910543][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 45.910826][ C0] call_timer_fn+0x13b/0x230 [ 45.911085][ C0] ? call_timer_fn+0xe8/0x230 [ 45.911278][ C0] ? call_timer_fn+0xe8/0x230 [ 45.911427][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 45.911596][ C0] ? mark_lock+0x38/0x3e0 [ 45.911716][ C0] __run_timers+0x545/0x810 [ 45.911890][ C0] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 45.912172][ C0] ? __pfx___run_timers+0x10/0x10 [ 45.912329][ C0] ? do_raw_spin_lock+0x131/0x270 [ 45.912481][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 45.912640][ C0] ? lock_acquire+0x32/0xc0 [ 45.912790][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 45.912942][ C0] run_timer_softirq+0xe8/0x1b0 [ 45.913116][ C0] __do_softirq+0x1f8/0x5df [ 45.913409][ C0] irq_exit_rcu+0x97/0xc0 [ 45.913522][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 45.913690][ C0] [ 45.913766][ C0] [ 45.913841][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 45.914125][ C0] RIP: 0010:default_idle+0xf/0x20 [ 45.914282][ 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 [ 45.914809][ C0] RSP: 0018:ffffffffad407e00 EFLAGS: 00000246 [ 45.914998][ C0] RAX: 00000000000a1c2b RBX: 1ffffffff5a80fc2 RCX: ffffffffac50e9d5 [ 45.915219][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa9eaa4a4 [ 45.915452][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f0709c [ 45.915684][ C0] R10: ffff88802f8384e3 R11: ffff88802f82d9b0 R12: 0000000000000000 [ 45.915904][ C0] R13: ffffffffad41d000 R14: dffffc0000000000 R15: 0000000000014770 [ 45.916228][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 45.916378][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 45.916531][ C0] default_idle_call+0x6d/0xb0 [ 45.916680][ C0] cpuidle_idle_call+0x1f4/0x280 [ 45.916827][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 45.916978][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 45.917127][ C0] do_idle+0xf9/0x160 [ 45.917238][ C0] cpu_startup_entry+0x54/0x60 [ 45.917479][ C0] rest_init+0x14f/0x260 [ 45.917591][ C0] start_kernel+0x318/0x3d0 [ 45.917747][ C0] x86_64_start_reservations+0x18/0x30 [ 45.917919][ C0] x86_64_start_kernel+0xba/0x110 [ 45.918068][ C0] common_startup_64+0x12c/0x138 [ 45.918309][ C0] [ 67.120168][ T353] veth0: left promiscuous mode [ 67.416984][ T357] veth3: entered promiscuous mode [ 69.302215][ T366] veth3: left promiscuous mode [ 69.494048][ T368] veth3: entered promiscuous mode [ 71.315084][ T377] veth3: left promiscuous mode [ 71.532352][ T380] veth3: entered promiscuous mode [ 73.390245][ T389] veth3: left promiscuous mode [ 73.589275][ T391] veth3: entered promiscuous mode [ 75.550207][ T400] veth3: left promiscuous mode [ 99.430982][ T430] br0: port 2(veth2) entered disabled state [ 99.559382][ T431] br0: port 1(veth1) entered disabled state [ 99.686493][ T432] veth2: left allmulticast mode [ 99.686710][ T432] veth2: left promiscuous mode [ 99.687019][ T432] br0: port 2(veth2) entered disabled state [ 99.688362][ T432] veth1: left allmulticast mode [ 99.688546][ T432] veth1: left promiscuous mode [ 99.688833][ T432] br0: port 1(veth1) entered disabled state