[ 23.884385][ T236] ip (236) used greatest stack depth: 24408 bytes left [ 24.468200][ T246] ip (246) used greatest stack depth: 23488 bytes left [ 28.019473][ T284] br0: port 1(veth1) entered blocking state [ 28.019884][ T284] br0: port 1(veth1) entered disabled state [ 28.020231][ T284] veth1: entered allmulticast mode [ 28.023476][ T284] veth1: entered promiscuous mode [ 28.148572][ T286] br0: port 2(veth2) entered blocking state [ 28.148870][ T286] br0: port 2(veth2) entered disabled state [ 28.149128][ T286] veth2: entered allmulticast mode [ 28.150972][ T286] veth2: entered promiscuous mode [ 28.422417][ T24] br0: port 1(veth1) entered blocking state [ 28.422765][ T24] br0: port 1(veth1) entered forwarding state [ 28.541493][ T24] br0: port 2(veth2) entered blocking state [ 28.541774][ T24] br0: port 2(veth2) entered forwarding state [ 37.600641][ T316] veth0: entered promiscuous mode [ 38.253122][ T322] GACT probability NOT on [ 43.822990][ C2] [ 43.823168][ C2] ======================================================== [ 43.823384][ C2] WARNING: possible irq lock inversion dependency detected [ 43.823685][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 43.823836][ C2] -------------------------------------------------------- [ 43.824049][ C2] swapper/2/0 just changed the state of lock: [ 43.824242][ C2] ffff88800556ac38 (&br->lock){+.-.}-{2:2}, at: br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.824593][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 43.824796][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 43.824800][ C2] [ 43.824800][ C2] [ 43.824800][ C2] and interrupts could create inverse lock ordering between them. [ 43.824800][ C2] [ 43.825309][ C2] [ 43.825309][ C2] other info that might help us debug this: [ 43.825511][ C2] Chain exists of: [ 43.825511][ C2] &br->lock --> lweventlist_lock --> &p->alloc_lock [ 43.825511][ C2] [ 43.825828][ C2] Possible interrupt unsafe locking scenario: [ 43.825828][ C2] [ 43.826032][ C2] CPU0 CPU1 [ 43.826170][ C2] ---- ---- [ 43.826313][ C2] lock(&p->alloc_lock); [ 43.826424][ C2] local_irq_disable(); [ 43.826598][ C2] lock(&br->lock); [ 43.826772][ C2] lock(lweventlist_lock); [ 43.826950][ C2] [ 43.827055][ C2] lock(&br->lock); [ 43.827161][ C2] [ 43.827161][ C2] *** DEADLOCK *** [ 43.827161][ C2] [ 43.827367][ C2] 1 lock held by swapper/2/0: [ 43.827504][ C2] #0: ffffc90000230b68 ((&p->forward_delay_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 43.827790][ C2] [ 43.827790][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 43.828030][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 43.828179][ C2] HARDIRQ-ON-W at: [ 43.828294][ C2] __lock_acquire+0x797/0x1570 [ 43.828477][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.828650][ C2] _raw_spin_lock+0x30/0x40 [ 43.828827][ C2] set_mems_allowed+0x1d/0x210 [ 43.829004][ C2] kernel_init_freeable+0x72/0x310 [ 43.829179][ C2] kernel_init+0x20/0x200 [ 43.829356][ C2] ret_from_fork+0x31/0x70 [ 43.829536][ C2] ret_from_fork_asm+0x1a/0x30 [ 43.829708][ C2] SOFTIRQ-ON-W at: [ 43.829812][ C2] __lock_acquire+0x797/0x1570 [ 43.829989][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.830162][ C2] _raw_spin_lock+0x30/0x40 [ 43.830334][ C2] set_mems_allowed+0x1d/0x210 [ 43.830508][ C2] kernel_init_freeable+0x72/0x310 [ 43.830682][ C2] kernel_init+0x20/0x200 [ 43.830856][ C2] ret_from_fork+0x31/0x70 [ 43.831027][ C2] ret_from_fork_asm+0x1a/0x30 [ 43.831200][ C2] INITIAL USE at: [ 43.831304][ C2] __lock_acquire+0x797/0x1570 [ 43.831477][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.831653][ C2] _raw_spin_lock+0x30/0x40 [ 43.831844][ C2] set_mems_allowed+0x1d/0x210 [ 43.832017][ C2] kernel_init_freeable+0x72/0x310 [ 43.832187][ C2] kernel_init+0x20/0x200 [ 43.832361][ C2] ret_from_fork+0x31/0x70 [ 43.832534][ C2] ret_from_fork_asm+0x1a/0x30 [ 43.832711][ C2] } [ 43.832783][ C2] ... key at: [] __key.387+0x0/0x40 [ 43.833000][ C2] ... acquired at: [ 43.833105][ C2] __lock_acquire+0xaf0/0x1570 [ 43.833249][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.833388][ C2] _raw_spin_lock+0x30/0x40 [ 43.833532][ C2] __get_task_comm+0x27/0x70 [ 43.833672][ C2] ref_tracker_alloc+0x2ee/0x490 [ 43.833817][ C2] linkwatch_fire_event+0x196/0x200 [ 43.833957][ C2] veth_newlink+0x367/0x830 [veth] [ 43.834106][ C2] rtnl_newlink_create+0x341/0x850 [ 43.834249][ C2] __rtnl_newlink+0xac9/0xd80 [ 43.834386][ C2] rtnl_newlink+0x63/0xa0 [ 43.834527][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 43.834663][ C2] netlink_rcv_skb+0x130/0x360 [ 43.834804][ C2] netlink_unicast+0x449/0x710 [ 43.834952][ C2] netlink_sendmsg+0x723/0xbe0 [ 43.835089][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 43.835233][ C2] ___sys_sendmsg+0xee/0x170 [ 43.835377][ C2] __sys_sendmsg+0xcd/0x170 [ 43.835516][ C2] do_syscall_64+0xc6/0x1e0 [ 43.835656][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 43.835829][ C2] [ 43.835899][ C2] -> (lweventlist_lock){....}-{2:2} { [ 43.836043][ C2] INITIAL USE at: [ 43.836152][ C2] __lock_acquire+0x797/0x1570 [ 43.836327][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.836502][ C2] _raw_spin_lock_irqsave+0x3f/0x60 [ 43.836677][ C2] linkwatch_sync_dev+0x29/0x1f0 [ 43.836851][ C2] rtnl_getlink+0x4c9/0x970 [ 43.837023][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 43.837205][ C2] netlink_rcv_skb+0x130/0x360 [ 43.837391][ C2] netlink_unicast+0x449/0x710 [ 43.837565][ C2] netlink_sendmsg+0x723/0xbe0 [ 43.837749][ C2] __sys_sendto+0x37d/0x410 [ 43.837924][ C2] __x64_sys_sendto+0xe0/0x1c0 [ 43.838105][ C2] do_syscall_64+0xc6/0x1e0 [ 43.838285][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 43.838502][ C2] } [ 43.838571][ C2] ... key at: [] lweventlist_lock+0x18/0x60 [ 43.838776][ C2] ... acquired at: [ 43.838878][ C2] __lock_acquire+0xaf0/0x1570 [ 43.839020][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.839160][ C2] _raw_spin_lock_irqsave+0x3f/0x60 [ 43.839311][ C2] linkwatch_fire_event+0x74/0x200 [ 43.839449][ C2] br_stp_change_bridge_id+0x25f/0x360 [bridge] [ 43.839672][ C2] br_set_mac_address+0x1f3/0x260 [bridge] [ 43.839880][ C2] dev_set_mac_address+0x28a/0x410 [ 43.840019][ C2] dev_set_mac_address_user+0x31/0x50 [ 43.840158][ C2] do_setlink+0x17b4/0x21e0 [ 43.840300][ C2] rtnl_setlink+0x1f7/0x310 [ 43.840450][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 43.840599][ C2] netlink_rcv_skb+0x130/0x360 [ 43.840739][ C2] netlink_unicast+0x449/0x710 [ 43.840879][ C2] netlink_sendmsg+0x723/0xbe0 [ 43.841017][ C2] __sys_sendto+0x37d/0x410 [ 43.841156][ C2] __x64_sys_sendto+0xe0/0x1c0 [ 43.841294][ C2] do_syscall_64+0xc6/0x1e0 [ 43.841434][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 43.841605][ C2] [ 43.841679][ C2] -> (&br->lock){+.-.}-{2:2} { [ 43.841834][ C2] HARDIRQ-ON-W at: [ 43.841937][ C2] __lock_acquire+0x797/0x1570 [ 43.842113][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.842285][ C2] _raw_spin_lock_bh+0x38/0x50 [ 43.842459][ C2] br_set_ageing_time+0x2d/0xf0 [bridge] [ 43.842704][ C2] br_changelink+0x231/0x1360 [bridge] [ 43.842920][ C2] br_dev_newlink+0xa5/0x100 [bridge] [ 43.843129][ C2] rtnl_newlink_create+0x341/0x850 [ 43.843302][ C2] __rtnl_newlink+0xac9/0xd80 [ 43.843477][ C2] rtnl_newlink+0x63/0xa0 [ 43.843649][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 43.843822][ C2] netlink_rcv_skb+0x130/0x360 [ 43.844004][ C2] netlink_unicast+0x449/0x710 [ 43.844186][ C2] netlink_sendmsg+0x723/0xbe0 [ 43.844360][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 43.844554][ C2] ___sys_sendmsg+0xee/0x170 [ 43.844734][ C2] __sys_sendmsg+0xcd/0x170 [ 43.844911][ C2] do_syscall_64+0xc6/0x1e0 [ 43.845092][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 43.845312][ C2] IN-SOFTIRQ-W at: [ 43.845417][ C2] __lock_acquire+0x797/0x1570 [ 43.845592][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.845769][ C2] _raw_spin_lock+0x30/0x40 [ 43.845947][ C2] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.846202][ C2] call_timer_fn+0x13b/0x230 [ 43.846378][ C2] __run_timers+0x545/0x810 [ 43.846567][ C2] timer_expire_remote+0x9b/0xe0 [ 43.846741][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 43.846916][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 43.847091][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 43.847265][ C2] __do_softirq+0x1f8/0x5df [ 43.847445][ C2] irq_exit_rcu+0x97/0xc0 [ 43.847632][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 43.847838][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 43.848047][ C2] default_idle+0xf/0x20 [ 43.848268][ C2] default_idle_call+0x6d/0xb0 [ 43.848441][ C2] cpuidle_idle_call+0x1f4/0x280 [ 43.848614][ C2] do_idle+0xf9/0x160 [ 43.848762][ C2] cpu_startup_entry+0x54/0x60 [ 43.848942][ C2] start_secondary+0x21c/0x2b0 [ 43.849119][ C2] common_startup_64+0x12c/0x138 [ 43.849292][ C2] INITIAL USE at: [ 43.849395][ C2] __lock_acquire+0x797/0x1570 [ 43.849570][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.849743][ C2] _raw_spin_lock_bh+0x38/0x50 [ 43.849920][ C2] br_set_ageing_time+0x2d/0xf0 [bridge] [ 43.850167][ C2] br_changelink+0x231/0x1360 [bridge] [ 43.850376][ C2] br_dev_newlink+0xa5/0x100 [bridge] [ 43.850593][ C2] rtnl_newlink_create+0x341/0x850 [ 43.850770][ C2] __rtnl_newlink+0xac9/0xd80 [ 43.850964][ C2] rtnl_newlink+0x63/0xa0 [ 43.851145][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 43.851315][ C2] netlink_rcv_skb+0x130/0x360 [ 43.851492][ C2] netlink_unicast+0x449/0x710 [ 43.851666][ C2] netlink_sendmsg+0x723/0xbe0 [ 43.851865][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 43.852050][ C2] ___sys_sendmsg+0xee/0x170 [ 43.852227][ C2] __sys_sendmsg+0xcd/0x170 [ 43.852400][ C2] do_syscall_64+0xc6/0x1e0 [ 43.852575][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 43.852874][ C2] } [ 43.852945][ C2] ... key at: [] __key.6+0x0/0xfffffffffffe5ac0 [bridge] [ 43.853226][ C2] ... acquired at: [ 43.853329][ C2] mark_lock+0x28d/0x3e0 [ 43.853554][ C2] mark_usage+0xd9/0x2a0 [ 43.853696][ C2] __lock_acquire+0x797/0x1570 [ 43.853835][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.853973][ C2] _raw_spin_lock+0x30/0x40 [ 43.854198][ C2] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.854408][ C2] call_timer_fn+0x13b/0x230 [ 43.854551][ C2] __run_timers+0x545/0x810 [ 43.854690][ C2] timer_expire_remote+0x9b/0xe0 [ 43.854987][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 43.855128][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 43.855265][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 43.855407][ C2] __do_softirq+0x1f8/0x5df [ 43.855622][ C2] irq_exit_rcu+0x97/0xc0 [ 43.855761][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 43.855936][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 43.856107][ C2] default_idle+0xf/0x20 [ 43.856330][ C2] default_idle_call+0x6d/0xb0 [ 43.856465][ C2] cpuidle_idle_call+0x1f4/0x280 [ 43.856604][ C2] do_idle+0xf9/0x160 [ 43.856709][ C2] cpu_startup_entry+0x54/0x60 [ 43.856926][ C2] start_secondary+0x21c/0x2b0 [ 43.857062][ C2] common_startup_64+0x12c/0x138 [ 43.857201][ C2] [ 43.857270][ C2] [ 43.857270][ C2] stack backtrace: [ 43.857438][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 43.857728][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 43.858029][ C2] Call Trace: [ 43.858132][ C2] [ 43.858287][ C2] dump_stack_lvl+0x82/0xd0 [ 43.858431][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 43.858601][ C2] ? common_startup_64+0x12c/0x138 [ 43.858739][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 43.858992][ C2] ? __pfx_usage_skip+0x10/0x10 [ 43.859129][ C2] ? __pfx_usage_match+0x10/0x10 [ 43.859265][ C2] ? arch_stack_walk+0x8c/0xf0 [ 43.859403][ C2] mark_lock_irq+0x4cd/0xa10 [ 43.859621][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 43.859757][ C2] ? stack_trace_save+0x94/0xd0 [ 43.859895][ C2] ? add_chain_cache+0x248/0x8b0 [ 43.860033][ C2] ? save_trace+0x8f/0x5b0 [ 43.860255][ C2] mark_lock+0x28d/0x3e0 [ 43.860360][ C2] mark_usage+0xd9/0x2a0 [ 43.860463][ C2] __lock_acquire+0x797/0x1570 [ 43.860600][ C2] ? __lock_acquire+0xaf0/0x1570 [ 43.860738][ C2] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 43.861057][ C2] lock_acquire.part.0+0xeb/0x330 [ 43.861196][ C2] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.861405][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 43.861553][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 43.861788][ C2] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.861995][ C2] ? lock_acquire+0x32/0xc0 [ 43.862130][ C2] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.862416][ C2] _raw_spin_lock+0x30/0x40 [ 43.862553][ C2] ? br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.862757][ C2] br_forward_delay_timer_expired+0x48/0x440 [bridge] [ 43.862973][ C2] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 43.863303][ C2] call_timer_fn+0x13b/0x230 [ 43.863441][ C2] ? call_timer_fn+0xe8/0x230 [ 43.863578][ C2] ? call_timer_fn+0xe8/0x230 [ 43.863714][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 43.863930][ C2] ? mark_lock+0x38/0x3e0 [ 43.864037][ C2] __run_timers+0x545/0x810 [ 43.864187][ C2] ? __pfx_br_forward_delay_timer_expired+0x10/0x10 [bridge] [ 43.864427][ C2] ? __pfx___run_timers+0x10/0x10 [ 43.864645][ C2] ? __lock_release+0x103/0x460 [ 43.864781][ C2] ? do_raw_spin_lock+0x131/0x270 [ 43.864922][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 43.865059][ C2] ? lock_acquire+0x32/0xc0 [ 43.865276][ C2] ? timer_expire_remote+0x93/0xe0 [ 43.865413][ C2] timer_expire_remote+0x9b/0xe0 [ 43.865554][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 43.865692][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 43.866026][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 43.866167][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 43.866304][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 43.866452][ C2] __do_softirq+0x1f8/0x5df [ 43.866670][ C2] irq_exit_rcu+0x97/0xc0 [ 43.866779][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 43.866924][ C2] [ 43.866997][ C2] [ 43.867066][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 43.867237][ C2] RIP: 0010:default_idle+0xf/0x20 [ 43.867470][ C2] 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 [ 43.868045][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 43.868230][ C2] RAX: 00000000000e7f03 RBX: 1ffff9200002bfc1 RCX: ffffffff8930e9d5 [ 43.868442][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff86caa4a4 [ 43.868728][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f2709c [ 43.868937][ C2] R10: ffff88802f9384e3 R11: ffff88802f92d9b0 R12: 0000000000000000 [ 43.869140][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 43.869432][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 43.869569][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 43.869705][ C2] default_idle_call+0x6d/0xb0 [ 43.869841][ C2] cpuidle_idle_call+0x1f4/0x280 [ 43.870067][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 43.870207][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 43.870346][ C2] do_idle+0xf9/0x160 [ 43.870461][ C2] cpu_startup_entry+0x54/0x60 [ 43.870597][ C2] start_secondary+0x21c/0x2b0 [ 43.870815][ C2] ? __pfx_start_secondary+0x10/0x10 [ 43.870955][ C2] common_startup_64+0x12c/0x138 [ 43.871095][ C2] [ 64.824343][ T350] veth0: left promiscuous mode [ 65.129341][ T354] veth3: entered promiscuous mode [ 66.996328][ T363] veth3: left promiscuous mode [ 67.215635][ T365] veth3: entered promiscuous mode [ 69.093749][ T374] veth3: left promiscuous mode [ 69.300756][ T377] veth3: entered promiscuous mode [ 71.195837][ T386] veth3: left promiscuous mode [ 71.385083][ T388] veth3: entered promiscuous mode [ 73.219877][ T397] veth3: left promiscuous mode [ 73.323816][ T399] br0: port 2(veth2) entered disabled state [ 73.421454][ T400] br0: port 1(veth1) entered disabled state [ 73.534706][ T401] veth2: left allmulticast mode [ 73.534979][ T401] veth2: left promiscuous mode [ 73.535363][ T401] br0: port 2(veth2) entered disabled state [ 73.536856][ T401] veth1: left allmulticast mode [ 73.537077][ T401] veth1: left promiscuous mode [ 73.537459][ T401] br0: port 1(veth1) entered disabled state