[ 24.465033][ T236] ip (236) used greatest stack depth: 23200 bytes left [ 27.062506][ T274] 8021q: 802.1Q VLAN Support v1.8 [ 31.018885][ T309] br1: port 1(veth1) entered blocking state [ 31.019335][ T309] br1: port 1(veth1) entered disabled state [ 31.019675][ T309] veth1: entered allmulticast mode [ 31.029439][ T309] veth1: entered promiscuous mode [ 31.162982][ T51] br1: port 1(veth1) entered blocking state [ 31.163536][ T51] br1: port 1(veth1) entered forwarding state [ 36.329266][ C2] [ 36.329513][ C2] ======================================================== [ 36.329727][ C2] WARNING: possible irq lock inversion dependency detected [ 36.329941][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 36.330112][ C2] -------------------------------------------------------- [ 36.330309][ C2] swapper/2/0 just changed the state of lock: [ 36.330483][ C2] ffff88800285ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.330724][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.330924][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 36.330929][ C2] [ 36.330929][ C2] [ 36.330929][ C2] and interrupts could create inverse lock ordering between them. [ 36.330929][ C2] [ 36.331409][ C2] [ 36.331409][ C2] other info that might help us debug this: [ 36.331598][ C2] Possible interrupt unsafe locking scenario: [ 36.331598][ C2] [ 36.331788][ C2] CPU0 CPU1 [ 36.331935][ C2] ---- ---- [ 36.332070][ C2] lock(&p->alloc_lock); [ 36.332170][ C2] local_irq_disable(); [ 36.332332][ C2] lock(&ndev->lock); [ 36.332496][ C2] lock(&p->alloc_lock); [ 36.332656][ C2] [ 36.332755][ C2] lock(&ndev->lock); [ 36.332859][ C2] [ 36.332859][ C2] *** DEADLOCK *** [ 36.332859][ C2] [ 36.333057][ C2] 1 lock held by swapper/2/0: [ 36.333199][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.333452][ C2] [ 36.333452][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 36.333682][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.333834][ C2] HARDIRQ-ON-W at: [ 36.333979][ C2] __lock_acquire+0x797/0x1570 [ 36.334174][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.334338][ C2] _raw_spin_lock+0x30/0x40 [ 36.334504][ C2] set_mems_allowed+0x1d/0x210 [ 36.334673][ C2] kernel_init_freeable+0x72/0x310 [ 36.334839][ C2] kernel_init+0x20/0x200 [ 36.335014][ C2] ret_from_fork+0x31/0x70 [ 36.335184][ C2] ret_from_fork_asm+0x1a/0x30 [ 36.335347][ C2] SOFTIRQ-ON-W at: [ 36.335445][ C2] __lock_acquire+0x797/0x1570 [ 36.335608][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.335773][ C2] _raw_spin_lock+0x30/0x40 [ 36.335947][ C2] set_mems_allowed+0x1d/0x210 [ 36.336109][ C2] kernel_init_freeable+0x72/0x310 [ 36.336273][ C2] kernel_init+0x20/0x200 [ 36.336449][ C2] ret_from_fork+0x31/0x70 [ 36.336624][ C2] ret_from_fork_asm+0x1a/0x30 [ 36.336802][ C2] INITIAL USE at: [ 36.336904][ C2] __lock_acquire+0x797/0x1570 [ 36.337109][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.337329][ C2] _raw_spin_lock+0x30/0x40 [ 36.337553][ C2] set_mems_allowed+0x1d/0x210 [ 36.337820][ C2] kernel_init_freeable+0x72/0x310 [ 36.338096][ C2] kernel_init+0x20/0x200 [ 36.338367][ C2] ret_from_fork+0x31/0x70 [ 36.338645][ C2] ret_from_fork_asm+0x1a/0x30 [ 36.338865][ C2] } [ 36.338956][ C2] ... key at: [] __key.387+0x0/0x40 [ 36.339191][ C2] ... acquired at: [ 36.339323][ C2] __lock_acquire+0xaf0/0x1570 [ 36.339479][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.339609][ C2] _raw_spin_lock+0x30/0x40 [ 36.339770][ C2] __get_task_comm+0x27/0x70 [ 36.339942][ C2] ref_tracker_alloc+0x2ee/0x490 [ 36.340079][ C2] netdev_get_by_index+0x5e/0x80 [ 36.340254][ C2] fib6_nh_init+0x3d8/0x15b0 [ 36.340413][ C2] ip6_route_info_create+0xf18/0x17d0 [ 36.340622][ C2] addrconf_f6i_alloc+0x265/0x560 [ 36.340819][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.341031][ C2] addrconf_join_anycast+0x1c0/0x220 [ 36.341249][ C2] dev_forward_change+0x2a6/0x7b0 [ 36.341441][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 36.341609][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 36.341751][ C2] proc_sys_call_handler+0x403/0x5e0 [ 36.341883][ C2] vfs_write+0x9e5/0x10a0 [ 36.342048][ C2] ksys_write+0xf5/0x1e0 [ 36.342180][ C2] do_syscall_64+0xc6/0x1e0 [ 36.342333][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.342524][ C2] [ 36.342592][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 36.342731][ C2] HARDIRQ-ON-W at: [ 36.342851][ C2] __lock_acquire+0x797/0x1570 [ 36.343040][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.343227][ C2] _raw_write_lock_bh+0x38/0x50 [ 36.343406][ C2] addrconf_permanent_addr+0x6e/0x670 [ 36.343594][ C2] addrconf_notify+0x749/0xd60 [ 36.343799][ C2] notifier_call_chain+0xcd/0x150 [ 36.343999][ C2] __dev_notify_flags+0xe6/0x250 [ 36.344165][ C2] dev_change_flags+0xec/0x160 [ 36.344340][ C2] do_setlink+0x7d6/0x21e0 [ 36.344516][ C2] __rtnl_newlink+0xaa7/0xd80 [ 36.344686][ C2] rtnl_newlink+0x63/0xa0 [ 36.344874][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.345078][ C2] netlink_rcv_skb+0x130/0x360 [ 36.345255][ C2] netlink_unicast+0x449/0x710 [ 36.345438][ C2] netlink_sendmsg+0x723/0xbe0 [ 36.345618][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 36.345844][ C2] ___sys_sendmsg+0xee/0x170 [ 36.346110][ C2] __sys_sendmsg+0xcd/0x170 [ 36.346325][ C2] do_syscall_64+0xc6/0x1e0 [ 36.346522][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.346729][ C2] HARDIRQ-ON-R at: [ 36.346829][ C2] __lock_acquire+0x797/0x1570 [ 36.347042][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.347206][ C2] _raw_read_lock_bh+0x44/0x80 [ 36.347390][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.347554][ C2] inet6_fill_link_af+0x5e/0xe0 [ 36.347749][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.347923][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.348126][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.348388][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 36.348627][ C2] register_netdevice+0x1177/0x1690 [ 36.348800][ C2] register_netdev+0x20/0x40 [ 36.348980][ C2] sit_init_net+0x250/0x4f0 [ 36.349164][ C2] ops_init+0x9b/0x560 [ 36.349337][ C2] register_pernet_operations+0x2db/0x710 [ 36.349532][ C2] register_pernet_device+0x2a/0x60 [ 36.349711][ C2] sit_init+0x23/0xe0 [ 36.349856][ C2] do_one_initcall+0x8d/0x1e0 [ 36.350033][ C2] do_initcalls+0x1b2/0x3e0 [ 36.350207][ C2] kernel_init_freeable+0x232/0x310 [ 36.350373][ C2] kernel_init+0x20/0x200 [ 36.350548][ C2] ret_from_fork+0x31/0x70 [ 36.350716][ C2] ret_from_fork_asm+0x1a/0x30 [ 36.350886][ C2] IN-SOFTIRQ-W at: [ 36.351037][ C2] __lock_acquire+0x797/0x1570 [ 36.351211][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.351375][ C2] _raw_write_lock+0x30/0x40 [ 36.351538][ C2] addrconf_rs_timer+0xa9/0x730 [ 36.351704][ C2] call_timer_fn+0x13b/0x230 [ 36.351870][ C2] __run_timers+0x545/0x810 [ 36.352044][ C2] run_timer_softirq+0xe8/0x1b0 [ 36.352211][ C2] __do_softirq+0x1f8/0x5df [ 36.352376][ C2] irq_exit_rcu+0x97/0xc0 [ 36.352541][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.352737][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.352943][ C2] default_idle+0xf/0x20 [ 36.353111][ C2] default_idle_call+0x6d/0xb0 [ 36.353274][ C2] cpuidle_idle_call+0x1f4/0x280 [ 36.353440][ C2] do_idle+0xf9/0x160 [ 36.353571][ C2] cpu_startup_entry+0x54/0x60 [ 36.353733][ C2] start_secondary+0x21c/0x2b0 [ 36.353911][ C2] common_startup_64+0x12c/0x138 [ 36.354091][ C2] INITIAL USE at: [ 36.354190][ C2] __lock_acquire+0x797/0x1570 [ 36.354354][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.354522][ C2] _raw_write_lock_bh+0x38/0x50 [ 36.354685][ C2] addrconf_permanent_addr+0x6e/0x670 [ 36.354845][ C2] addrconf_notify+0x749/0xd60 [ 36.355013][ C2] notifier_call_chain+0xcd/0x150 [ 36.355190][ C2] __dev_notify_flags+0xe6/0x250 [ 36.355356][ C2] dev_change_flags+0xec/0x160 [ 36.355530][ C2] do_setlink+0x7d6/0x21e0 [ 36.355693][ C2] __rtnl_newlink+0xaa7/0xd80 [ 36.355864][ C2] rtnl_newlink+0x63/0xa0 [ 36.356086][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.356256][ C2] netlink_rcv_skb+0x130/0x360 [ 36.356420][ C2] netlink_unicast+0x449/0x710 [ 36.356593][ C2] netlink_sendmsg+0x723/0xbe0 [ 36.356755][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 36.356937][ C2] ___sys_sendmsg+0xee/0x170 [ 36.357100][ C2] __sys_sendmsg+0xcd/0x170 [ 36.357263][ C2] do_syscall_64+0xc6/0x1e0 [ 36.357443][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.357639][ C2] INITIAL READ USE at: [ 36.357763][ C2] __lock_acquire+0x797/0x1570 [ 36.357944][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.358149][ C2] _raw_read_lock_bh+0x44/0x80 [ 36.358404][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.358685][ C2] inet6_fill_link_af+0x5e/0xe0 [ 36.358873][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.359105][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.359360][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.359602][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 36.359766][ C2] register_netdevice+0x1177/0x1690 [ 36.360026][ C2] register_netdev+0x20/0x40 [ 36.360286][ C2] sit_init_net+0x250/0x4f0 [ 36.360449][ C2] ops_init+0x9b/0x560 [ 36.360623][ C2] register_pernet_operations+0x2db/0x710 [ 36.360829][ C2] register_pernet_device+0x2a/0x60 [ 36.361128][ C2] sit_init+0x23/0xe0 [ 36.361304][ C2] do_one_initcall+0x8d/0x1e0 [ 36.361471][ C2] do_initcalls+0x1b2/0x3e0 [ 36.361722][ C2] kernel_init_freeable+0x232/0x310 [ 36.361936][ C2] kernel_init+0x20/0x200 [ 36.362099][ C2] ret_from_fork+0x31/0x70 [ 36.362433][ C2] ret_from_fork_asm+0x1a/0x30 [ 36.362599][ C2] } [ 36.362665][ C2] ... key at: [] __key.37+0x0/0x40 [ 36.362859][ C2] ... acquired at: [ 36.363038][ C2] mark_lock+0x28d/0x3e0 [ 36.363169][ C2] mark_usage+0xd9/0x2a0 [ 36.363301][ C2] __lock_acquire+0x797/0x1570 [ 36.363432][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.363643][ C2] _raw_write_lock+0x30/0x40 [ 36.363784][ C2] addrconf_rs_timer+0xa9/0x730 [ 36.363939][ C2] call_timer_fn+0x13b/0x230 [ 36.364073][ C2] __run_timers+0x545/0x810 [ 36.364202][ C2] run_timer_softirq+0xe8/0x1b0 [ 36.364404][ C2] __do_softirq+0x1f8/0x5df [ 36.364534][ C2] irq_exit_rcu+0x97/0xc0 [ 36.364663][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.364824][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.365072][ C2] default_idle+0xf/0x20 [ 36.365208][ C2] default_idle_call+0x6d/0xb0 [ 36.365340][ C2] cpuidle_idle_call+0x1f4/0x280 [ 36.365470][ C2] do_idle+0xf9/0x160 [ 36.365644][ C2] cpu_startup_entry+0x54/0x60 [ 36.365775][ C2] start_secondary+0x21c/0x2b0 [ 36.365914][ C2] common_startup_64+0x12c/0x138 [ 36.366058][ C2] [ 36.366124][ C2] [ 36.366124][ C2] stack backtrace: [ 36.366363][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 36.366564][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.366937][ C2] Call Trace: [ 36.367036][ C2] [ 36.367107][ C2] dump_stack_lvl+0x82/0xd0 [ 36.367247][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.367423][ C2] ? kernel_text_address+0x17/0xe0 [ 36.367643][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.367811][ C2] ? __pfx_usage_skip+0x10/0x10 [ 36.367958][ C2] ? __pfx_usage_match+0x10/0x10 [ 36.368092][ C2] ? arch_stack_walk+0x8c/0xf0 [ 36.368315][ C2] mark_lock_irq+0x4cd/0xa10 [ 36.368469][ C2] ? common_startup_64+0x12c/0x138 [ 36.368598][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.368749][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 36.369002][ C2] ? save_trace+0x8f/0x5b0 [ 36.369153][ C2] mark_lock+0x28d/0x3e0 [ 36.369255][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 36.369384][ C2] mark_usage+0xd9/0x2a0 [ 36.369509][ C2] __lock_acquire+0x797/0x1570 [ 36.369645][ C2] ? __pfx_validate_chain+0x10/0x10 [ 36.369802][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.369952][ C2] lock_acquire.part.0+0xeb/0x330 [ 36.370093][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 36.370264][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.370419][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 36.370607][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 36.370796][ C2] ? lock_acquire+0x32/0xc0 [ 36.370996][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 36.371203][ C2] _raw_write_lock+0x30/0x40 [ 36.371413][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 36.371614][ C2] addrconf_rs_timer+0xa9/0x730 [ 36.371820][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.372030][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.372242][ C2] ? call_timer_fn+0xe8/0x230 [ 36.372455][ C2] ? lock_acquire+0x32/0xc0 [ 36.372668][ C2] ? call_timer_fn+0xe8/0x230 [ 36.372871][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.373073][ C2] call_timer_fn+0x13b/0x230 [ 36.373276][ C2] ? call_timer_fn+0xe8/0x230 [ 36.373478][ C2] ? call_timer_fn+0xe8/0x230 [ 36.373691][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 36.373897][ C2] ? mark_lock+0x38/0x3e0 [ 36.374067][ C2] __run_timers+0x545/0x810 [ 36.374274][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.374481][ C2] ? __pfx___run_timers+0x10/0x10 [ 36.374692][ C2] ? do_raw_spin_lock+0x131/0x270 [ 36.374898][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.375103][ C2] ? lock_acquire+0x32/0xc0 [ 36.375325][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 36.375533][ C2] run_timer_softirq+0xe8/0x1b0 [ 36.375739][ C2] __do_softirq+0x1f8/0x5df [ 36.375890][ C2] irq_exit_rcu+0x97/0xc0 [ 36.376046][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.376191][ C2] [ 36.376260][ C2] [ 36.376327][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.376488][ C2] RIP: 0010:default_idle+0xf/0x20 [ 36.376639][ 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 [ 36.377107][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 36.377273][ C2] RAX: 00000000000e2359 RBX: 1ffff9200002bfc1 RCX: ffffffff89f0e9d5 [ 36.377469][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff878aa4a4 [ 36.377671][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 36.377866][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 36.378154][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 36.378358][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.378491][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 36.378627][ C2] default_idle_call+0x6d/0xb0 [ 36.378757][ C2] cpuidle_idle_call+0x1f4/0x280 [ 36.378887][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.379022][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.379154][ C2] do_idle+0xf9/0x160 [ 36.379252][ C2] cpu_startup_entry+0x54/0x60 [ 36.379381][ C2] start_secondary+0x21c/0x2b0 [ 36.379511][ C2] ? __pfx_start_secondary+0x10/0x10 [ 36.379644][ C2] common_startup_64+0x12c/0x138 [ 36.379782][ C2] [ 63.069280][ T400] br1: port 1(veth1) entered disabled state [ 63.174426][ T401] veth1: left allmulticast mode [ 63.174599][ T401] veth1: left promiscuous mode [ 63.174850][ T401] br1: port 1(veth1) entered disabled state