[ 22.780080][ T233] sctp: Hash tables configured (bind 32/56) [ 24.834817][ T248] ip (248) used greatest stack depth: 23424 bytes left [ 29.978534][ C2] [ 29.978626][ C2] ======================================================== [ 29.978831][ C2] WARNING: possible irq lock inversion dependency detected [ 29.979052][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 29.979189][ C2] -------------------------------------------------------- [ 29.979390][ C2] swapper/2/0 just changed the state of lock: [ 29.979556][ C2] ffff8880059ad580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.979795][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.979989][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 29.979993][ C2] [ 29.979993][ C2] [ 29.979993][ C2] and interrupts could create inverse lock ordering between them. [ 29.979993][ C2] [ 29.980479][ C2] [ 29.980479][ C2] other info that might help us debug this: [ 29.980666][ C2] Possible interrupt unsafe locking scenario: [ 29.980666][ C2] [ 29.980855][ C2] CPU0 CPU1 [ 29.980983][ C2] ---- ---- [ 29.981116][ C2] lock(&p->alloc_lock); [ 29.981216][ C2] local_irq_disable(); [ 29.981377][ C2] lock(&ndev->lock); [ 29.981538][ C2] lock(&p->alloc_lock); [ 29.981701][ C2] [ 29.981797][ C2] lock(&ndev->lock); [ 29.981899][ C2] [ 29.981899][ C2] *** DEADLOCK *** [ 29.981899][ C2] [ 29.982107][ C2] 1 lock held by swapper/2/0: [ 29.982243][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.982485][ C2] [ 29.982485][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 29.982712][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.982853][ C2] HARDIRQ-ON-W at: [ 29.982955][ C2] __lock_acquire+0x797/0x1570 [ 29.983128][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.983308][ C2] _raw_spin_lock+0x30/0x40 [ 29.983474][ C2] set_mems_allowed+0x1d/0x210 [ 29.983644][ C2] kernel_init_freeable+0x72/0x310 [ 29.983807][ C2] kernel_init+0x20/0x200 [ 29.983972][ C2] ret_from_fork+0x31/0x70 [ 29.984137][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.984300][ C2] SOFTIRQ-ON-W at: [ 29.984401][ C2] __lock_acquire+0x797/0x1570 [ 29.984570][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.984733][ C2] _raw_spin_lock+0x30/0x40 [ 29.984895][ C2] set_mems_allowed+0x1d/0x210 [ 29.985058][ C2] kernel_init_freeable+0x72/0x310 [ 29.985220][ C2] kernel_init+0x20/0x200 [ 29.985387][ C2] ret_from_fork+0x31/0x70 [ 29.985550][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.985712][ C2] INITIAL USE at: [ 29.985809][ C2] __lock_acquire+0x797/0x1570 [ 29.985972][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.986137][ C2] _raw_spin_lock+0x30/0x40 [ 29.986302][ C2] set_mems_allowed+0x1d/0x210 [ 29.986463][ C2] kernel_init_freeable+0x72/0x310 [ 29.986626][ C2] kernel_init+0x20/0x200 [ 29.986791][ C2] ret_from_fork+0x31/0x70 [ 29.986956][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.987118][ C2] } [ 29.987185][ C2] ... key at: [] __key.388+0x0/0x40 [ 29.987383][ C2] ... acquired at: [ 29.987480][ C2] __lock_acquire+0xaf0/0x1570 [ 29.987613][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.987745][ C2] _raw_spin_lock+0x30/0x40 [ 29.987875][ C2] __get_task_comm+0x27/0x70 [ 29.988008][ C2] ref_tracker_alloc+0x2ee/0x490 [ 29.988138][ C2] netdev_get_by_index+0x5e/0x80 [ 29.988267][ C2] fib6_nh_init+0x3d8/0x1580 [ 29.988401][ C2] ip6_route_info_create+0xf18/0x17d0 [ 29.988536][ C2] ip6_route_add+0x1c/0x140 [ 29.988665][ C2] addrconf_prefix_route+0x2a6/0x430 [ 29.988794][ C2] addrconf_permanent_addr+0x32f/0x670 [ 29.988923][ C2] addrconf_notify+0x749/0xd60 [ 29.989052][ C2] notifier_call_chain+0xcd/0x150 [ 29.989182][ C2] __dev_notify_flags+0xe6/0x250 [ 29.989313][ C2] dev_change_flags+0xec/0x160 [ 29.989446][ C2] do_setlink+0x7d6/0x21e0 [ 29.989575][ C2] __rtnl_newlink+0xaa7/0xd80 [ 29.989704][ C2] rtnl_newlink+0x63/0xa0 [ 29.989833][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.989961][ C2] netlink_rcv_skb+0x130/0x360 [ 29.990092][ C2] netlink_unicast+0x449/0x710 [ 29.990223][ C2] netlink_sendmsg+0x723/0xbe0 [ 29.990352][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 29.990482][ C2] ___sys_sendmsg+0xee/0x170 [ 29.990614][ C2] __sys_sendmsg+0xcd/0x170 [ 29.990744][ C2] do_syscall_64+0xc6/0x1e0 [ 29.990873][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.991038][ C2] [ 29.991103][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 29.991237][ C2] HARDIRQ-ON-W at: [ 29.991335][ C2] __lock_acquire+0x797/0x1570 [ 29.991499][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.991665][ C2] _raw_write_lock_bh+0x38/0x50 [ 29.991834][ C2] addrconf_permanent_addr+0x6e/0x670 [ 29.991998][ C2] addrconf_notify+0x749/0xd60 [ 29.992191][ C2] notifier_call_chain+0xcd/0x150 [ 29.992358][ C2] __dev_notify_flags+0xe6/0x250 [ 29.992525][ C2] dev_change_flags+0xec/0x160 [ 29.992698][ C2] do_setlink+0x7d6/0x21e0 [ 29.992864][ C2] __rtnl_newlink+0xaa7/0xd80 [ 29.993031][ C2] rtnl_newlink+0x63/0xa0 [ 29.993198][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.993374][ C2] netlink_rcv_skb+0x130/0x360 [ 29.993539][ C2] netlink_unicast+0x449/0x710 [ 29.993702][ C2] netlink_sendmsg+0x723/0xbe0 [ 29.993867][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 29.994030][ C2] ___sys_sendmsg+0xee/0x170 [ 29.994193][ C2] __sys_sendmsg+0xcd/0x170 [ 29.994357][ C2] do_syscall_64+0xc6/0x1e0 [ 29.994519][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.994712][ C2] HARDIRQ-ON-R at: [ 29.994810][ C2] __lock_acquire+0x797/0x1570 [ 29.994975][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.995141][ C2] _raw_read_lock_bh+0x44/0x80 [ 29.995303][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.995465][ C2] inet6_fill_link_af+0x5e/0xe0 [ 29.995627][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.995789][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.995956][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.996153][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 29.996315][ C2] register_netdevice+0x1177/0x1690 [ 29.996477][ C2] register_netdev+0x20/0x40 [ 29.996639][ C2] vti6_init_net+0x25d/0x380 [ 29.996807][ C2] ops_init+0x9b/0x560 [ 29.996940][ C2] register_pernet_operations+0x2db/0x710 [ 29.997133][ C2] register_pernet_device+0x2a/0x60 [ 29.997296][ C2] vti6_tunnel_init+0x18/0x110 [ 29.997460][ C2] do_one_initcall+0x8d/0x1e0 [ 29.997629][ C2] do_initcalls+0x1b2/0x3e0 [ 29.997792][ C2] kernel_init_freeable+0x232/0x310 [ 29.997957][ C2] kernel_init+0x20/0x200 [ 29.998121][ C2] ret_from_fork+0x31/0x70 [ 29.998285][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.998451][ C2] IN-SOFTIRQ-W at: [ 29.998549][ C2] __lock_acquire+0x797/0x1570 [ 29.998711][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.998874][ C2] _raw_write_lock+0x30/0x40 [ 29.999040][ C2] addrconf_rs_timer+0xa9/0x730 [ 29.999203][ C2] call_timer_fn+0x13b/0x230 [ 29.999368][ C2] __run_timers+0x545/0x810 [ 29.999531][ C2] timer_expire_remote+0x9b/0xe0 [ 29.999696][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 29.999858][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.000041][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.000212][ C2] __do_softirq+0x1f8/0x5df [ 30.000380][ C2] irq_exit_rcu+0x97/0xc0 [ 30.000547][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.000749][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.000950][ C2] default_idle+0xf/0x20 [ 30.001117][ C2] default_idle_call+0x6d/0xb0 [ 30.001298][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.001461][ C2] do_idle+0xf9/0x160 [ 30.001592][ C2] cpu_startup_entry+0x54/0x60 [ 30.001759][ C2] start_secondary+0x21c/0x2b0 [ 30.001924][ C2] common_startup_64+0x12c/0x138 [ 30.002108][ C2] INITIAL USE at: [ 30.002212][ C2] __lock_acquire+0x797/0x1570 [ 30.002380][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.002549][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.002718][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.002885][ C2] addrconf_notify+0x749/0xd60 [ 30.003134][ C2] notifier_call_chain+0xcd/0x150 [ 30.003312][ C2] __dev_notify_flags+0xe6/0x250 [ 30.003478][ C2] dev_change_flags+0xec/0x160 [ 30.003641][ C2] do_setlink+0x7d6/0x21e0 [ 30.003880][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.004044][ C2] rtnl_newlink+0x63/0xa0 [ 30.004206][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.004466][ C2] netlink_rcv_skb+0x130/0x360 [ 30.004642][ C2] netlink_unicast+0x449/0x710 [ 30.004810][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.004977][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.005221][ C2] ___sys_sendmsg+0xee/0x170 [ 30.005389][ C2] __sys_sendmsg+0xcd/0x170 [ 30.005558][ C2] do_syscall_64+0xc6/0x1e0 [ 30.005804][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.006006][ C2] INITIAL READ USE at: [ 30.006107][ C2] __lock_acquire+0x797/0x1570 [ 30.006274][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.006602][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.006769][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.006968][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.007216][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.007391][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.007586][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.007856][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.008018][ C2] register_netdevice+0x1177/0x1690 [ 30.008211][ C2] register_netdev+0x20/0x40 [ 30.008453][ C2] vti6_init_net+0x25d/0x380 [ 30.008616][ C2] ops_init+0x9b/0x560 [ 30.008778][ C2] register_pernet_operations+0x2db/0x710 [ 30.009049][ C2] register_pernet_device+0x2a/0x60 [ 30.009243][ C2] vti6_tunnel_init+0x18/0x110 [ 30.009408][ C2] do_one_initcall+0x8d/0x1e0 [ 30.009651][ C2] do_initcalls+0x1b2/0x3e0 [ 30.009814][ C2] kernel_init_freeable+0x232/0x310 [ 30.010007][ C2] kernel_init+0x20/0x200 [ 30.010169][ C2] ret_from_fork+0x31/0x70 [ 30.010411][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.010573][ C2] } [ 30.010640][ C2] ... key at: [] __key.37+0x0/0x40 [ 30.010908][ C2] ... acquired at: [ 30.011003][ C2] mark_lock+0x28d/0x3e0 [ 30.011132][ C2] mark_usage+0xd9/0x2a0 [ 30.011263][ C2] __lock_acquire+0x797/0x1570 [ 30.011391][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.011602][ C2] _raw_write_lock+0x30/0x40 [ 30.011730][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.011861][ C2] call_timer_fn+0x13b/0x230 [ 30.011990][ C2] __run_timers+0x545/0x810 [ 30.012148][ C2] timer_expire_remote+0x9b/0xe0 [ 30.012280][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.012413][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.012546][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.012755][ C2] __do_softirq+0x1f8/0x5df [ 30.012887][ C2] irq_exit_rcu+0x97/0xc0 [ 30.013024][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.013189][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.013437][ C2] default_idle+0xf/0x20 [ 30.013565][ C2] default_idle_call+0x6d/0xb0 [ 30.013694][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.013823][ C2] do_idle+0xf9/0x160 [ 30.013922][ C2] cpu_startup_entry+0x54/0x60 [ 30.014126][ C2] start_secondary+0x21c/0x2b0 [ 30.014255][ C2] common_startup_64+0x12c/0x138 [ 30.014386][ C2] [ 30.014450][ C2] [ 30.014450][ C2] stack backtrace: [ 30.014680][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 30.014874][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.015160][ C2] Call Trace: [ 30.015334][ C2] [ 30.015402][ C2] dump_stack_lvl+0x82/0xd0 [ 30.015536][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.015696][ C2] ? kernel_text_address+0x17/0xe0 [ 30.015903][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.016062][ C2] ? __pfx_usage_skip+0x10/0x10 [ 30.016190][ C2] ? __pfx_usage_match+0x10/0x10 [ 30.016317][ C2] ? arch_stack_walk+0x8c/0xf0 [ 30.016610][ C2] mark_lock_irq+0x4cd/0xa10 [ 30.016739][ C2] ? common_startup_64+0x12c/0x138 [ 30.016871][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.017000][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.017131][ C2] ? save_trace+0x8f/0x5b0 [ 30.017261][ C2] mark_lock+0x28d/0x3e0 [ 30.017358][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.017487][ C2] mark_usage+0xd9/0x2a0 [ 30.017587][ C2] __lock_acquire+0x797/0x1570 [ 30.017717][ C2] ? __pfx_validate_chain+0x10/0x10 [ 30.017851][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.017979][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.018108][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.018237][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.018441][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 30.018572][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.018700][ C2] ? lock_acquire+0x32/0xc0 [ 30.018828][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.019035][ C2] _raw_write_lock+0x30/0x40 [ 30.019163][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.019290][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.019423][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.019637][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.019765][ C2] ? call_timer_fn+0xe8/0x230 [ 30.019897][ C2] ? lock_acquire+0x32/0xc0 [ 30.020025][ C2] ? call_timer_fn+0xe8/0x230 [ 30.020158][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.020291][ C2] call_timer_fn+0x13b/0x230 [ 30.020420][ C2] ? call_timer_fn+0xe8/0x230 [ 30.020547][ C2] ? call_timer_fn+0xe8/0x230 [ 30.020676][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 30.020804][ C2] ? mark_lock+0x38/0x3e0 [ 30.020905][ C2] __run_timers+0x545/0x810 [ 30.021034][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.021168][ C2] ? __pfx___run_timers+0x10/0x10 [ 30.021373][ C2] ? __lock_release+0x103/0x460 [ 30.021503][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.021632][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.021760][ C2] ? lock_acquire+0x32/0xc0 [ 30.021963][ C2] ? timer_expire_remote+0x93/0xe0 [ 30.022121][ C2] timer_expire_remote+0x9b/0xe0 [ 30.022253][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.022386][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 30.022632][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.022766][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.022898][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 30.023035][ C2] __do_softirq+0x1f8/0x5df [ 30.023169][ C2] irq_exit_rcu+0x97/0xc0 [ 30.023354][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.023484][ C2] [ 30.023551][ C2] [ 30.023621][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.023781][ C2] RIP: 0010:default_idle+0xf/0x20 [ 30.023996][ 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.024451][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 30.024705][ C2] RAX: 00000000000cb963 RBX: 1ffff9200002bfc1 RCX: ffffffffa9b32ea5 [ 30.024906][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa72ac1d4 [ 30.025099][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 30.025291][ C2] R10: ffff88802f7384e3 R11: ffff88802f73de40 R12: 0000000000000000 [ 30.025483][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 30.025679][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.025812][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 30.025942][ C2] default_idle_call+0x6d/0xb0 [ 30.026072][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.026200][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.026479][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.026609][ C2] do_idle+0xf9/0x160 [ 30.026710][ C2] cpu_startup_entry+0x54/0x60 [ 30.026838][ C2] start_secondary+0x21c/0x2b0 [ 30.027044][ C2] ? __pfx_start_secondary+0x10/0x10 [ 30.027174][ C2] common_startup_64+0x12c/0x138 [ 30.027305][ C2]