[ 25.144386][ T264] ip (264) used greatest stack depth: 23392 bytes left [ 35.495054][ C2] [ 35.495208][ C2] ======================================================== [ 35.495422][ C2] WARNING: possible irq lock inversion dependency detected [ 35.495624][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 35.495767][ C2] -------------------------------------------------------- [ 35.495963][ C2] swapper/2/0 just changed the state of lock: [ 35.496136][ C2] ffff88800582a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.496388][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.496590][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 35.496594][ C2] [ 35.496594][ C2] [ 35.496594][ C2] and interrupts could create inverse lock ordering between them. [ 35.496594][ C2] [ 35.497108][ C2] [ 35.497108][ C2] other info that might help us debug this: [ 35.497304][ C2] Possible interrupt unsafe locking scenario: [ 35.497304][ C2] [ 35.497507][ C2] CPU0 CPU1 [ 35.497641][ C2] ---- ---- [ 35.497779][ C2] lock(&p->alloc_lock); [ 35.497881][ C2] local_irq_disable(); [ 35.498048][ C2] lock(&ndev->lock); [ 35.498216][ C2] lock(&p->alloc_lock); [ 35.498381][ C2] [ 35.498484][ C2] lock(&ndev->lock); [ 35.498586][ C2] [ 35.498586][ C2] *** DEADLOCK *** [ 35.498586][ C2] [ 35.498786][ C2] 1 lock held by swapper/2/0: [ 35.498919][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.499166][ C2] [ 35.499166][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 35.499395][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.499533][ C2] HARDIRQ-ON-W at: [ 35.499638][ C2] __lock_acquire+0x797/0x1570 [ 35.499816][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.499985][ C2] _raw_spin_lock+0x30/0x40 [ 35.500158][ C2] set_mems_allowed+0x1d/0x210 [ 35.500330][ C2] kernel_init_freeable+0x72/0x310 [ 35.500500][ C2] kernel_init+0x20/0x200 [ 35.500669][ C2] ret_from_fork+0x31/0x70 [ 35.500849][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.501020][ C2] SOFTIRQ-ON-W at: [ 35.501121][ C2] __lock_acquire+0x797/0x1570 [ 35.501290][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.501461][ C2] _raw_spin_lock+0x30/0x40 [ 35.501630][ C2] set_mems_allowed+0x1d/0x210 [ 35.501803][ C2] kernel_init_freeable+0x72/0x310 [ 35.501974][ C2] kernel_init+0x20/0x200 [ 35.502144][ C2] ret_from_fork+0x31/0x70 [ 35.502312][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.502480][ C2] INITIAL USE at: [ 35.502583][ C2] __lock_acquire+0x797/0x1570 [ 35.502752][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.502924][ C2] _raw_spin_lock+0x30/0x40 [ 35.503096][ C2] set_mems_allowed+0x1d/0x210 [ 35.503266][ C2] kernel_init_freeable+0x72/0x310 [ 35.503436][ C2] kernel_init+0x20/0x200 [ 35.503606][ C2] ret_from_fork+0x31/0x70 [ 35.503777][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.503949][ C2] } [ 35.504019][ C2] ... key at: [] __key.387+0x0/0x40 [ 35.504224][ C2] ... acquired at: [ 35.504325][ C2] __lock_acquire+0xaf0/0x1570 [ 35.504463][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.504599][ C2] _raw_spin_lock+0x30/0x40 [ 35.504734][ C2] __get_task_comm+0x27/0x70 [ 35.504874][ C2] ref_tracker_alloc+0x2ee/0x490 [ 35.505016][ C2] netdev_get_by_index+0x5e/0x80 [ 35.505150][ C2] fib6_nh_init+0x3d8/0x15b0 [ 35.505286][ C2] ip6_route_info_create+0xf18/0x17d0 [ 35.505421][ C2] addrconf_f6i_alloc+0x265/0x560 [ 35.505564][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 35.505702][ C2] addrconf_join_anycast+0x1c0/0x220 [ 35.505837][ C2] dev_forward_change+0x2a6/0x7b0 [ 35.505975][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 35.506144][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 35.506278][ C2] proc_sys_call_handler+0x403/0x5e0 [ 35.506414][ C2] vfs_write+0x9e5/0x10a0 [ 35.506550][ C2] ksys_write+0xf5/0x1e0 [ 35.506692][ C2] do_syscall_64+0xc6/0x1e0 [ 35.506835][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.507019][ C2] [ 35.507092][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 35.507234][ C2] HARDIRQ-ON-W at: [ 35.507336][ C2] __lock_acquire+0x797/0x1570 [ 35.507506][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.507676][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.507846][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.508015][ C2] addrconf_notify+0x749/0xd60 [ 35.508188][ C2] notifier_call_chain+0xcd/0x150 [ 35.508355][ C2] __dev_notify_flags+0xe6/0x250 [ 35.508524][ C2] dev_change_flags+0xec/0x160 [ 35.508693][ C2] do_setlink+0x7d6/0x21e0 [ 35.508862][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.509034][ C2] rtnl_newlink+0x63/0xa0 [ 35.509203][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.509375][ C2] netlink_rcv_skb+0x130/0x360 [ 35.509548][ C2] netlink_unicast+0x449/0x710 [ 35.509720][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.509891][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.510066][ C2] ___sys_sendmsg+0xee/0x170 [ 35.510239][ C2] __sys_sendmsg+0xcd/0x170 [ 35.510414][ C2] do_syscall_64+0xc6/0x1e0 [ 35.510583][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.510786][ C2] HARDIRQ-ON-R at: [ 35.510887][ C2] __lock_acquire+0x797/0x1570 [ 35.511059][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.511227][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.511401][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.511573][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.511742][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.511911][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.512084][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.512287][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.512459][ C2] register_netdevice+0x1177/0x1690 [ 35.512633][ C2] register_netdev+0x20/0x40 [ 35.512803][ C2] sit_init_net+0x250/0x4f0 [ 35.512974][ C2] ops_init+0x9b/0x560 [ 35.513112][ C2] register_pernet_operations+0x2db/0x710 [ 35.513314][ C2] register_pernet_device+0x2a/0x60 [ 35.513482][ C2] sit_init+0x23/0xe0 [ 35.513624][ C2] do_one_initcall+0x8d/0x1e0 [ 35.513793][ C2] do_initcalls+0x1b2/0x3e0 [ 35.513963][ C2] kernel_init_freeable+0x232/0x310 [ 35.514133][ C2] kernel_init+0x20/0x200 [ 35.514303][ C2] ret_from_fork+0x31/0x70 [ 35.514474][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.514643][ C2] IN-SOFTIRQ-W at: [ 35.514747][ C2] __lock_acquire+0x797/0x1570 [ 35.514920][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.515089][ C2] _raw_write_lock+0x30/0x40 [ 35.515258][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.515428][ C2] call_timer_fn+0x13b/0x230 [ 35.515600][ C2] __run_timers+0x545/0x810 [ 35.515770][ C2] timer_expire_remote+0x9b/0xe0 [ 35.515944][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.516202][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.516371][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.516541][ C2] __do_softirq+0x1f8/0x5df [ 35.516788][ C2] irq_exit_rcu+0x97/0xc0 [ 35.516970][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.517177][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.517462][ C2] default_idle+0xf/0x20 [ 35.517631][ C2] default_idle_call+0x6d/0xb0 [ 35.517799][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.518048][ C2] do_idle+0xf9/0x160 [ 35.518185][ C2] cpu_startup_entry+0x54/0x60 [ 35.518358][ C2] start_secondary+0x21c/0x2b0 [ 35.518528][ C2] common_startup_64+0x12c/0x138 [ 35.518859][ C2] INITIAL USE at: [ 35.518960][ C2] __lock_acquire+0x797/0x1570 [ 35.519131][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.519300][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.519550][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.519721][ C2] addrconf_notify+0x749/0xd60 [ 35.519890][ C2] notifier_call_chain+0xcd/0x150 [ 35.520139][ C2] __dev_notify_flags+0xe6/0x250 [ 35.520309][ C2] dev_change_flags+0xec/0x160 [ 35.520478][ C2] do_setlink+0x7d6/0x21e0 [ 35.520650][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.520906][ C2] rtnl_newlink+0x63/0xa0 [ 35.521076][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.521243][ C2] netlink_rcv_skb+0x130/0x360 [ 35.521489][ C2] netlink_unicast+0x449/0x710 [ 35.521659][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.521828][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.522080][ C2] ___sys_sendmsg+0xee/0x170 [ 35.522255][ C2] __sys_sendmsg+0xcd/0x170 [ 35.522423][ C2] do_syscall_64+0xc6/0x1e0 [ 35.522592][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.522874][ C2] INITIAL READ USE at: [ 35.522975][ C2] __lock_acquire+0x797/0x1570 [ 35.523144][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.523396][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.523565][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.523772][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.523941][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.524194][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.524394][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.524600][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.524849][ C2] register_netdevice+0x1177/0x1690 [ 35.525051][ C2] register_netdev+0x20/0x40 [ 35.525219][ C2] sit_init_net+0x250/0x4f0 [ 35.525468][ C2] ops_init+0x9b/0x560 [ 35.525635][ C2] register_pernet_operations+0x2db/0x710 [ 35.525839][ C2] register_pernet_device+0x2a/0x60 [ 35.526117][ C2] sit_init+0x23/0xe0 [ 35.526288][ C2] do_one_initcall+0x8d/0x1e0 [ 35.526458][ C2] do_initcalls+0x1b2/0x3e0 [ 35.526709][ C2] kernel_init_freeable+0x232/0x310 [ 35.526922][ C2] kernel_init+0x20/0x200 [ 35.527096][ C2] ret_from_fork+0x31/0x70 [ 35.527346][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.527515][ C2] } [ 35.527584][ C2] ... key at: [] __key.37+0x0/0x40 [ 35.527783][ C2] ... acquired at: [ 35.527885][ C2] mark_lock+0x28d/0x3e0 [ 35.528100][ C2] mark_usage+0xd9/0x2a0 [ 35.528241][ C2] __lock_acquire+0x797/0x1570 [ 35.528375][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.528508][ C2] _raw_write_lock+0x30/0x40 [ 35.528722][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.528857][ C2] call_timer_fn+0x13b/0x230 [ 35.528993][ C2] __run_timers+0x545/0x810 [ 35.529128][ C2] timer_expire_remote+0x9b/0xe0 [ 35.529419][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.529556][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.529694][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.529829][ C2] __do_softirq+0x1f8/0x5df [ 35.530041][ C2] irq_exit_rcu+0x97/0xc0 [ 35.530176][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.530343][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.530513][ C2] default_idle+0xf/0x20 [ 35.530727][ C2] default_idle_call+0x6d/0xb0 [ 35.530863][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.531003][ C2] do_idle+0xf9/0x160 [ 35.531105][ C2] cpu_startup_entry+0x54/0x60 [ 35.531242][ C2] start_secondary+0x21c/0x2b0 [ 35.531456][ C2] common_startup_64+0x12c/0x138 [ 35.531592][ C2] [ 35.531660][ C2] [ 35.531660][ C2] stack backtrace: [ 35.531831][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 35.532114][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.532416][ C2] Call Trace: [ 35.532519][ C2] [ 35.532669][ C2] dump_stack_lvl+0x82/0xd0 [ 35.532819][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.532987][ C2] ? kernel_text_address+0x17/0xe0 [ 35.533124][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.533374][ C2] ? __pfx_usage_skip+0x10/0x10 [ 35.533509][ C2] ? __pfx_usage_match+0x10/0x10 [ 35.533643][ C2] ? arch_stack_walk+0x8c/0xf0 [ 35.533781][ C2] mark_lock_irq+0x4cd/0xa10 [ 35.533998][ C2] ? common_startup_64+0x12c/0x138 [ 35.534135][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.534270][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.534408][ C2] ? save_trace+0x8f/0x5b0 [ 35.534542][ C2] mark_lock+0x28d/0x3e0 [ 35.534647][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.534783][ C2] mark_usage+0xd9/0x2a0 [ 35.534884][ C2] __lock_acquire+0x797/0x1570 [ 35.535024][ C2] ? __pfx_validate_chain+0x10/0x10 [ 35.535236][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.535370][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.535504][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.535638][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.535777][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 35.535989][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.536122][ C2] ? lock_acquire+0x32/0xc0 [ 35.536261][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.536397][ C2] _raw_write_lock+0x30/0x40 [ 35.536609][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.536744][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.536889][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.537027][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.537241][ C2] ? call_timer_fn+0xe8/0x230 [ 35.537375][ C2] ? lock_acquire+0x32/0xc0 [ 35.537507][ C2] ? call_timer_fn+0xe8/0x230 [ 35.537641][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.537852][ C2] call_timer_fn+0x13b/0x230 [ 35.537987][ C2] ? call_timer_fn+0xe8/0x230 [ 35.538120][ C2] ? call_timer_fn+0xe8/0x230 [ 35.538254][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 35.538392][ C2] ? mark_lock+0x38/0x3e0 [ 35.538576][ C2] __run_timers+0x545/0x810 [ 35.538710][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.538845][ C2] ? __pfx___run_timers+0x10/0x10 [ 35.538980][ C2] ? __lock_release+0x103/0x460 [ 35.539195][ C2] ? do_raw_spin_lock+0x131/0x270 [ 35.539334][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.539469][ C2] ? lock_acquire+0x32/0xc0 [ 35.539609][ C2] ? timer_expire_remote+0x93/0xe0 [ 35.539901][ C2] timer_expire_remote+0x9b/0xe0 [ 35.540038][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.540172][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 35.540343][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.540560][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.540696][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 35.540833][ C2] __do_softirq+0x1f8/0x5df [ 35.540973][ C2] irq_exit_rcu+0x97/0xc0 [ 35.541076][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.541287][ C2] [ 35.541360][ C2] [ 35.541428][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.541596][ C2] RIP: 0010:default_idle+0xf/0x20 [ 35.541736][ 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 [ 35.542306][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 35.542555][ C2] RAX: 000000000010a9b1 RBX: 1ffff9200002bfc1 RCX: ffffffffb170e9d5 [ 35.542756][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffaf0aa4a4 [ 35.542960][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 35.543244][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 35.543444][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 35.543645][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.543859][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 35.543995][ C2] default_idle_call+0x6d/0xb0 [ 35.544128][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.544261][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.544400][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.544613][ C2] do_idle+0xf9/0x160 [ 35.544723][ C2] cpu_startup_entry+0x54/0x60 [ 35.544858][ C2] start_secondary+0x21c/0x2b0 [ 35.544991][ C2] ? __pfx_start_secondary+0x10/0x10 [ 35.545204][ C2] common_startup_64+0x12c/0x138 [ 35.545340][ C2]