[ 59.075322][ T330] ip (330) used greatest stack depth: 22976 bytes left [ 65.001935][ C2] [ 65.002035][ C2] ======================================================== [ 65.002252][ C2] WARNING: possible irq lock inversion dependency detected [ 65.002459][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 65.002597][ C2] -------------------------------------------------------- [ 65.002796][ C2] swapper/2/0 just changed the state of lock: [ 65.002981][ C2] ffff888005d38d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 65.003251][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 65.003474][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 65.003478][ C2] [ 65.003478][ C2] [ 65.003478][ C2] and interrupts could create inverse lock ordering between them. [ 65.003478][ C2] [ 65.004002][ C2] [ 65.004002][ C2] other info that might help us debug this: [ 65.004211][ C2] Possible interrupt unsafe locking scenario: [ 65.004211][ C2] [ 65.004411][ C2] CPU0 CPU1 [ 65.004550][ C2] ---- ---- [ 65.004692][ C2] lock(&p->alloc_lock); [ 65.004798][ C2] local_irq_disable(); [ 65.004969][ C2] lock(&ndev->lock); [ 65.005138][ C2] lock(&p->alloc_lock); [ 65.005307][ C2] [ 65.005410][ C2] lock(&ndev->lock); [ 65.005515][ C2] [ 65.005515][ C2] *** DEADLOCK *** [ 65.005515][ C2] [ 65.005712][ C2] 1 lock held by swapper/2/0: [ 65.005854][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 65.006112][ C2] [ 65.006112][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 65.006349][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 65.006493][ C2] HARDIRQ-ON-W at: [ 65.006605][ C2] __lock_acquire+0x797/0x1570 [ 65.006784][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.006965][ C2] _raw_spin_lock+0x30/0x40 [ 65.007140][ C2] set_mems_allowed+0x1d/0x210 [ 65.007321][ C2] kernel_init_freeable+0x72/0x310 [ 65.007493][ C2] kernel_init+0x20/0x200 [ 65.007691][ C2] ret_from_fork+0x31/0x70 [ 65.007887][ C2] ret_from_fork_asm+0x1a/0x30 [ 65.008061][ C2] SOFTIRQ-ON-W at: [ 65.008172][ C2] __lock_acquire+0x797/0x1570 [ 65.008345][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.008520][ C2] _raw_spin_lock+0x30/0x40 [ 65.008692][ C2] set_mems_allowed+0x1d/0x210 [ 65.008865][ C2] kernel_init_freeable+0x72/0x310 [ 65.009038][ C2] kernel_init+0x20/0x200 [ 65.009214][ C2] ret_from_fork+0x31/0x70 [ 65.009387][ C2] ret_from_fork_asm+0x1a/0x30 [ 65.009557][ C2] INITIAL USE at: [ 65.009662][ C2] __lock_acquire+0x797/0x1570 [ 65.009834][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.010005][ C2] _raw_spin_lock+0x30/0x40 [ 65.010190][ C2] set_mems_allowed+0x1d/0x210 [ 65.010363][ C2] kernel_init_freeable+0x72/0x310 [ 65.010539][ C2] kernel_init+0x20/0x200 [ 65.010712][ C2] ret_from_fork+0x31/0x70 [ 65.010904][ C2] ret_from_fork_asm+0x1a/0x30 [ 65.011083][ C2] } [ 65.011160][ C2] ... key at: [] __key.388+0x0/0x40 [ 65.011370][ C2] ... acquired at: [ 65.011477][ C2] __lock_acquire+0xaf0/0x1570 [ 65.011616][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.011759][ C2] _raw_spin_lock+0x30/0x40 [ 65.011894][ C2] __get_task_comm+0x27/0x70 [ 65.012041][ C2] ref_tracker_alloc+0x2ee/0x490 [ 65.012178][ C2] netdev_get_by_index+0x5e/0x80 [ 65.012314][ C2] fib6_nh_init+0x3d8/0x1580 [ 65.012455][ C2] ip6_route_info_create+0xf18/0x17d0 [ 65.012593][ C2] ip6_route_add+0x1c/0x140 [ 65.012734][ C2] addrconf_prefix_route+0x2a6/0x430 [ 65.012870][ C2] addrconf_permanent_addr+0x32f/0x670 [ 65.013005][ C2] addrconf_notify+0x749/0xd60 [ 65.013141][ C2] notifier_call_chain+0xcd/0x150 [ 65.013279][ C2] __dev_notify_flags+0xe6/0x250 [ 65.013422][ C2] dev_change_flags+0xec/0x160 [ 65.013561][ C2] do_setlink+0x7d6/0x21e0 [ 65.013700][ C2] __rtnl_newlink+0xaa7/0xd80 [ 65.013841][ C2] rtnl_newlink+0x63/0xa0 [ 65.013981][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 65.014117][ C2] netlink_rcv_skb+0x130/0x360 [ 65.014259][ C2] netlink_unicast+0x449/0x710 [ 65.014395][ C2] netlink_sendmsg+0x723/0xbe0 [ 65.014536][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 65.014676][ C2] ___sys_sendmsg+0xee/0x170 [ 65.014818][ C2] __sys_sendmsg+0xcd/0x170 [ 65.014956][ C2] do_syscall_64+0xc6/0x1e0 [ 65.015097][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 65.015266][ C2] [ 65.015335][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 65.015474][ C2] HARDIRQ-ON-W at: [ 65.015579][ C2] __lock_acquire+0x797/0x1570 [ 65.015752][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.015928][ C2] _raw_write_lock_bh+0x38/0x50 [ 65.016104][ C2] addrconf_permanent_addr+0x6e/0x670 [ 65.016283][ C2] addrconf_notify+0x749/0xd60 [ 65.016457][ C2] notifier_call_chain+0xcd/0x150 [ 65.016640][ C2] __dev_notify_flags+0xe6/0x250 [ 65.016819][ C2] dev_change_flags+0xec/0x160 [ 65.016994][ C2] do_setlink+0x7d6/0x21e0 [ 65.017170][ C2] __rtnl_newlink+0xaa7/0xd80 [ 65.017350][ C2] rtnl_newlink+0x63/0xa0 [ 65.017523][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 65.017700][ C2] netlink_rcv_skb+0x130/0x360 [ 65.017881][ C2] netlink_unicast+0x449/0x710 [ 65.018055][ C2] netlink_sendmsg+0x723/0xbe0 [ 65.018237][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 65.018414][ C2] ___sys_sendmsg+0xee/0x170 [ 65.018591][ C2] __sys_sendmsg+0xcd/0x170 [ 65.018765][ C2] do_syscall_64+0xc6/0x1e0 [ 65.018938][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 65.019155][ C2] HARDIRQ-ON-R at: [ 65.019264][ C2] __lock_acquire+0x797/0x1570 [ 65.019448][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.019626][ C2] _raw_read_lock_bh+0x44/0x80 [ 65.019802][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 65.019976][ C2] inet6_fill_link_af+0x5e/0xe0 [ 65.020147][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 65.020321][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 65.020499][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 65.020710][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 65.020884][ C2] register_netdevice+0x1177/0x1690 [ 65.021061][ C2] register_netdev+0x20/0x40 [ 65.021246][ C2] vti6_init_net+0x25d/0x380 [ 65.021424][ C2] ops_init+0x9b/0x560 [ 65.021575][ C2] register_pernet_operations+0x2db/0x710 [ 65.021874][ C2] register_pernet_device+0x2a/0x60 [ 65.022048][ C2] vti6_tunnel_init+0x18/0x110 [ 65.022226][ C2] do_one_initcall+0x8d/0x1e0 [ 65.022488][ C2] do_initcalls+0x1b2/0x3e0 [ 65.022670][ C2] kernel_init_freeable+0x232/0x310 [ 65.022847][ C2] kernel_init+0x20/0x200 [ 65.023106][ C2] ret_from_fork+0x31/0x70 [ 65.023283][ C2] ret_from_fork_asm+0x1a/0x30 [ 65.023459][ C2] IN-SOFTIRQ-W at: [ 65.023566][ C2] __lock_acquire+0x797/0x1570 [ 65.023822][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.023994][ C2] _raw_write_lock+0x30/0x40 [ 65.024175][ C2] addrconf_rs_timer+0xa9/0x730 [ 65.024431][ C2] call_timer_fn+0x13b/0x230 [ 65.024608][ C2] __run_timers+0x545/0x810 [ 65.024778][ C2] timer_expire_remote+0x9b/0xe0 [ 65.024949][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 65.025205][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 65.025382][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 65.025558][ C2] __do_softirq+0x1f8/0x5df [ 65.025815][ C2] irq_exit_rcu+0x97/0xc0 [ 65.025987][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 65.026194][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 65.026483][ C2] default_idle+0xf/0x20 [ 65.026654][ C2] default_idle_call+0x6d/0xb0 [ 65.026834][ C2] cpuidle_idle_call+0x1f4/0x280 [ 65.027013][ C2] do_idle+0xf9/0x160 [ 65.027234][ C2] cpu_startup_entry+0x54/0x60 [ 65.027419][ C2] start_secondary+0x21c/0x2b0 [ 65.027598][ C2] common_startup_64+0x12c/0x138 [ 65.027880][ C2] INITIAL USE at: [ 65.027988][ C2] __lock_acquire+0x797/0x1570 [ 65.028167][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.028342][ C2] _raw_write_lock_bh+0x38/0x50 [ 65.028522][ C2] addrconf_permanent_addr+0x6e/0x670 [ 65.028693][ C2] addrconf_notify+0x749/0xd60 [ 65.028875][ C2] notifier_call_chain+0xcd/0x150 [ 65.029136][ C2] __dev_notify_flags+0xe6/0x250 [ 65.029315][ C2] dev_change_flags+0xec/0x160 [ 65.029491][ C2] do_setlink+0x7d6/0x21e0 [ 65.029666][ C2] __rtnl_newlink+0xaa7/0xd80 [ 65.030016][ C2] rtnl_newlink+0x63/0xa0 [ 65.030201][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 65.030372][ C2] netlink_rcv_skb+0x130/0x360 [ 65.030557][ C2] netlink_unicast+0x449/0x710 [ 65.030728][ C2] netlink_sendmsg+0x723/0xbe0 [ 65.030908][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 65.031081][ C2] ___sys_sendmsg+0xee/0x170 [ 65.031333][ C2] __sys_sendmsg+0xcd/0x170 [ 65.031505][ C2] do_syscall_64+0xc6/0x1e0 [ 65.031678][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 65.031996][ C2] INITIAL READ USE at: [ 65.032101][ C2] __lock_acquire+0x797/0x1570 [ 65.032272][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.032446][ C2] _raw_read_lock_bh+0x44/0x80 [ 65.032620][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 65.032823][ C2] inet6_fill_link_af+0x5e/0xe0 [ 65.032998][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 65.033250][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 65.033454][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 65.033657][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 65.033916][ C2] register_netdevice+0x1177/0x1690 [ 65.034119][ C2] register_netdev+0x20/0x40 [ 65.034293][ C2] vti6_init_net+0x25d/0x380 [ 65.034550][ C2] ops_init+0x9b/0x560 [ 65.034720][ C2] register_pernet_operations+0x2db/0x710 [ 65.034925][ C2] register_pernet_device+0x2a/0x60 [ 65.035209][ C2] vti6_tunnel_init+0x18/0x110 [ 65.035380][ C2] do_one_initcall+0x8d/0x1e0 [ 65.035555][ C2] do_initcalls+0x1b2/0x3e0 [ 65.035809][ C2] kernel_init_freeable+0x232/0x310 [ 65.036017][ C2] kernel_init+0x20/0x200 [ 65.036190][ C2] ret_from_fork+0x31/0x70 [ 65.036366][ C2] ret_from_fork_asm+0x1a/0x30 [ 65.036615][ C2] } [ 65.036692][ C2] ... key at: [] __key.37+0x0/0x40 [ 65.036900][ C2] ... acquired at: [ 65.037000][ C2] mark_lock+0x28d/0x3e0 [ 65.037217][ C2] mark_usage+0xd9/0x2a0 [ 65.037361][ C2] __lock_acquire+0x797/0x1570 [ 65.037499][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.037640][ C2] _raw_write_lock+0x30/0x40 [ 65.037881][ C2] addrconf_rs_timer+0xa9/0x730 [ 65.038021][ C2] call_timer_fn+0x13b/0x230 [ 65.038156][ C2] __run_timers+0x545/0x810 [ 65.038297][ C2] timer_expire_remote+0x9b/0xe0 [ 65.038442][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 65.038579][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 65.038715][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 65.038857][ C2] __do_softirq+0x1f8/0x5df [ 65.038996][ C2] irq_exit_rcu+0x97/0xc0 [ 65.039220][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 65.039392][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 65.039563][ C2] default_idle+0xf/0x20 [ 65.039775][ C2] default_idle_call+0x6d/0xb0 [ 65.039910][ C2] cpuidle_idle_call+0x1f4/0x280 [ 65.040044][ C2] do_idle+0xf9/0x160 [ 65.040146][ C2] cpu_startup_entry+0x54/0x60 [ 65.040282][ C2] start_secondary+0x21c/0x2b0 [ 65.040572][ C2] common_startup_64+0x12c/0x138 [ 65.040714][ C2] [ 65.040783][ C2] [ 65.040783][ C2] stack backtrace: [ 65.040951][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 65.041243][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 65.041542][ C2] Call Trace: [ 65.041649][ C2] [ 65.041723][ C2] dump_stack_lvl+0x82/0xd0 [ 65.041951][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 65.042134][ C2] ? kernel_text_address+0x17/0xe0 [ 65.042276][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 65.042460][ C2] ? __pfx_usage_skip+0x10/0x10 [ 65.042598][ C2] ? __pfx_usage_match+0x10/0x10 [ 65.042737][ C2] ? arch_stack_walk+0x8c/0xf0 [ 65.042874][ C2] mark_lock_irq+0x4cd/0xa10 [ 65.043016][ C2] ? common_startup_64+0x12c/0x138 [ 65.043238][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 65.043376][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 65.043518][ C2] ? save_trace+0x8f/0x5b0 [ 65.043661][ C2] mark_lock+0x28d/0x3e0 [ 65.043843][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 65.043983][ C2] mark_usage+0xd9/0x2a0 [ 65.044088][ C2] __lock_acquire+0x797/0x1570 [ 65.044228][ C2] ? __pfx_validate_chain+0x10/0x10 [ 65.044367][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 65.044583][ C2] lock_acquire.part.0+0xeb/0x330 [ 65.044725][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 65.044868][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 65.045002][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 65.045225][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 65.045363][ C2] ? lock_acquire+0x32/0xc0 [ 65.045506][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 65.045644][ C2] _raw_write_lock+0x30/0x40 [ 65.045867][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 65.046007][ C2] addrconf_rs_timer+0xa9/0x730 [ 65.046147][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 65.046282][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 65.046428][ C2] ? call_timer_fn+0xe8/0x230 [ 65.046564][ C2] ? lock_acquire+0x32/0xc0 [ 65.046710][ C2] ? call_timer_fn+0xe8/0x230 [ 65.046848][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 65.046993][ C2] call_timer_fn+0x13b/0x230 [ 65.047213][ C2] ? call_timer_fn+0xe8/0x230 [ 65.047350][ C2] ? call_timer_fn+0xe8/0x230 [ 65.047493][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 65.047629][ C2] ? mark_lock+0x38/0x3e0 [ 65.047832][ C2] __run_timers+0x545/0x810 [ 65.047972][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 65.048110][ C2] ? __pfx___run_timers+0x10/0x10 [ 65.048254][ C2] ? __lock_release+0x103/0x460 [ 65.048476][ C2] ? do_raw_spin_lock+0x131/0x270 [ 65.048618][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 65.048753][ C2] ? lock_acquire+0x32/0xc0 [ 65.048899][ C2] ? timer_expire_remote+0x93/0xe0 [ 65.049037][ C2] timer_expire_remote+0x9b/0xe0 [ 65.049253][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 65.049398][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 65.049574][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 65.049722][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 65.049950][ C2] ? do_raw_spin_lock+0x131/0x270 [ 65.050086][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 65.050234][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 65.050370][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 65.050554][ C2] __do_softirq+0x1f8/0x5df [ 65.050701][ C2] irq_exit_rcu+0x97/0xc0 [ 65.050805][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 65.050948][ C2] [ 65.051025][ C2] [ 65.051251][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 65.051420][ C2] RIP: 0010:default_idle+0xf/0x20 [ 65.051566][ 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 [ 65.052149][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 65.052329][ C2] RAX: 000000000013e455 RBX: 1ffff9200002bfc1 RCX: ffffffffae532ea5 [ 65.052547][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffabcac1d4 [ 65.052750][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 65.052959][ C2] R10: ffff8880361384e3 R11: 1ffff110003ab28c R12: 0000000000000000 [ 65.053260][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 65.053468][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 65.053612][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 65.053749][ C2] default_idle_call+0x6d/0xb0 [ 65.053969][ C2] cpuidle_idle_call+0x1f4/0x280 [ 65.054109][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 65.054248][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 65.054391][ C2] do_idle+0xf9/0x160 [ 65.054498][ C2] cpu_startup_entry+0x54/0x60 [ 65.054641][ C2] start_secondary+0x21c/0x2b0 [ 65.054783][ C2] ? __pfx_start_secondary+0x10/0x10 [ 65.054921][ C2] common_startup_64+0x12c/0x138 [ 65.055151][ C2]