[ 28.513203][ T234] ip (234) used greatest stack depth: 23616 bytes left [ 41.548867][ C2] [ 41.549045][ C2] ======================================================== [ 41.549299][ C2] WARNING: possible irq lock inversion dependency detected [ 41.549568][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 41.549742][ C2] -------------------------------------------------------- [ 41.550006][ C2] swapper/2/0 just changed the state of lock: [ 41.550241][ C2] ffff888002903d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 41.550575][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 41.550838][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 41.550844][ C2] [ 41.550844][ C2] [ 41.550844][ C2] and interrupts could create inverse lock ordering between them. [ 41.550844][ C2] [ 41.551491][ C2] [ 41.551491][ C2] other info that might help us debug this: [ 41.551753][ C2] Possible interrupt unsafe locking scenario: [ 41.551753][ C2] [ 41.552007][ C2] CPU0 CPU1 [ 41.552203][ C2] ---- ---- [ 41.552382][ C2] lock(&p->alloc_lock); [ 41.552515][ C2] local_irq_disable(); [ 41.552748][ C2] lock(&ndev->lock); [ 41.552972][ C2] lock(&p->alloc_lock); [ 41.553198][ C2] [ 41.553327][ C2] lock(&ndev->lock); [ 41.553465][ C2] [ 41.553465][ C2] *** DEADLOCK *** [ 41.553465][ C2] [ 41.553716][ C2] 1 lock held by swapper/2/0: [ 41.553886][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 41.554201][ C2] [ 41.554201][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 41.554504][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 41.554680][ C2] HARDIRQ-ON-W at: [ 41.554815][ C2] __lock_acquire+0x797/0x1570 [ 41.555044][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.555266][ C2] _raw_spin_lock+0x30/0x40 [ 41.555489][ C2] set_mems_allowed+0x1d/0x210 [ 41.555723][ C2] kernel_init_freeable+0x72/0x310 [ 41.555954][ C2] kernel_init+0x20/0x200 [ 41.556166][ C2] ret_from_fork+0x31/0x70 [ 41.556381][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.556590][ C2] SOFTIRQ-ON-W at: [ 41.556727][ C2] __lock_acquire+0x797/0x1570 [ 41.556941][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.557156][ C2] _raw_spin_lock+0x30/0x40 [ 41.557368][ C2] set_mems_allowed+0x1d/0x210 [ 41.557632][ C2] kernel_init_freeable+0x72/0x310 [ 41.557863][ C2] kernel_init+0x20/0x200 [ 41.558081][ C2] ret_from_fork+0x31/0x70 [ 41.558401][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.558698][ C2] INITIAL USE at: [ 41.558858][ C2] __lock_acquire+0x797/0x1570 [ 41.559140][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.559406][ C2] _raw_spin_lock+0x30/0x40 [ 41.559658][ C2] set_mems_allowed+0x1d/0x210 [ 41.559920][ C2] kernel_init_freeable+0x72/0x310 [ 41.560192][ C2] kernel_init+0x20/0x200 [ 41.560460][ C2] ret_from_fork+0x31/0x70 [ 41.560719][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.560981][ C2] } [ 41.561091][ C2] ... key at: [] __key.387+0x0/0x40 [ 41.561417][ C2] ... acquired at: [ 41.561581][ C2] __lock_acquire+0xaf0/0x1570 [ 41.561805][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.562033][ C2] _raw_spin_lock+0x30/0x40 [ 41.562256][ C2] __get_task_comm+0x27/0x70 [ 41.562489][ C2] ref_tracker_alloc+0x2ee/0x490 [ 41.562722][ C2] netdev_get_by_index+0x5e/0x80 [ 41.562932][ C2] fib6_nh_init+0x3d8/0x15b0 [ 41.563147][ C2] ip6_route_info_create+0xf18/0x17d0 [ 41.563371][ C2] addrconf_f6i_alloc+0x265/0x560 [ 41.563575][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 41.563795][ C2] addrconf_join_anycast+0x1c0/0x220 [ 41.564032][ C2] dev_forward_change+0x2a6/0x7b0 [ 41.564237][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 41.564424][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 41.564574][ C2] proc_sys_call_handler+0x403/0x5e0 [ 41.564725][ C2] vfs_write+0x9e5/0x10a0 [ 41.564871][ C2] ksys_write+0xf5/0x1e0 [ 41.565043][ C2] do_syscall_64+0xc6/0x1e0 [ 41.565199][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 41.565385][ C2] [ 41.565461][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 41.565611][ C2] HARDIRQ-ON-W at: [ 41.565727][ C2] __lock_acquire+0x797/0x1570 [ 41.565912][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.566096][ C2] _raw_write_lock_bh+0x38/0x50 [ 41.566286][ C2] addrconf_permanent_addr+0x6e/0x670 [ 41.566468][ C2] addrconf_notify+0x749/0xd60 [ 41.566653][ C2] notifier_call_chain+0xcd/0x150 [ 41.566841][ C2] __dev_notify_flags+0xe6/0x250 [ 41.567029][ C2] dev_change_flags+0xec/0x160 [ 41.567214][ C2] do_setlink+0x7d6/0x21e0 [ 41.567405][ C2] __rtnl_newlink+0xaa7/0xd80 [ 41.567621][ C2] rtnl_newlink+0x63/0xa0 [ 41.567790][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 41.567966][ C2] netlink_rcv_skb+0x130/0x360 [ 41.568151][ C2] netlink_unicast+0x449/0x710 [ 41.568348][ C2] netlink_sendmsg+0x723/0xbe0 [ 41.568539][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 41.568717][ C2] ___sys_sendmsg+0xee/0x170 [ 41.568924][ C2] __sys_sendmsg+0xcd/0x170 [ 41.569130][ C2] do_syscall_64+0xc6/0x1e0 [ 41.569317][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 41.569527][ C2] HARDIRQ-ON-R at: [ 41.569632][ C2] __lock_acquire+0x797/0x1570 [ 41.569805][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.569977][ C2] _raw_read_lock_bh+0x44/0x80 [ 41.570146][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 41.570321][ C2] inet6_fill_link_af+0x5e/0xe0 [ 41.570494][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 41.570667][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 41.570835][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 41.571045][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 41.571218][ C2] register_netdevice+0x1177/0x1690 [ 41.571390][ C2] register_netdev+0x20/0x40 [ 41.571564][ C2] sit_init_net+0x250/0x4f0 [ 41.571747][ C2] ops_init+0x9b/0x560 [ 41.571880][ C2] register_pernet_operations+0x2db/0x710 [ 41.572083][ C2] register_pernet_device+0x2a/0x60 [ 41.572260][ C2] sit_init+0x23/0xe0 [ 41.572401][ C2] do_one_initcall+0x8d/0x1e0 [ 41.572572][ C2] do_initcalls+0x1b2/0x3e0 [ 41.572745][ C2] kernel_init_freeable+0x232/0x310 [ 41.572911][ C2] kernel_init+0x20/0x200 [ 41.573129][ C2] ret_from_fork+0x31/0x70 [ 41.573343][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.573532][ C2] IN-SOFTIRQ-W at: [ 41.573656][ C2] __lock_acquire+0x797/0x1570 [ 41.573830][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.574029][ C2] _raw_write_lock+0x30/0x40 [ 41.574232][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.574425][ C2] call_timer_fn+0x13b/0x230 [ 41.574608][ C2] __run_timers+0x545/0x810 [ 41.574800][ C2] run_timer_softirq+0xe8/0x1b0 [ 41.574996][ C2] __do_softirq+0x1f8/0x5df [ 41.575180][ C2] irq_exit_rcu+0x97/0xc0 [ 41.575368][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.575587][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.575819][ C2] default_idle+0xf/0x20 [ 41.576005][ C2] default_idle_call+0x6d/0xb0 [ 41.576216][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.576416][ C2] do_idle+0xf9/0x160 [ 41.576555][ C2] cpu_startup_entry+0x54/0x60 [ 41.576730][ C2] start_secondary+0x21c/0x2b0 [ 41.576909][ C2] common_startup_64+0x12c/0x138 [ 41.577080][ C2] INITIAL USE at: [ 41.577178][ C2] __lock_acquire+0x797/0x1570 [ 41.577355][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.577580][ C2] _raw_write_lock_bh+0x38/0x50 [ 41.577751][ C2] addrconf_permanent_addr+0x6e/0x670 [ 41.577924][ C2] addrconf_notify+0x749/0xd60 [ 41.578101][ C2] notifier_call_chain+0xcd/0x150 [ 41.578266][ C2] __dev_notify_flags+0xe6/0x250 [ 41.578436][ C2] dev_change_flags+0xec/0x160 [ 41.578606][ C2] do_setlink+0x7d6/0x21e0 [ 41.578777][ C2] __rtnl_newlink+0xaa7/0xd80 [ 41.578949][ C2] rtnl_newlink+0x63/0xa0 [ 41.579127][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 41.579293][ C2] netlink_rcv_skb+0x130/0x360 [ 41.579465][ C2] netlink_unicast+0x449/0x710 [ 41.579634][ C2] netlink_sendmsg+0x723/0xbe0 [ 41.579799][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 41.579963][ C2] ___sys_sendmsg+0xee/0x170 [ 41.580134][ C2] __sys_sendmsg+0xcd/0x170 [ 41.580306][ C2] do_syscall_64+0xc6/0x1e0 [ 41.580473][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 41.580705][ C2] INITIAL READ USE at: [ 41.580818][ C2] __lock_acquire+0x797/0x1570 [ 41.580996][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.581167][ C2] _raw_read_lock_bh+0x44/0x80 [ 41.581375][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 41.581594][ C2] inet6_fill_link_af+0x5e/0xe0 [ 41.581758][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 41.581956][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 41.582236][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 41.582435][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 41.582603][ C2] register_netdevice+0x1177/0x1690 [ 41.582892][ C2] register_netdev+0x20/0x40 [ 41.583063][ C2] sit_init_net+0x250/0x4f0 [ 41.583230][ C2] ops_init+0x9b/0x560 [ 41.583481][ C2] register_pernet_operations+0x2db/0x710 [ 41.583688][ C2] register_pernet_device+0x2a/0x60 [ 41.583891][ C2] sit_init+0x23/0xe0 [ 41.584143][ C2] do_one_initcall+0x8d/0x1e0 [ 41.584313][ C2] do_initcalls+0x1b2/0x3e0 [ 41.584484][ C2] kernel_init_freeable+0x232/0x310 [ 41.584761][ C2] kernel_init+0x20/0x200 [ 41.584935][ C2] ret_from_fork+0x31/0x70 [ 41.585106][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.585277][ C2] } [ 41.585503][ C2] ... key at: [] __key.37+0x0/0x40 [ 41.585704][ C2] ... acquired at: [ 41.585806][ C2] mark_lock+0x28d/0x3e0 [ 41.585945][ C2] mark_usage+0xd9/0x2a0 [ 41.586157][ C2] __lock_acquire+0x797/0x1570 [ 41.586294][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.586445][ C2] _raw_write_lock+0x30/0x40 [ 41.586578][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.586709][ C2] call_timer_fn+0x13b/0x230 [ 41.586941][ C2] __run_timers+0x545/0x810 [ 41.587077][ C2] run_timer_softirq+0xe8/0x1b0 [ 41.587207][ C2] __do_softirq+0x1f8/0x5df [ 41.587341][ C2] irq_exit_rcu+0x97/0xc0 [ 41.587475][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.587666][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.587845][ C2] default_idle+0xf/0x20 [ 41.587980][ C2] default_idle_call+0x6d/0xb0 [ 41.588209][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.588349][ C2] do_idle+0xf9/0x160 [ 41.588446][ C2] cpu_startup_entry+0x54/0x60 [ 41.588591][ C2] start_secondary+0x21c/0x2b0 [ 41.588817][ C2] common_startup_64+0x12c/0x138 [ 41.588952][ C2] [ 41.589021][ C2] [ 41.589021][ C2] stack backtrace: [ 41.589192][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 41.589476][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 41.589803][ C2] Call Trace: [ 41.589911][ C2] [ 41.589985][ C2] dump_stack_lvl+0x82/0xd0 [ 41.590206][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 41.590423][ C2] ? kernel_text_address+0x17/0xe0 [ 41.590556][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 41.590728][ C2] ? __pfx_usage_skip+0x10/0x10 [ 41.590945][ C2] ? __pfx_usage_match+0x10/0x10 [ 41.591084][ C2] ? arch_stack_walk+0x8c/0xf0 [ 41.591227][ C2] mark_lock_irq+0x4cd/0xa10 [ 41.591360][ C2] ? common_startup_64+0x12c/0x138 [ 41.591499][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 41.591644][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 41.591787][ C2] ? save_trace+0x8f/0x5b0 [ 41.591925][ C2] mark_lock+0x28d/0x3e0 [ 41.592106][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 41.592244][ C2] mark_usage+0xd9/0x2a0 [ 41.592349][ C2] __lock_acquire+0x797/0x1570 [ 41.592485][ C2] ? __pfx_validate_chain+0x10/0x10 [ 41.592617][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.592829][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.592960][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.593092][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 41.593225][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 41.593433][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.593568][ C2] ? lock_acquire+0x32/0xc0 [ 41.593710][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.593850][ C2] _raw_write_lock+0x30/0x40 [ 41.594065][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.594198][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.594356][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 41.594488][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.594620][ C2] ? call_timer_fn+0xe8/0x230 [ 41.594843][ C2] ? lock_acquire+0x32/0xc0 [ 41.594973][ C2] ? call_timer_fn+0xe8/0x230 [ 41.595112][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.595247][ C2] call_timer_fn+0x13b/0x230 [ 41.595469][ C2] ? call_timer_fn+0xe8/0x230 [ 41.595606][ C2] ? call_timer_fn+0xe8/0x230 [ 41.595745][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 41.595881][ C2] ? mark_lock+0x38/0x3e0 [ 41.596137][ C2] __run_timers+0x545/0x810 [ 41.596276][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.596432][ C2] ? __pfx___run_timers+0x10/0x10 [ 41.596573][ C2] ? do_raw_spin_lock+0x131/0x270 [ 41.596710][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 41.596959][ C2] ? lock_acquire+0x32/0xc0 [ 41.597093][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 41.597239][ C2] run_timer_softirq+0xe8/0x1b0 [ 41.597392][ C2] __do_softirq+0x1f8/0x5df [ 41.597740][ C2] irq_exit_rcu+0x97/0xc0 [ 41.597843][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.598000][ C2] [ 41.598107][ C2] [ 41.598179][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.598441][ C2] RIP: 0010:default_idle+0xf/0x20 [ 41.598590][ 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 a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 41.599147][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 41.599329][ C2] RAX: 000000000010586d RBX: 1ffff9200002bfc1 RCX: ffffffff8a50e9d5 [ 41.599543][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff87eaa4a4 [ 41.599828][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 41.600024][ C2] R10: ffff8880361384e3 R11: ffff88803613dc80 R12: 0000000000000000 [ 41.600223][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 41.600515][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 41.600671][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 41.600819][ C2] default_idle_call+0x6d/0xb0 [ 41.600989][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.601254][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 41.601460][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 41.601674][ C2] do_idle+0xf9/0x160 [ 41.601819][ C2] cpu_startup_entry+0x54/0x60 [ 41.602162][ C2] start_secondary+0x21c/0x2b0 [ 41.602392][ C2] ? __pfx_start_secondary+0x10/0x10 [ 41.602621][ C2] common_startup_64+0x12c/0x138 [ 41.602878][ C2]