[ 27.607258][ T266] tc (266) used greatest stack depth: 23208 bytes left [ 30.759792][ C2] [ 30.759900][ C2] ======================================================== [ 30.760107][ C2] WARNING: possible irq lock inversion dependency detected [ 30.760303][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 30.760442][ C2] -------------------------------------------------------- [ 30.760657][ C2] swapper/2/0 just changed the state of lock: [ 30.760832][ C2] ffff888005b6a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 30.761089][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 30.761300][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 30.761304][ C2] [ 30.761304][ C2] [ 30.761304][ C2] and interrupts could create inverse lock ordering between them. [ 30.761304][ C2] [ 30.761804][ C2] [ 30.761804][ C2] other info that might help us debug this: [ 30.762007][ C2] Possible interrupt unsafe locking scenario: [ 30.762007][ C2] [ 30.762206][ C2] CPU0 CPU1 [ 30.762357][ C2] ---- ---- [ 30.762491][ C2] lock(&p->alloc_lock); [ 30.762593][ C2] local_irq_disable(); [ 30.762778][ C2] lock(&ndev->lock); [ 30.762945][ C2] lock(&p->alloc_lock); [ 30.763112][ C2] [ 30.763211][ C2] lock(&ndev->lock); [ 30.763317][ C2] [ 30.763317][ C2] *** DEADLOCK *** [ 30.763317][ C2] [ 30.763515][ C2] 1 lock held by swapper/2/0: [ 30.763651][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 30.763893][ C2] [ 30.763893][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 30.764124][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 30.764268][ C2] HARDIRQ-ON-W at: [ 30.764370][ C2] __lock_acquire+0x797/0x1570 [ 30.764548][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.764722][ C2] _raw_spin_lock+0x30/0x40 [ 30.764893][ C2] set_mems_allowed+0x1d/0x210 [ 30.765064][ C2] kernel_init_freeable+0x72/0x310 [ 30.765242][ C2] kernel_init+0x20/0x200 [ 30.765410][ C2] ret_from_fork+0x31/0x70 [ 30.765582][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.765758][ C2] SOFTIRQ-ON-W at: [ 30.765862][ C2] __lock_acquire+0x797/0x1570 [ 30.766033][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.766204][ C2] _raw_spin_lock+0x30/0x40 [ 30.766379][ C2] set_mems_allowed+0x1d/0x210 [ 30.766546][ C2] kernel_init_freeable+0x72/0x310 [ 30.766724][ C2] kernel_init+0x20/0x200 [ 30.766897][ C2] ret_from_fork+0x31/0x70 [ 30.767069][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.767241][ C2] INITIAL USE at: [ 30.767348][ C2] __lock_acquire+0x797/0x1570 [ 30.767520][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.767699][ C2] _raw_spin_lock+0x30/0x40 [ 30.767878][ C2] set_mems_allowed+0x1d/0x210 [ 30.768052][ C2] kernel_init_freeable+0x72/0x310 [ 30.768223][ C2] kernel_init+0x20/0x200 [ 30.768399][ C2] ret_from_fork+0x31/0x70 [ 30.768570][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.768745][ C2] } [ 30.768816][ C2] ... key at: [] __key.388+0x0/0x40 [ 30.769024][ C2] ... acquired at: [ 30.769126][ C2] __lock_acquire+0xaf0/0x1570 [ 30.769264][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.769400][ C2] _raw_spin_lock+0x30/0x40 [ 30.769539][ C2] __get_task_comm+0x27/0x70 [ 30.769677][ C2] ref_tracker_alloc+0x2ee/0x490 [ 30.769816][ C2] netdev_get_by_index+0x5e/0x80 [ 30.769952][ C2] fib6_nh_init+0x3d8/0x1580 [ 30.770088][ C2] ip6_route_info_create+0xf18/0x17d0 [ 30.770224][ C2] addrconf_f6i_alloc+0x265/0x560 [ 30.770359][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 30.770498][ C2] addrconf_join_anycast+0x1c0/0x220 [ 30.770640][ C2] dev_forward_change+0x2a6/0x7b0 [ 30.770780][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 30.770948][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 30.771087][ C2] proc_sys_call_handler+0x403/0x5e0 [ 30.771224][ C2] vfs_write+0x9e5/0x10a0 [ 30.771362][ C2] ksys_write+0xf5/0x1e0 [ 30.771500][ C2] do_syscall_64+0xc6/0x1e0 [ 30.771640][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.771807][ C2] [ 30.771876][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 30.772015][ C2] HARDIRQ-ON-W at: [ 30.772121][ C2] __lock_acquire+0x797/0x1570 [ 30.772293][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.772465][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.772637][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.772822][ C2] addrconf_notify+0x749/0xd60 [ 30.772995][ C2] notifier_call_chain+0xcd/0x150 [ 30.773168][ C2] __dev_notify_flags+0xe6/0x250 [ 30.773343][ C2] dev_change_flags+0xec/0x160 [ 30.773516][ C2] do_setlink+0x7d6/0x21e0 [ 30.773687][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.773861][ C2] rtnl_newlink+0x63/0xa0 [ 30.774035][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.774205][ C2] netlink_rcv_skb+0x130/0x360 [ 30.774377][ C2] netlink_unicast+0x449/0x710 [ 30.774550][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.774725][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.774895][ C2] ___sys_sendmsg+0xee/0x170 [ 30.775071][ C2] __sys_sendmsg+0xcd/0x170 [ 30.775245][ C2] do_syscall_64+0xc6/0x1e0 [ 30.775417][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.775627][ C2] HARDIRQ-ON-R at: [ 30.775735][ C2] __lock_acquire+0x797/0x1570 [ 30.775908][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.776077][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.776254][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.776425][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.776596][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.776769][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.776946][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.777158][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.777330][ C2] register_netdevice+0x1177/0x1690 [ 30.777502][ C2] register_netdev+0x20/0x40 [ 30.777673][ C2] vti6_init_net+0x25d/0x380 [ 30.777847][ C2] ops_init+0x9b/0x560 [ 30.777983][ C2] register_pernet_operations+0x2db/0x710 [ 30.778187][ C2] register_pernet_device+0x2a/0x60 [ 30.778362][ C2] vti6_tunnel_init+0x18/0x110 [ 30.778534][ C2] do_one_initcall+0x8d/0x1e0 [ 30.778707][ C2] do_initcalls+0x1b2/0x3e0 [ 30.778876][ C2] kernel_init_freeable+0x232/0x310 [ 30.779046][ C2] kernel_init+0x20/0x200 [ 30.779219][ C2] ret_from_fork+0x31/0x70 [ 30.779397][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.779570][ C2] IN-SOFTIRQ-W at: [ 30.779672][ C2] __lock_acquire+0x797/0x1570 [ 30.779846][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.780018][ C2] _raw_write_lock+0x30/0x40 [ 30.780187][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.780359][ C2] call_timer_fn+0x13b/0x230 [ 30.780539][ C2] __run_timers+0x545/0x810 [ 30.780714][ C2] timer_expire_remote+0x9b/0xe0 [ 30.780888][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.781146][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.781318][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.781486][ C2] __do_softirq+0x1f8/0x5df [ 30.781660][ C2] irq_exit_rcu+0x97/0xc0 [ 30.781925][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.782130][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.782334][ C2] default_idle+0xf/0x20 [ 30.782506][ C2] default_idle_call+0x6d/0xb0 [ 30.782675][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.782893][ C2] do_idle+0xf9/0x160 [ 30.783115][ C2] cpu_startup_entry+0x54/0x60 [ 30.783283][ C2] start_secondary+0x21c/0x2b0 [ 30.783455][ C2] common_startup_64+0x12c/0x138 [ 30.783625][ C2] INITIAL USE at: [ 30.783815][ C2] __lock_acquire+0x797/0x1570 [ 30.783988][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.784162][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.784336][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.784509][ C2] addrconf_notify+0x749/0xd60 [ 30.784680][ C2] notifier_call_chain+0xcd/0x150 [ 30.784853][ C2] __dev_notify_flags+0xe6/0x250 [ 30.785108][ C2] dev_change_flags+0xec/0x160 [ 30.785290][ C2] do_setlink+0x7d6/0x21e0 [ 30.785462][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.785712][ C2] rtnl_newlink+0x63/0xa0 [ 30.785881][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.786052][ C2] netlink_rcv_skb+0x130/0x360 [ 30.786224][ C2] netlink_unicast+0x449/0x710 [ 30.786475][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.786653][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.786827][ C2] ___sys_sendmsg+0xee/0x170 [ 30.787162][ C2] __sys_sendmsg+0xcd/0x170 [ 30.787331][ C2] do_syscall_64+0xc6/0x1e0 [ 30.787502][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.787794][ C2] INITIAL READ USE at: [ 30.787896][ C2] __lock_acquire+0x797/0x1570 [ 30.788065][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.788235][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.788405][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.788608][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.788780][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.789032][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.789239][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.789440][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.789692][ C2] register_netdevice+0x1177/0x1690 [ 30.789893][ C2] register_netdev+0x20/0x40 [ 30.790061][ C2] vti6_init_net+0x25d/0x380 [ 30.790311][ C2] ops_init+0x9b/0x560 [ 30.790482][ C2] register_pernet_operations+0x2db/0x710 [ 30.790689][ C2] register_pernet_device+0x2a/0x60 [ 30.790975][ C2] vti6_tunnel_init+0x18/0x110 [ 30.791144][ C2] do_one_initcall+0x8d/0x1e0 [ 30.791315][ C2] do_initcalls+0x1b2/0x3e0 [ 30.791492][ C2] kernel_init_freeable+0x232/0x310 [ 30.791777][ C2] kernel_init+0x20/0x200 [ 30.791950][ C2] ret_from_fork+0x31/0x70 [ 30.792124][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.792378][ C2] } [ 30.792448][ C2] ... key at: [] __key.37+0x0/0x40 [ 30.792655][ C2] ... acquired at: [ 30.792776][ C2] mark_lock+0x28d/0x3e0 [ 30.792993][ C2] mark_usage+0xd9/0x2a0 [ 30.793125][ C2] __lock_acquire+0x797/0x1570 [ 30.793259][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.793391][ C2] _raw_write_lock+0x30/0x40 [ 30.793524][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.793741][ C2] call_timer_fn+0x13b/0x230 [ 30.793874][ C2] __run_timers+0x545/0x810 [ 30.794007][ C2] timer_expire_remote+0x9b/0xe0 [ 30.794142][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.794352][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.794485][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.794620][ C2] __do_softirq+0x1f8/0x5df [ 30.794757][ C2] irq_exit_rcu+0x97/0xc0 [ 30.794968][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.795141][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.795309][ C2] default_idle+0xf/0x20 [ 30.795442][ C2] default_idle_call+0x6d/0xb0 [ 30.795655][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.795789][ C2] do_idle+0xf9/0x160 [ 30.795890][ C2] cpu_startup_entry+0x54/0x60 [ 30.796023][ C2] start_secondary+0x21c/0x2b0 [ 30.796235][ C2] common_startup_64+0x12c/0x138 [ 30.796368][ C2] [ 30.796434][ C2] [ 30.796434][ C2] stack backtrace: [ 30.796601][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 30.796879][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.797171][ C2] Call Trace: [ 30.797277][ C2] [ 30.797348][ C2] dump_stack_lvl+0x82/0xd0 [ 30.797644][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.797810][ C2] ? kernel_text_address+0x17/0xe0 [ 30.797950][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.798115][ C2] ? __pfx_usage_skip+0x10/0x10 [ 30.798325][ C2] ? __pfx_usage_match+0x10/0x10 [ 30.798460][ C2] ? arch_stack_walk+0x8c/0xf0 [ 30.798594][ C2] mark_lock_irq+0x4cd/0xa10 [ 30.798731][ C2] ? common_startup_64+0x12c/0x138 [ 30.798941][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.799073][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.799210][ C2] ? save_trace+0x8f/0x5b0 [ 30.799344][ C2] mark_lock+0x28d/0x3e0 [ 30.799447][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.799657][ C2] mark_usage+0xd9/0x2a0 [ 30.799759][ C2] __lock_acquire+0x797/0x1570 [ 30.799894][ C2] ? __pfx_validate_chain+0x10/0x10 [ 30.800028][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.800236][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.800374][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.800507][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.800641][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 30.800851][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.800982][ C2] ? lock_acquire+0x32/0xc0 [ 30.801114][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.801246][ C2] _raw_write_lock+0x30/0x40 [ 30.801381][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.801595][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.801728][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.801862][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.801995][ C2] ? call_timer_fn+0xe8/0x230 [ 30.802203][ C2] ? lock_acquire+0x32/0xc0 [ 30.802338][ C2] ? call_timer_fn+0xe8/0x230 [ 30.802471][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.802603][ C2] call_timer_fn+0x13b/0x230 [ 30.802847][ C2] ? call_timer_fn+0xe8/0x230 [ 30.802981][ C2] ? call_timer_fn+0xe8/0x230 [ 30.803114][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 30.803248][ C2] ? mark_lock+0x38/0x3e0 [ 30.803352][ C2] __run_timers+0x545/0x810 [ 30.803485][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.803618][ C2] ? __pfx___run_timers+0x10/0x10 [ 30.803751][ C2] ? __lock_release+0x103/0x460 [ 30.803886][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.804098][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.804242][ C2] ? lock_acquire+0x32/0xc0 [ 30.804374][ C2] ? timer_expire_remote+0x93/0xe0 [ 30.804509][ C2] timer_expire_remote+0x9b/0xe0 [ 30.804722][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.804856][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 30.805024][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.805160][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.805374][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 30.805509][ C2] __do_softirq+0x1f8/0x5df [ 30.805644][ C2] irq_exit_rcu+0x97/0xc0 [ 30.805744][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.805878][ C2] [ 30.806028][ C2] [ 30.806099][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.806266][ C2] RIP: 0010:default_idle+0xf/0x20 [ 30.806406][ 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 d3 eb 32 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 30.806965][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 30.807140][ C2] RAX: 00000000000bbb03 RBX: 1ffff9200002bfc1 RCX: ffffffff99532ea5 [ 30.807419][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff96cac1d4 [ 30.807620][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 30.807821][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 30.808187][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 30.808386][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.808518][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 30.808730][ C2] default_idle_call+0x6d/0xb0 [ 30.808865][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.809000][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.809133][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.809345][ C2] do_idle+0xf9/0x160 [ 30.809446][ C2] cpu_startup_entry+0x54/0x60 [ 30.809579][ C2] start_secondary+0x21c/0x2b0 [ 30.809711][ C2] ? __pfx_start_secondary+0x10/0x10 [ 30.809845][ C2] common_startup_64+0x12c/0x138 [ 30.810063][ C2]