[ 39.509451][ T310] ip (310) used greatest stack depth: 23616 bytes left [ 52.970550][ C3] [ 52.970727][ C3] ======================================================== [ 52.970926][ C3] WARNING: possible irq lock inversion dependency detected [ 52.971121][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 52.971255][ C3] -------------------------------------------------------- [ 52.971457][ C3] swapper/3/0 just changed the state of lock: [ 52.971627][ C3] ffff8880056b5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 52.971866][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 52.972059][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 52.972063][ C3] [ 52.972063][ C3] [ 52.972063][ C3] and interrupts could create inverse lock ordering between them. [ 52.972063][ C3] [ 52.972552][ C3] [ 52.972552][ C3] other info that might help us debug this: [ 52.972747][ C3] Possible interrupt unsafe locking scenario: [ 52.972747][ C3] [ 52.972941][ C3] CPU0 CPU1 [ 52.973073][ C3] ---- ---- [ 52.973204][ C3] lock(&p->alloc_lock); [ 52.973307][ C3] local_irq_disable(); [ 52.973471][ C3] lock(&ndev->lock); [ 52.973638][ C3] lock(&p->alloc_lock); [ 52.973804][ C3] [ 52.973904][ C3] lock(&ndev->lock); [ 52.974009][ C3] [ 52.974009][ C3] *** DEADLOCK *** [ 52.974009][ C3] [ 52.974201][ C3] 1 lock held by swapper/3/0: [ 52.974331][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 52.974576][ C3] [ 52.974576][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 52.974806][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 52.974945][ C3] HARDIRQ-ON-W at: [ 52.975047][ C3] __lock_acquire+0x797/0x1570 [ 52.975222][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.975388][ C3] _raw_spin_lock+0x30/0x40 [ 52.975557][ C3] set_mems_allowed+0x1d/0x210 [ 52.975749][ C3] kernel_init_freeable+0x72/0x310 [ 52.975917][ C3] kernel_init+0x20/0x200 [ 52.976083][ C3] ret_from_fork+0x31/0x70 [ 52.976249][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.976418][ C3] SOFTIRQ-ON-W at: [ 52.976518][ C3] __lock_acquire+0x797/0x1570 [ 52.976682][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.976854][ C3] _raw_spin_lock+0x30/0x40 [ 52.977021][ C3] set_mems_allowed+0x1d/0x210 [ 52.977184][ C3] kernel_init_freeable+0x72/0x310 [ 52.977349][ C3] kernel_init+0x20/0x200 [ 52.977518][ C3] ret_from_fork+0x31/0x70 [ 52.977684][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.977854][ C3] INITIAL USE at: [ 52.977953][ C3] __lock_acquire+0x797/0x1570 [ 52.978120][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.978285][ C3] _raw_spin_lock+0x30/0x40 [ 52.978452][ C3] set_mems_allowed+0x1d/0x210 [ 52.978620][ C3] kernel_init_freeable+0x72/0x310 [ 52.978791][ C3] kernel_init+0x20/0x200 [ 52.978958][ C3] ret_from_fork+0x31/0x70 [ 52.979128][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.979294][ C3] } [ 52.979363][ C3] ... key at: [] __key.388+0x0/0x40 [ 52.979563][ C3] ... acquired at: [ 52.979660][ C3] __lock_acquire+0xaf0/0x1570 [ 52.979798][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.979930][ C3] _raw_spin_lock+0x30/0x40 [ 52.980064][ C3] __get_task_comm+0x27/0x70 [ 52.980201][ C3] ref_tracker_alloc+0x2ee/0x490 [ 52.980336][ C3] netdev_get_by_index+0x5e/0x80 [ 52.980471][ C3] fib6_nh_init+0x3d8/0x1580 [ 52.980606][ C3] ip6_route_info_create+0xf18/0x17d0 [ 52.980738][ C3] ip6_route_add+0x1c/0x140 [ 52.980873][ C3] addrconf_prefix_route+0x2a6/0x430 [ 52.981007][ C3] addrconf_permanent_addr+0x32f/0x670 [ 52.981139][ C3] addrconf_notify+0x749/0xd60 [ 52.981271][ C3] notifier_call_chain+0xcd/0x150 [ 52.981410][ C3] __dev_notify_flags+0xe6/0x250 [ 52.981546][ C3] dev_change_flags+0xec/0x160 [ 52.981679][ C3] do_setlink+0x7d6/0x21e0 [ 52.981812][ C3] __rtnl_newlink+0xaa7/0xd80 [ 52.981947][ C3] rtnl_newlink+0x63/0xa0 [ 52.982083][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.982215][ C3] netlink_rcv_skb+0x130/0x360 [ 52.982350][ C3] netlink_unicast+0x449/0x710 [ 52.982482][ C3] netlink_sendmsg+0x723/0xbe0 [ 52.982693][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 52.982826][ C3] ___sys_sendmsg+0xee/0x170 [ 52.982957][ C3] __sys_sendmsg+0xcd/0x170 [ 52.983088][ C3] do_syscall_64+0xc6/0x1e0 [ 52.983369][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.983535][ C3] [ 52.983605][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 52.983741][ C3] HARDIRQ-ON-W at: [ 52.983840][ C3] __lock_acquire+0x797/0x1570 [ 52.984086][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.984252][ C3] _raw_write_lock_bh+0x38/0x50 [ 52.984418][ C3] addrconf_permanent_addr+0x6e/0x670 [ 52.984669][ C3] addrconf_notify+0x749/0xd60 [ 52.984833][ C3] notifier_call_chain+0xcd/0x150 [ 52.984997][ C3] __dev_notify_flags+0xe6/0x250 [ 52.985164][ C3] dev_change_flags+0xec/0x160 [ 52.985406][ C3] do_setlink+0x7d6/0x21e0 [ 52.985571][ C3] __rtnl_newlink+0xaa7/0xd80 [ 52.985741][ C3] rtnl_newlink+0x63/0xa0 [ 52.985982][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.986145][ C3] netlink_rcv_skb+0x130/0x360 [ 52.986312][ C3] netlink_unicast+0x449/0x710 [ 52.986481][ C3] netlink_sendmsg+0x723/0xbe0 [ 52.986750][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 52.986915][ C3] ___sys_sendmsg+0xee/0x170 [ 52.987090][ C3] __sys_sendmsg+0xcd/0x170 [ 52.987259][ C3] do_syscall_64+0xc6/0x1e0 [ 52.987424][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.987628][ C3] HARDIRQ-ON-R at: [ 52.987728][ C3] __lock_acquire+0x797/0x1570 [ 52.987894][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.988058][ C3] _raw_read_lock_bh+0x44/0x80 [ 52.988227][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 52.988469][ C3] inet6_fill_link_af+0x5e/0xe0 [ 52.988634][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 52.988798][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 52.989043][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 52.989243][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 52.989411][ C3] register_netdevice+0x1177/0x1690 [ 52.989577][ C3] register_netdev+0x20/0x40 [ 52.989819][ C3] vti6_init_net+0x25d/0x380 [ 52.989987][ C3] ops_init+0x9b/0x560 [ 52.990121][ C3] register_pernet_operations+0x2db/0x710 [ 52.990393][ C3] register_pernet_device+0x2a/0x60 [ 52.990561][ C3] vti6_tunnel_init+0x18/0x110 [ 52.990729][ C3] do_one_initcall+0x8d/0x1e0 [ 52.990969][ C3] do_initcalls+0x1b2/0x3e0 [ 52.991134][ C3] kernel_init_freeable+0x232/0x310 [ 52.991300][ C3] kernel_init+0x20/0x200 [ 52.991477][ C3] ret_from_fork+0x31/0x70 [ 52.991751][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.991918][ C3] IN-SOFTIRQ-W at: [ 52.992018][ C3] __lock_acquire+0x797/0x1570 [ 52.992187][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.992353][ C3] _raw_write_lock+0x30/0x40 [ 52.992521][ C3] addrconf_rs_timer+0xa9/0x730 [ 52.992686][ C3] call_timer_fn+0x13b/0x230 [ 52.992858][ C3] __run_timers+0x545/0x810 [ 52.993024][ C3] run_timer_softirq+0xe8/0x1b0 [ 52.993190][ C3] __do_softirq+0x1f8/0x5df [ 52.993518][ C3] irq_exit_rcu+0x97/0xc0 [ 52.993685][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.993883][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.994087][ C3] default_idle+0xf/0x20 [ 52.994254][ C3] default_idle_call+0x6d/0xb0 [ 52.994420][ C3] cpuidle_idle_call+0x1f4/0x280 [ 52.994588][ C3] do_idle+0xf9/0x160 [ 52.994799][ C3] cpu_startup_entry+0x54/0x60 [ 52.994967][ C3] start_secondary+0x21c/0x2b0 [ 52.995139][ C3] common_startup_64+0x12c/0x138 [ 52.995385][ C3] INITIAL USE at: [ 52.995485][ C3] __lock_acquire+0x797/0x1570 [ 52.995655][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.995835][ C3] _raw_write_lock_bh+0x38/0x50 [ 52.996079][ C3] addrconf_permanent_addr+0x6e/0x670 [ 52.996246][ C3] addrconf_notify+0x749/0xd60 [ 52.996413][ C3] notifier_call_chain+0xcd/0x150 [ 52.996582][ C3] __dev_notify_flags+0xe6/0x250 [ 52.996824][ C3] dev_change_flags+0xec/0x160 [ 52.996989][ C3] do_setlink+0x7d6/0x21e0 [ 52.997155][ C3] __rtnl_newlink+0xaa7/0xd80 [ 52.997394][ C3] rtnl_newlink+0x63/0xa0 [ 52.997561][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.997729][ C3] netlink_rcv_skb+0x130/0x360 [ 52.997972][ C3] netlink_unicast+0x449/0x710 [ 52.998139][ C3] netlink_sendmsg+0x723/0xbe0 [ 52.998306][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 52.998473][ C3] ___sys_sendmsg+0xee/0x170 [ 52.998737][ C3] __sys_sendmsg+0xcd/0x170 [ 52.998905][ C3] do_syscall_64+0xc6/0x1e0 [ 52.999076][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.999278][ C3] INITIAL READ USE at: [ 52.999378][ C3] __lock_acquire+0x797/0x1570 [ 52.999575][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.999742][ C3] _raw_read_lock_bh+0x44/0x80 [ 52.999909][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 53.000110][ C3] inet6_fill_link_af+0x5e/0xe0 [ 53.000275][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 53.000518][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 53.000720][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 53.000917][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 53.001155][ C3] register_netdevice+0x1177/0x1690 [ 53.001364][ C3] register_netdev+0x20/0x40 [ 53.001529][ C3] vti6_init_net+0x25d/0x380 [ 53.001769][ C3] ops_init+0x9b/0x560 [ 53.001934][ C3] register_pernet_operations+0x2db/0x710 [ 53.002131][ C3] register_pernet_device+0x2a/0x60 [ 53.002403][ C3] vti6_tunnel_init+0x18/0x110 [ 53.002572][ C3] do_one_initcall+0x8d/0x1e0 [ 53.002740][ C3] do_initcalls+0x1b2/0x3e0 [ 53.002906][ C3] kernel_init_freeable+0x232/0x310 [ 53.003179][ C3] kernel_init+0x20/0x200 [ 53.003345][ C3] ret_from_fork+0x31/0x70 [ 53.003511][ C3] ret_from_fork_asm+0x1a/0x30 [ 53.003828][ C3] } [ 53.003895][ C3] ... key at: [] __key.37+0x0/0x40 [ 53.004093][ C3] ... acquired at: [ 53.004190][ C3] mark_lock+0x28d/0x3e0 [ 53.004395][ C3] mark_usage+0xd9/0x2a0 [ 53.004526][ C3] __lock_acquire+0x797/0x1570 [ 53.004659][ C3] lock_acquire.part.0+0xeb/0x330 [ 53.004790][ C3] _raw_write_lock+0x30/0x40 [ 53.004997][ C3] addrconf_rs_timer+0xa9/0x730 [ 53.005128][ C3] call_timer_fn+0x13b/0x230 [ 53.005259][ C3] __run_timers+0x545/0x810 [ 53.005389][ C3] run_timer_softirq+0xe8/0x1b0 [ 53.005522][ C3] __do_softirq+0x1f8/0x5df [ 53.005729][ C3] irq_exit_rcu+0x97/0xc0 [ 53.005859][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 53.006024][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 53.006265][ C3] default_idle+0xf/0x20 [ 53.006394][ C3] default_idle_call+0x6d/0xb0 [ 53.006525][ C3] cpuidle_idle_call+0x1f4/0x280 [ 53.006657][ C3] do_idle+0xf9/0x160 [ 53.006757][ C3] cpu_startup_entry+0x54/0x60 [ 53.006962][ C3] start_secondary+0x21c/0x2b0 [ 53.007093][ C3] common_startup_64+0x12c/0x138 [ 53.007225][ C3] [ 53.007290][ C3] [ 53.007290][ C3] stack backtrace: [ 53.007553][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 53.007751][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 53.008041][ C3] Call Trace: [ 53.008152][ C3] [ 53.008222][ C3] dump_stack_lvl+0x82/0xd0 [ 53.008358][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 53.008525][ C3] ? kernel_text_address+0x17/0xe0 [ 53.008663][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 53.008828][ C3] ? __pfx_usage_skip+0x10/0x10 [ 53.008960][ C3] ? __pfx_usage_match+0x10/0x10 [ 53.009090][ C3] ? arch_stack_walk+0x8c/0xf0 [ 53.009225][ C3] mark_lock_irq+0x4cd/0xa10 [ 53.009364][ C3] ? common_startup_64+0x12c/0x138 [ 53.009496][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 53.009628][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 53.009765][ C3] ? save_trace+0x8f/0x5b0 [ 53.009973][ C3] mark_lock+0x28d/0x3e0 [ 53.010073][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 53.010203][ C3] mark_usage+0xd9/0x2a0 [ 53.010303][ C3] __lock_acquire+0x797/0x1570 [ 53.010436][ C3] ? __pfx_validate_chain+0x10/0x10 [ 53.010675][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 53.010806][ C3] lock_acquire.part.0+0xeb/0x330 [ 53.010941][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 53.011071][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 53.011206][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 53.011342][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 53.011472][ C3] ? lock_acquire+0x32/0xc0 [ 53.011604][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 53.011736][ C3] _raw_write_lock+0x30/0x40 [ 53.011867][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 53.012000][ C3] addrconf_rs_timer+0xa9/0x730 [ 53.012131][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 53.012264][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 53.012396][ C3] ? call_timer_fn+0xe8/0x230 [ 53.012528][ C3] ? lock_acquire+0x32/0xc0 [ 53.012660][ C3] ? call_timer_fn+0xe8/0x230 [ 53.012794][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 53.012997][ C3] call_timer_fn+0x13b/0x230 [ 53.013127][ C3] ? call_timer_fn+0xe8/0x230 [ 53.013263][ C3] ? call_timer_fn+0xe8/0x230 [ 53.013396][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 53.013714][ C3] ? mark_lock+0x38/0x3e0 [ 53.013817][ C3] __run_timers+0x545/0x810 [ 53.013948][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 53.014080][ C3] ? __pfx___run_timers+0x10/0x10 [ 53.014213][ C3] ? do_raw_spin_lock+0x131/0x270 [ 53.014343][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 53.014477][ C3] ? lock_acquire+0x32/0xc0 [ 53.014609][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 53.014746][ C3] run_timer_softirq+0xe8/0x1b0 [ 53.014878][ C3] __do_softirq+0x1f8/0x5df [ 53.015012][ C3] irq_exit_rcu+0x97/0xc0 [ 53.015111][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 53.015244][ C3] [ 53.015313][ C3] [ 53.015379][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 53.015545][ C3] RIP: 0010:default_idle+0xf/0x20 [ 53.015682][ C3] 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 [ 53.016222][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 53.016393][ C3] RAX: 00000000000fb243 RBX: 1ffff9200002dfc1 RCX: ffffffffa6932ea5 [ 53.016665][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa40ac1d4 [ 53.016865][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 53.017061][ C3] R10: ffff8880361b84e3 R11: 1ffff110003ab34c R12: 0000000000000000 [ 53.017333][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 53.017531][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 53.017662][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 53.017796][ C3] default_idle_call+0x6d/0xb0 [ 53.018000][ C3] cpuidle_idle_call+0x1f4/0x280 [ 53.018130][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 53.018260][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 53.018392][ C3] do_idle+0xf9/0x160 [ 53.018588][ C3] cpu_startup_entry+0x54/0x60 [ 53.018720][ C3] start_secondary+0x21c/0x2b0 [ 53.018851][ C3] ? __pfx_start_secondary+0x10/0x10 [ 53.018986][ C3] common_startup_64+0x12c/0x138 [ 53.019123][ C3]