[ 23.202439][ T237] ip (237) used greatest stack depth: 23968 bytes left [ 24.674594][ T249] ip (249) used greatest stack depth: 22752 bytes left [ 31.053597][ T294] Initializing XFRM netlink socket [ 31.785421][ C2] [ 31.785520][ C2] ======================================================== [ 31.785717][ C2] WARNING: possible irq lock inversion dependency detected [ 31.785907][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.786033][ C2] -------------------------------------------------------- [ 31.786226][ C2] swapper/2/0 just changed the state of lock: [ 31.786396][ C2] ffff888007f3bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.786652][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.786857][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.786861][ C2] [ 31.786861][ C2] [ 31.786861][ C2] and interrupts could create inverse lock ordering between them. [ 31.786861][ C2] [ 31.787322][ C2] [ 31.787322][ C2] other info that might help us debug this: [ 31.787513][ C2] Possible interrupt unsafe locking scenario: [ 31.787513][ C2] [ 31.787707][ C2] CPU0 CPU1 [ 31.787836][ C2] ---- ---- [ 31.787966][ C2] lock(&p->alloc_lock); [ 31.788070][ C2] local_irq_disable(); [ 31.788229][ C2] lock(&ndev->lock); [ 31.788390][ C2] lock(&p->alloc_lock); [ 31.788549][ C2] [ 31.788648][ C2] lock(&ndev->lock); [ 31.788746][ C2] [ 31.788746][ C2] *** DEADLOCK *** [ 31.788746][ C2] [ 31.788930][ C2] 1 lock held by swapper/2/0: [ 31.789062][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.789294][ C2] [ 31.789294][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.789513][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.789647][ C2] HARDIRQ-ON-W at: [ 31.789748][ C2] __lock_acquire+0x797/0x1570 [ 31.789915][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.790082][ C2] _raw_spin_lock+0x30/0x40 [ 31.790245][ C2] set_mems_allowed+0x1d/0x210 [ 31.790412][ C2] kernel_init_freeable+0x72/0x310 [ 31.790574][ C2] kernel_init+0x20/0x200 [ 31.790736][ C2] ret_from_fork+0x31/0x70 [ 31.790899][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.791063][ C2] SOFTIRQ-ON-W at: [ 31.791160][ C2] __lock_acquire+0x797/0x1570 [ 31.791322][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.791485][ C2] _raw_spin_lock+0x30/0x40 [ 31.791647][ C2] set_mems_allowed+0x1d/0x210 [ 31.791809][ C2] kernel_init_freeable+0x72/0x310 [ 31.791974][ C2] kernel_init+0x20/0x200 [ 31.792141][ C2] ret_from_fork+0x31/0x70 [ 31.792308][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.792472][ C2] INITIAL USE at: [ 31.792579][ C2] __lock_acquire+0x797/0x1570 [ 31.792741][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.792905][ C2] _raw_spin_lock+0x30/0x40 [ 31.793067][ C2] set_mems_allowed+0x1d/0x210 [ 31.793305][ C2] kernel_init_freeable+0x72/0x310 [ 31.793470][ C2] kernel_init+0x20/0x200 [ 31.793631][ C2] ret_from_fork+0x31/0x70 [ 31.793868][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.794030][ C2] } [ 31.794099][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.794297][ C2] ... acquired at: [ 31.794398][ C2] __lock_acquire+0xaf0/0x1570 [ 31.794601][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.794729][ C2] _raw_spin_lock+0x30/0x40 [ 31.794859][ C2] __get_task_comm+0x27/0x70 [ 31.794990][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.795194][ C2] netdev_get_by_index+0x5e/0x80 [ 31.795325][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.795456][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.795583][ C2] addrconf_f6i_alloc+0x265/0x560 [ 31.795783][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.795914][ C2] addrconf_join_anycast+0x1c0/0x220 [ 31.796044][ C2] dev_forward_change+0x2a6/0x7b0 [ 31.796172][ C2] addrconf_fixup_forwarding+0x152/0x460 [ 31.796410][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 31.796539][ C2] proc_sys_call_handler+0x403/0x5e0 [ 31.796669][ C2] vfs_write+0x9e5/0x10a0 [ 31.796798][ C2] ksys_write+0xf5/0x1e0 [ 31.796928][ C2] do_syscall_64+0xc6/0x1e0 [ 31.797059][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.797220][ C2] [ 31.797286][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.797419][ C2] HARDIRQ-ON-W at: [ 31.797594][ C2] __lock_acquire+0x797/0x1570 [ 31.797757][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.797920][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.798082][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.798319][ C2] addrconf_notify+0x749/0xd60 [ 31.798483][ C2] notifier_call_chain+0xcd/0x150 [ 31.798647][ C2] __dev_notify_flags+0xe6/0x250 [ 31.798886][ C2] dev_change_flags+0xec/0x160 [ 31.799048][ C2] do_setlink+0x7d6/0x21e0 [ 31.799209][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.799456][ C2] rtnl_newlink+0x63/0xa0 [ 31.799619][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.799782][ C2] netlink_rcv_skb+0x130/0x360 [ 31.799946][ C2] netlink_unicast+0x449/0x710 [ 31.800108][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.800271][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.800436][ C2] ___sys_sendmsg+0xee/0x170 [ 31.800747][ C2] __sys_sendmsg+0xcd/0x170 [ 31.800919][ C2] do_syscall_64+0xc6/0x1e0 [ 31.801083][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.801352][ C2] HARDIRQ-ON-R at: [ 31.801450][ C2] __lock_acquire+0x797/0x1570 [ 31.801612][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.801776][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.802019][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.802180][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.802342][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.802510][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.802749][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.802944][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.803105][ C2] register_netdevice+0x1177/0x1690 [ 31.803342][ C2] register_netdev+0x20/0x40 [ 31.803509][ C2] vti6_init_net+0x25d/0x380 [ 31.803673][ C2] ops_init+0x9b/0x560 [ 31.803878][ C2] register_pernet_operations+0x2db/0x710 [ 31.804071][ C2] register_pernet_device+0x2a/0x60 [ 31.804233][ C2] vti6_tunnel_init+0x18/0x110 [ 31.804399][ C2] do_one_initcall+0x8d/0x1e0 [ 31.804638][ C2] do_initcalls+0x1b2/0x3e0 [ 31.804802][ C2] kernel_init_freeable+0x232/0x310 [ 31.804965][ C2] kernel_init+0x20/0x200 [ 31.805202][ C2] ret_from_fork+0x31/0x70 [ 31.805367][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.805539][ C2] IN-SOFTIRQ-W at: [ 31.805640][ C2] __lock_acquire+0x797/0x1570 [ 31.805890][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.806059][ C2] _raw_write_lock+0x30/0x40 [ 31.806227][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.806478][ C2] call_timer_fn+0x13b/0x230 [ 31.806658][ C2] __run_timers+0x545/0x810 [ 31.806826][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.806997][ C2] __do_softirq+0x1f8/0x5df [ 31.807165][ C2] irq_exit_rcu+0x97/0xc0 [ 31.807333][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.807540][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.807814][ C2] default_idle+0xf/0x20 [ 31.807981][ C2] default_idle_call+0x6d/0xb0 [ 31.808150][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.808395][ C2] do_idle+0xf9/0x160 [ 31.808532][ C2] cpu_startup_entry+0x54/0x60 [ 31.808699][ C2] start_secondary+0x21c/0x2b0 [ 31.808868][ C2] common_startup_64+0x12c/0x138 [ 31.809110][ C2] INITIAL USE at: [ 31.809210][ C2] __lock_acquire+0x797/0x1570 [ 31.809380][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.809628][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.809795][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.809962][ C2] addrconf_notify+0x749/0xd60 [ 31.810129][ C2] notifier_call_chain+0xcd/0x150 [ 31.810376][ C2] __dev_notify_flags+0xe6/0x250 [ 31.810546][ C2] dev_change_flags+0xec/0x160 [ 31.810714][ C2] do_setlink+0x7d6/0x21e0 [ 31.811029][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.811196][ C2] rtnl_newlink+0x63/0xa0 [ 31.811362][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.811533][ C2] netlink_rcv_skb+0x130/0x360 [ 31.811774][ C2] netlink_unicast+0x449/0x710 [ 31.811944][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.812112][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.812353][ C2] ___sys_sendmsg+0xee/0x170 [ 31.812530][ C2] __sys_sendmsg+0xcd/0x170 [ 31.812698][ C2] do_syscall_64+0xc6/0x1e0 [ 31.812942][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.813142][ C2] INITIAL READ USE at: [ 31.813244][ C2] __lock_acquire+0x797/0x1570 [ 31.813417][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.813658][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.813826][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.814027][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.814278][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.814451][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.814650][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.814924][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.815092][ C2] register_netdevice+0x1177/0x1690 [ 31.815294][ C2] register_netdev+0x20/0x40 [ 31.815537][ C2] vti6_init_net+0x25d/0x380 [ 31.815706][ C2] ops_init+0x9b/0x560 [ 31.815874][ C2] register_pernet_operations+0x2db/0x710 [ 31.816074][ C2] register_pernet_device+0x2a/0x60 [ 31.816352][ C2] vti6_tunnel_init+0x18/0x110 [ 31.816521][ C2] do_one_initcall+0x8d/0x1e0 [ 31.816688][ C2] do_initcalls+0x1b2/0x3e0 [ 31.816933][ C2] kernel_init_freeable+0x232/0x310 [ 31.817135][ C2] kernel_init+0x20/0x200 [ 31.817302][ C2] ret_from_fork+0x31/0x70 [ 31.817555][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.817722][ C2] } [ 31.817790][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.817992][ C2] ... acquired at: [ 31.818095][ C2] mark_lock+0x28d/0x3e0 [ 31.818229][ C2] mark_usage+0xd9/0x2a0 [ 31.818363][ C2] __lock_acquire+0x797/0x1570 [ 31.818498][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.818704][ C2] _raw_write_lock+0x30/0x40 [ 31.818838][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.818975][ C2] call_timer_fn+0x13b/0x230 [ 31.819109][ C2] __run_timers+0x545/0x810 [ 31.819244][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.819450][ C2] __do_softirq+0x1f8/0x5df [ 31.819583][ C2] irq_exit_rcu+0x97/0xc0 [ 31.819715][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.819885][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.820123][ C2] default_idle+0xf/0x20 [ 31.820255][ C2] default_idle_call+0x6d/0xb0 [ 31.820388][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.820524][ C2] do_idle+0xf9/0x160 [ 31.820698][ C2] cpu_startup_entry+0x54/0x60 [ 31.820832][ C2] start_secondary+0x21c/0x2b0 [ 31.820968][ C2] common_startup_64+0x12c/0x138 [ 31.821101][ C2] [ 31.821167][ C2] [ 31.821167][ C2] stack backtrace: [ 31.821472][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.821670][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.822040][ C2] Call Trace: [ 31.822144][ C2] [ 31.822213][ C2] dump_stack_lvl+0x82/0xd0 [ 31.822352][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.822529][ C2] ? kernel_text_address+0x17/0xe0 [ 31.822744][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.822915][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.823051][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.823183][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.823393][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.823526][ C2] ? common_startup_64+0x12c/0x138 [ 31.823659][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.823795][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.824003][ C2] ? save_trace+0x8f/0x5b0 [ 31.824137][ C2] mark_lock+0x28d/0x3e0 [ 31.824237][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.824376][ C2] mark_usage+0xd9/0x2a0 [ 31.824478][ C2] __lock_acquire+0x797/0x1570 [ 31.824687][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.824826][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.824957][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.825093][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.825298][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.825435][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.825570][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.825707][ C2] ? lock_acquire+0x32/0xc0 [ 31.825913][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.826046][ C2] _raw_write_lock+0x30/0x40 [ 31.826178][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.826310][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.826517][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.826655][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.826790][ C2] ? call_timer_fn+0xe8/0x230 [ 31.826922][ C2] ? lock_acquire+0x32/0xc0 [ 31.827055][ C2] ? call_timer_fn+0xe8/0x230 [ 31.827260][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.827394][ C2] call_timer_fn+0x13b/0x230 [ 31.827526][ C2] ? call_timer_fn+0xe8/0x230 [ 31.827663][ C2] ? call_timer_fn+0xe8/0x230 [ 31.827869][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.828001][ C2] ? mark_lock+0x38/0x3e0 [ 31.828107][ C2] __run_timers+0x545/0x810 [ 31.828240][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.828464][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.828601][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.828734][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.828867][ C2] ? lock_acquire+0x32/0xc0 [ 31.828999][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 31.829133][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.829269][ C2] __do_softirq+0x1f8/0x5df [ 31.829413][ C2] irq_exit_rcu+0x97/0xc0 [ 31.829514][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.829648][ C2] [ 31.829717][ C2] [ 31.829785][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.829948][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.830086][ 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 [ 31.830645][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.830818][ C2] RAX: 00000000000decff RBX: 1ffff9200002bfc1 RCX: ffffffff8a132ea5 [ 31.831092][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff878ac1d4 [ 31.831297][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 31.831648][ C2] R10: ffff8880361384e3 R11: 1ffff110003ab28c R12: 0000000000000000 [ 31.831847][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.832048][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.832180][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.832388][ C2] default_idle_call+0x6d/0xb0 [ 31.832528][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.832661][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.832797][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.833005][ C2] do_idle+0xf9/0x160 [ 31.833106][ C2] cpu_startup_entry+0x54/0x60 [ 31.833241][ C2] start_secondary+0x21c/0x2b0 [ 31.833380][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.833587][ C2] common_startup_64+0x12c/0x138 [ 31.833723][ C2] WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr