[ 24.835531][ T264] ip (264) used greatest stack depth: 24064 bytes left [ 30.358838][ C2] [ 30.358980][ C2] ======================================================== [ 30.359298][ C2] WARNING: possible irq lock inversion dependency detected [ 30.359609][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 30.359814][ C2] -------------------------------------------------------- [ 30.360117][ C2] swapper/2/0 just changed the state of lock: [ 30.360375][ C2] ffff888005893d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 30.360743][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 30.361050][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 30.361058][ C2] [ 30.361058][ C2] [ 30.361058][ C2] and interrupts could create inverse lock ordering between them. [ 30.361058][ C2] [ 30.361822][ C2] [ 30.361822][ C2] other info that might help us debug this: [ 30.362129][ C2] Possible interrupt unsafe locking scenario: [ 30.362129][ C2] [ 30.362431][ C2] CPU0 CPU1 [ 30.362638][ C2] ---- ---- [ 30.362848][ C2] lock(&p->alloc_lock); [ 30.363024][ C2] local_irq_disable(); [ 30.363287][ C2] lock(&ndev->lock); [ 30.363542][ C2] lock(&p->alloc_lock); [ 30.363808][ C2] [ 30.363962][ C2] lock(&ndev->lock); [ 30.364122][ C2] [ 30.364122][ C2] *** DEADLOCK *** [ 30.364122][ C2] [ 30.364427][ C2] 1 lock held by swapper/2/0: [ 30.364646][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 30.365043][ C2] [ 30.365043][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 30.365418][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 30.365645][ C2] HARDIRQ-ON-W at: [ 30.365810][ C2] __lock_acquire+0x797/0x1570 [ 30.366081][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.366347][ C2] _raw_spin_lock+0x30/0x40 [ 30.366615][ C2] set_mems_allowed+0x1d/0x210 [ 30.366882][ C2] kernel_init_freeable+0x72/0x310 [ 30.367151][ C2] kernel_init+0x20/0x200 [ 30.367416][ C2] ret_from_fork+0x31/0x70 [ 30.367683][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.367949][ C2] SOFTIRQ-ON-W at: [ 30.368106][ C2] __lock_acquire+0x797/0x1570 [ 30.368378][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.368647][ C2] _raw_spin_lock+0x30/0x40 [ 30.368915][ C2] set_mems_allowed+0x1d/0x210 [ 30.369179][ C2] kernel_init_freeable+0x72/0x310 [ 30.369453][ C2] kernel_init+0x20/0x200 [ 30.369718][ C2] ret_from_fork+0x31/0x70 [ 30.369989][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.370254][ C2] INITIAL USE at: [ 30.370413][ C2] __lock_acquire+0x797/0x1570 [ 30.370660][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.370920][ C2] _raw_spin_lock+0x30/0x40 [ 30.371180][ C2] set_mems_allowed+0x1d/0x210 [ 30.371438][ C2] kernel_init_freeable+0x72/0x310 [ 30.371678][ C2] kernel_init+0x20/0x200 [ 30.371945][ C2] ret_from_fork+0x31/0x70 [ 30.372216][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.372496][ C2] } [ 30.372609][ C2] ... key at: [] __key.388+0x0/0x40 [ 30.372937][ C2] ... acquired at: [ 30.373099][ C2] __lock_acquire+0xaf0/0x1570 [ 30.373321][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.373534][ C2] _raw_spin_lock+0x30/0x40 [ 30.373752][ C2] __get_task_comm+0x27/0x70 [ 30.373973][ C2] ref_tracker_alloc+0x2ee/0x490 [ 30.374188][ C2] netdev_get_by_index+0x5e/0x80 [ 30.374401][ C2] fib6_nh_init+0x3d8/0x1580 [ 30.374584][ C2] ip6_route_info_create+0xf18/0x17d0 [ 30.374781][ C2] ip6_route_add+0x1c/0x140 [ 30.374997][ C2] addrconf_prefix_route+0x2a6/0x430 [ 30.375205][ C2] addrconf_permanent_addr+0x32f/0x670 [ 30.375408][ C2] addrconf_notify+0x749/0xd60 [ 30.375615][ C2] notifier_call_chain+0xcd/0x150 [ 30.375819][ C2] __dev_notify_flags+0xe6/0x250 [ 30.376027][ C2] dev_change_flags+0xec/0x160 [ 30.376232][ C2] do_setlink+0x7d6/0x21e0 [ 30.376445][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.376669][ C2] rtnl_newlink+0x63/0xa0 [ 30.376886][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.377103][ C2] netlink_rcv_skb+0x130/0x360 [ 30.377321][ C2] netlink_unicast+0x449/0x710 [ 30.377535][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.377758][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.377974][ C2] ___sys_sendmsg+0xee/0x170 [ 30.378184][ C2] __sys_sendmsg+0xcd/0x170 [ 30.378404][ C2] do_syscall_64+0xc6/0x1e0 [ 30.378625][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.378893][ C2] [ 30.379009][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 30.379238][ C2] HARDIRQ-ON-W at: [ 30.379415][ C2] __lock_acquire+0x797/0x1570 [ 30.379693][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.379960][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.380234][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.380502][ C2] addrconf_notify+0x749/0xd60 [ 30.380756][ C2] notifier_call_chain+0xcd/0x150 [ 30.381013][ C2] __dev_notify_flags+0xe6/0x250 [ 30.381270][ C2] dev_change_flags+0xec/0x160 [ 30.381528][ C2] do_setlink+0x7d6/0x21e0 [ 30.381787][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.382048][ C2] rtnl_newlink+0x63/0xa0 [ 30.382306][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.382559][ C2] netlink_rcv_skb+0x130/0x360 [ 30.382816][ C2] netlink_unicast+0x449/0x710 [ 30.383075][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.383328][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.383582][ C2] ___sys_sendmsg+0xee/0x170 [ 30.383842][ C2] __sys_sendmsg+0xcd/0x170 [ 30.384096][ C2] do_syscall_64+0xc6/0x1e0 [ 30.384353][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.384662][ C2] HARDIRQ-ON-R at: [ 30.384815][ C2] __lock_acquire+0x797/0x1570 [ 30.385069][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.385327][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.385599][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.385874][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.386149][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.386424][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.386679][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.386987][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.387248][ C2] register_netdevice+0x1177/0x1690 [ 30.387514][ C2] register_netdev+0x20/0x40 [ 30.387681][ C2] vti6_init_net+0x25d/0x380 [ 30.387850][ C2] ops_init+0x9b/0x560 [ 30.387989][ C2] register_pernet_operations+0x2db/0x710 [ 30.388188][ C2] register_pernet_device+0x2a/0x60 [ 30.388358][ C2] vti6_tunnel_init+0x18/0x110 [ 30.388535][ C2] do_one_initcall+0x8d/0x1e0 [ 30.388702][ C2] do_initcalls+0x1b2/0x3e0 [ 30.388872][ C2] kernel_init_freeable+0x232/0x310 [ 30.389038][ C2] kernel_init+0x20/0x200 [ 30.389206][ C2] ret_from_fork+0x31/0x70 [ 30.389395][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.389650][ C2] IN-SOFTIRQ-W at: [ 30.389756][ C2] __lock_acquire+0x797/0x1570 [ 30.389924][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.390091][ C2] _raw_write_lock+0x30/0x40 [ 30.390258][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.390432][ C2] call_timer_fn+0x13b/0x230 [ 30.390605][ C2] __run_timers+0x545/0x810 [ 30.390772][ C2] timer_expire_remote+0x9b/0xe0 [ 30.390940][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.391107][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.391273][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.391451][ C2] __do_softirq+0x1f8/0x5df [ 30.391622][ C2] irq_exit_rcu+0x97/0xc0 [ 30.391788][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.391989][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.392188][ C2] default_idle+0xf/0x20 [ 30.392356][ C2] default_idle_call+0x6d/0xb0 [ 30.392528][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.392803][ C2] do_idle+0xf9/0x160 [ 30.392938][ C2] cpu_startup_entry+0x54/0x60 [ 30.393104][ C2] start_secondary+0x21c/0x2b0 [ 30.393274][ C2] common_startup_64+0x12c/0x138 [ 30.393449][ C2] INITIAL USE at: [ 30.393549][ C2] __lock_acquire+0x797/0x1570 [ 30.393716][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.393888][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.394061][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.394231][ C2] addrconf_notify+0x749/0xd60 [ 30.394413][ C2] notifier_call_chain+0xcd/0x150 [ 30.394839][ C2] __dev_notify_flags+0xe6/0x250 [ 30.395116][ C2] dev_change_flags+0xec/0x160 [ 30.395390][ C2] do_setlink+0x7d6/0x21e0 [ 30.395668][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.395938][ C2] rtnl_newlink+0x63/0xa0 [ 30.396204][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.396451][ C2] netlink_rcv_skb+0x130/0x360 [ 30.396620][ C2] netlink_unicast+0x449/0x710 [ 30.396790][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.396959][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.397207][ C2] ___sys_sendmsg+0xee/0x170 [ 30.397376][ C2] __sys_sendmsg+0xcd/0x170 [ 30.397552][ C2] do_syscall_64+0xc6/0x1e0 [ 30.397721][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.397999][ C2] INITIAL READ USE at: [ 30.398101][ C2] __lock_acquire+0x797/0x1570 [ 30.398271][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.398527][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.398697][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.398896][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.399144][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.399323][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.399570][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.399850][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.400016][ C2] register_netdevice+0x1177/0x1690 [ 30.400215][ C2] register_netdev+0x20/0x40 [ 30.400388][ C2] vti6_init_net+0x25d/0x380 [ 30.400642][ C2] ops_init+0x9b/0x560 [ 30.400809][ C2] register_pernet_operations+0x2db/0x710 [ 30.401008][ C2] register_pernet_device+0x2a/0x60 [ 30.401366][ C2] vti6_tunnel_init+0x18/0x110 [ 30.401541][ C2] do_one_initcall+0x8d/0x1e0 [ 30.401711][ C2] do_initcalls+0x1b2/0x3e0 [ 30.401960][ C2] kernel_init_freeable+0x232/0x310 [ 30.402158][ C2] kernel_init+0x20/0x200 [ 30.402324][ C2] ret_from_fork+0x31/0x70 [ 30.402577][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.402743][ C2] } [ 30.402811][ C2] ... key at: [] __key.37+0x0/0x40 [ 30.403009][ C2] ... acquired at: [ 30.403185][ C2] mark_lock+0x28d/0x3e0 [ 30.403319][ C2] mark_usage+0xd9/0x2a0 [ 30.403458][ C2] __lock_acquire+0x797/0x1570 [ 30.403593][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.403725][ C2] _raw_write_lock+0x30/0x40 [ 30.403940][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.404072][ C2] call_timer_fn+0x13b/0x230 [ 30.404206][ C2] __run_timers+0x545/0x810 [ 30.404338][ C2] timer_expire_remote+0x9b/0xe0 [ 30.404563][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.404696][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.404829][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.404961][ C2] __do_softirq+0x1f8/0x5df [ 30.405172][ C2] irq_exit_rcu+0x97/0xc0 [ 30.405304][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.405481][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.405649][ C2] default_idle+0xf/0x20 [ 30.405870][ C2] default_idle_call+0x6d/0xb0 [ 30.406002][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.406135][ C2] do_idle+0xf9/0x160 [ 30.406235][ C2] cpu_startup_entry+0x54/0x60 [ 30.406374][ C2] start_secondary+0x21c/0x2b0 [ 30.406514][ C2] common_startup_64+0x12c/0x138 [ 30.406646][ C2] [ 30.406712][ C2] [ 30.406712][ C2] stack backtrace: [ 30.406878][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 30.407084][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.407380][ C2] Call Trace: [ 30.407490][ C2] [ 30.407637][ C2] dump_stack_lvl+0x82/0xd0 [ 30.407772][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.407936][ C2] ? kernel_text_address+0x17/0xe0 [ 30.408073][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.408317][ C2] ? __pfx_usage_skip+0x10/0x10 [ 30.408456][ C2] ? __pfx_usage_match+0x10/0x10 [ 30.408587][ C2] ? arch_stack_walk+0x8c/0xf0 [ 30.408719][ C2] mark_lock_irq+0x4cd/0xa10 [ 30.408929][ C2] ? common_startup_64+0x12c/0x138 [ 30.409061][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.409196][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.409337][ C2] ? save_trace+0x8f/0x5b0 [ 30.409675][ C2] mark_lock+0x28d/0x3e0 [ 30.409843][ C2] mark_usage+0xd9/0x2a0 [ 30.409948][ C2] __lock_acquire+0x797/0x1570 [ 30.410081][ C2] ? hlock_class+0x4e/0x130 [ 30.410216][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.410433][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.410565][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.410699][ C2] ? ct_nmi_exit+0x85/0x100 [ 30.410830][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.411042][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 30.411174][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.411307][ C2] ? lock_acquire+0x32/0xc0 [ 30.411449][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.411581][ C2] _raw_write_lock+0x30/0x40 [ 30.411876][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.412007][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.412140][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.412275][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.412415][ C2] ? call_timer_fn+0xe8/0x230 [ 30.412546][ C2] ? lock_acquire+0x32/0xc0 [ 30.412678][ C2] ? call_timer_fn+0xe8/0x230 [ 30.412810][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.412941][ C2] call_timer_fn+0x13b/0x230 [ 30.413082][ C2] ? call_timer_fn+0xe8/0x230 [ 30.413216][ C2] ? call_timer_fn+0xe8/0x230 [ 30.413347][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 30.413565][ C2] ? mark_lock+0x38/0x3e0 [ 30.413669][ C2] __run_timers+0x545/0x810 [ 30.413801][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.413934][ C2] ? __pfx___run_timers+0x10/0x10 [ 30.414067][ C2] ? __lock_release+0x103/0x460 [ 30.414276][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.414415][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.414550][ C2] ? lock_acquire+0x32/0xc0 [ 30.414681][ C2] ? timer_expire_remote+0x93/0xe0 [ 30.414892][ C2] timer_expire_remote+0x9b/0xe0 [ 30.415032][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.415164][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 30.415330][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.415546][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.415681][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 30.415815][ C2] __do_softirq+0x1f8/0x5df [ 30.415951][ C2] irq_exit_rcu+0x97/0xc0 [ 30.416050][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.416259][ C2] [ 30.416327][ C2] [ 30.416398][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.416562][ C2] RIP: 0010:default_idle+0xf/0x20 [ 30.416700][ 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.417254][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 30.417430][ C2] RAX: 00000000000cb4f5 RBX: 1ffff9200002bfc1 RCX: ffffffff86332ea5 [ 30.417630][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83aac1d4 [ 30.417833][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 30.418111][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 30.418308][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 30.418513][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.418726][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 30.418858][ C2] default_idle_call+0x6d/0xb0 [ 30.418998][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.419129][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.419345][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.419502][ C2] do_idle+0xf9/0x160 [ 30.419604][ C2] cpu_startup_entry+0x54/0x60 [ 30.419738][ C2] start_secondary+0x21c/0x2b0 [ 30.419870][ C2] ? __pfx_start_secondary+0x10/0x10 [ 30.420080][ C2] common_startup_64+0x12c/0x138 [ 30.420217][ C2]