[ 24.649504][ T254] ip (254) used greatest stack depth: 23752 bytes left [ 26.337965][ T275] ip (275) used greatest stack depth: 22992 bytes left [ 32.550865][ C2] [ 32.550969][ C2] ======================================================== [ 32.551167][ C2] WARNING: possible irq lock inversion dependency detected [ 32.551379][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 32.551515][ C2] -------------------------------------------------------- [ 32.551716][ C2] swapper/2/0 just changed the state of lock: [ 32.551894][ C2] ffff88800722ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.552141][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.552339][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 32.552343][ C2] [ 32.552343][ C2] [ 32.552343][ C2] and interrupts could create inverse lock ordering between them. [ 32.552343][ C2] [ 32.552826][ C2] [ 32.552826][ C2] other info that might help us debug this: [ 32.553023][ C2] Possible interrupt unsafe locking scenario: [ 32.553023][ C2] [ 32.553219][ C2] CPU0 CPU1 [ 32.553353][ C2] ---- ---- [ 32.553485][ C2] lock(&p->alloc_lock); [ 32.553591][ C2] local_irq_disable(); [ 32.553758][ C2] lock(&ndev->lock); [ 32.553928][ C2] lock(&p->alloc_lock); [ 32.554095][ C2] [ 32.554196][ C2] lock(&ndev->lock); [ 32.554300][ C2] [ 32.554300][ C2] *** DEADLOCK *** [ 32.554300][ C2] [ 32.554496][ C2] 1 lock held by swapper/2/0: [ 32.554630][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.554874][ C2] [ 32.554874][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 32.555106][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.555248][ C2] HARDIRQ-ON-W at: [ 32.555354][ C2] __lock_acquire+0x797/0x1570 [ 32.555531][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.555701][ C2] _raw_spin_lock+0x30/0x40 [ 32.555876][ C2] set_mems_allowed+0x1d/0x210 [ 32.556051][ C2] kernel_init_freeable+0x72/0x310 [ 32.556224][ C2] kernel_init+0x20/0x200 [ 32.556397][ C2] ret_from_fork+0x31/0x70 [ 32.556572][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.556741][ C2] SOFTIRQ-ON-W at: [ 32.556843][ C2] __lock_acquire+0x797/0x1570 [ 32.557017][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.557187][ C2] _raw_spin_lock+0x30/0x40 [ 32.557356][ C2] set_mems_allowed+0x1d/0x210 [ 32.557525][ C2] kernel_init_freeable+0x72/0x310 [ 32.557701][ C2] kernel_init+0x20/0x200 [ 32.557871][ C2] ret_from_fork+0x31/0x70 [ 32.558045][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.558214][ C2] INITIAL USE at: [ 32.558317][ C2] __lock_acquire+0x797/0x1570 [ 32.558487][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.558657][ C2] _raw_spin_lock+0x30/0x40 [ 32.558830][ C2] set_mems_allowed+0x1d/0x210 [ 32.559005][ C2] kernel_init_freeable+0x72/0x310 [ 32.559177][ C2] kernel_init+0x20/0x200 [ 32.559347][ C2] ret_from_fork+0x31/0x70 [ 32.559518][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.559687][ C2] } [ 32.559757][ C2] ... key at: [] __key.388+0x0/0x40 [ 32.559963][ C2] ... acquired at: [ 32.560069][ C2] __lock_acquire+0xaf0/0x1570 [ 32.560207][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.560343][ C2] _raw_spin_lock+0x30/0x40 [ 32.560477][ C2] __get_task_comm+0x27/0x70 [ 32.560618][ C2] ref_tracker_alloc+0x2ee/0x490 [ 32.560754][ C2] netdev_get_by_index+0x5e/0x80 [ 32.560891][ C2] fib6_nh_init+0x3d8/0x1580 [ 32.561029][ C2] ip6_route_info_create+0xf18/0x17d0 [ 32.561169][ C2] ip6_route_add+0x1c/0x140 [ 32.561305][ C2] addrconf_prefix_route+0x2a6/0x430 [ 32.561441][ C2] addrconf_permanent_addr+0x32f/0x670 [ 32.561576][ C2] addrconf_notify+0x749/0xd60 [ 32.561712][ C2] notifier_call_chain+0xcd/0x150 [ 32.561850][ C2] __dev_notify_flags+0xe6/0x250 [ 32.561986][ C2] dev_change_flags+0xec/0x160 [ 32.562121][ C2] do_setlink+0x7d6/0x21e0 [ 32.562258][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.562394][ C2] rtnl_newlink+0x63/0xa0 [ 32.562530][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.562664][ C2] netlink_rcv_skb+0x130/0x360 [ 32.562805][ C2] netlink_unicast+0x449/0x710 [ 32.562941][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.563077][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.563214][ C2] ___sys_sendmsg+0xee/0x170 [ 32.563350][ C2] __sys_sendmsg+0xcd/0x170 [ 32.563489][ C2] do_syscall_64+0xc6/0x1e0 [ 32.563625][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.563793][ C2] [ 32.563861][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 32.563999][ C2] HARDIRQ-ON-W at: [ 32.564101][ C2] __lock_acquire+0x797/0x1570 [ 32.564271][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.564440][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.564613][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.564783][ C2] addrconf_notify+0x749/0xd60 [ 32.564950][ C2] notifier_call_chain+0xcd/0x150 [ 32.565119][ C2] __dev_notify_flags+0xe6/0x250 [ 32.565289][ C2] dev_change_flags+0xec/0x160 [ 32.565456][ C2] do_setlink+0x7d6/0x21e0 [ 32.565627][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.565799][ C2] rtnl_newlink+0x63/0xa0 [ 32.565970][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.566137][ C2] netlink_rcv_skb+0x130/0x360 [ 32.566304][ C2] netlink_unicast+0x449/0x710 [ 32.566475][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.566643][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.566818][ C2] ___sys_sendmsg+0xee/0x170 [ 32.566991][ C2] __sys_sendmsg+0xcd/0x170 [ 32.567162][ C2] do_syscall_64+0xc6/0x1e0 [ 32.567331][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.567535][ C2] HARDIRQ-ON-R at: [ 32.567726][ C2] __lock_acquire+0x797/0x1570 [ 32.567898][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.568071][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.568325][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.568498][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.568668][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 32.568839][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.569091][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.569307][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.569476][ C2] register_netdevice+0x1177/0x1690 [ 32.569724][ C2] register_netdev+0x20/0x40 [ 32.569894][ C2] vti6_init_net+0x25d/0x380 [ 32.570064][ C2] ops_init+0x9b/0x560 [ 32.570201][ C2] register_pernet_operations+0x2db/0x710 [ 32.570487][ C2] register_pernet_device+0x2a/0x60 [ 32.570657][ C2] vti6_tunnel_init+0x18/0x110 [ 32.570828][ C2] do_one_initcall+0x8d/0x1e0 [ 32.571080][ C2] do_initcalls+0x1b2/0x3e0 [ 32.571249][ C2] kernel_init_freeable+0x232/0x310 [ 32.571418][ C2] kernel_init+0x20/0x200 [ 32.571668][ C2] ret_from_fork+0x31/0x70 [ 32.571843][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.572013][ C2] IN-SOFTIRQ-W at: [ 32.572116][ C2] __lock_acquire+0x797/0x1570 [ 32.572367][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.572539][ C2] _raw_write_lock+0x30/0x40 [ 32.572707][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.572963][ C2] call_timer_fn+0x13b/0x230 [ 32.573134][ C2] __run_timers+0x545/0x810 [ 32.573305][ C2] timer_expire_remote+0x9b/0xe0 [ 32.573477][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.573730][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.573899][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.574071][ C2] __do_softirq+0x1f8/0x5df [ 32.574401][ C2] irq_exit_rcu+0x97/0xc0 [ 32.574573][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.574783][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.575068][ C2] default_idle+0xf/0x20 [ 32.575238][ C2] default_idle_call+0x6d/0xb0 [ 32.575407][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.575582][ C2] do_idle+0xf9/0x160 [ 32.575801][ C2] cpu_startup_entry+0x54/0x60 [ 32.575972][ C2] start_secondary+0x21c/0x2b0 [ 32.576146][ C2] common_startup_64+0x12c/0x138 [ 32.576396][ C2] INITIAL USE at: [ 32.576499][ C2] __lock_acquire+0x797/0x1570 [ 32.576668][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.576845][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.577098][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.577274][ C2] addrconf_notify+0x749/0xd60 [ 32.577445][ C2] notifier_call_chain+0xcd/0x150 [ 32.577703][ C2] __dev_notify_flags+0xe6/0x250 [ 32.577878][ C2] dev_change_flags+0xec/0x160 [ 32.578052][ C2] do_setlink+0x7d6/0x21e0 [ 32.578222][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.578477][ C2] rtnl_newlink+0x63/0xa0 [ 32.578646][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.578816][ C2] netlink_rcv_skb+0x130/0x360 [ 32.579070][ C2] netlink_unicast+0x449/0x710 [ 32.579244][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.579414][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.579585][ C2] ___sys_sendmsg+0xee/0x170 [ 32.579837][ C2] __sys_sendmsg+0xcd/0x170 [ 32.580009][ C2] do_syscall_64+0xc6/0x1e0 [ 32.580181][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.580462][ C2] INITIAL READ USE at: [ 32.580568][ C2] __lock_acquire+0x797/0x1570 [ 32.580741][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.580913][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.581165][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.581369][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.581538][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 32.581793][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.581998][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.582202][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.582455][ C2] register_netdevice+0x1177/0x1690 [ 32.582660][ C2] register_netdev+0x20/0x40 [ 32.582830][ C2] vti6_init_net+0x25d/0x380 [ 32.583084][ C2] ops_init+0x9b/0x560 [ 32.583254][ C2] register_pernet_operations+0x2db/0x710 [ 32.583457][ C2] register_pernet_device+0x2a/0x60 [ 32.583744][ C2] vti6_tunnel_init+0x18/0x110 [ 32.583915][ C2] do_one_initcall+0x8d/0x1e0 [ 32.584087][ C2] do_initcalls+0x1b2/0x3e0 [ 32.584345][ C2] kernel_init_freeable+0x232/0x310 [ 32.584550][ C2] kernel_init+0x20/0x200 [ 32.584720][ C2] ret_from_fork+0x31/0x70 [ 32.584893][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.585225][ C2] } [ 32.585294][ C2] ... key at: [] __key.37+0x0/0x40 [ 32.585503][ C2] ... acquired at: [ 32.585604][ C2] mark_lock+0x28d/0x3e0 [ 32.585825][ C2] mark_usage+0xd9/0x2a0 [ 32.585962][ C2] __lock_acquire+0x797/0x1570 [ 32.586098][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.586235][ C2] _raw_write_lock+0x30/0x40 [ 32.586450][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.586586][ C2] call_timer_fn+0x13b/0x230 [ 32.586722][ C2] __run_timers+0x545/0x810 [ 32.586863][ C2] timer_expire_remote+0x9b/0xe0 [ 32.587079][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.587215][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.587350][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.587485][ C2] __do_softirq+0x1f8/0x5df [ 32.587621][ C2] irq_exit_rcu+0x97/0xc0 [ 32.587844][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.588015][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.588188][ C2] default_idle+0xf/0x20 [ 32.588401][ C2] default_idle_call+0x6d/0xb0 [ 32.588535][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.588669][ C2] do_idle+0xf9/0x160 [ 32.588772][ C2] cpu_startup_entry+0x54/0x60 [ 32.588907][ C2] start_secondary+0x21c/0x2b0 [ 32.589120][ C2] common_startup_64+0x12c/0x138 [ 32.589253][ C2] [ 32.589323][ C2] [ 32.589323][ C2] stack backtrace: [ 32.589490][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.589766][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.590064][ C2] Call Trace: [ 32.590177][ C2] [ 32.590251][ C2] dump_stack_lvl+0x82/0xd0 [ 32.590470][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.590644][ C2] ? kernel_text_address+0x17/0xe0 [ 32.590780][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.591023][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.591156][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.591288][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.591422][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.591560][ C2] ? common_startup_64+0x12c/0x138 [ 32.591771][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.591909][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.592048][ C2] ? save_trace+0x8f/0x5b0 [ 32.592182][ C2] mark_lock+0x28d/0x3e0 [ 32.592361][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.592498][ C2] mark_usage+0xd9/0x2a0 [ 32.592600][ C2] __lock_acquire+0x797/0x1570 [ 32.592735][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.592868][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.593080][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.593213][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.593346][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.593482][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.593694][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.593825][ C2] ? lock_acquire+0x32/0xc0 [ 32.593958][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.594089][ C2] _raw_write_lock+0x30/0x40 [ 32.594302][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.594437][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.594569][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.594703][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.594914][ C2] ? call_timer_fn+0xe8/0x230 [ 32.595046][ C2] ? lock_acquire+0x32/0xc0 [ 32.595179][ C2] ? call_timer_fn+0xe8/0x230 [ 32.595314][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.595447][ C2] call_timer_fn+0x13b/0x230 [ 32.595739][ C2] ? call_timer_fn+0xe8/0x230 [ 32.595871][ C2] ? call_timer_fn+0xe8/0x230 [ 32.596003][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.596136][ C2] ? mark_lock+0x38/0x3e0 [ 32.596315][ C2] __run_timers+0x545/0x810 [ 32.596450][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.596583][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.596715][ C2] ? __lock_release+0x103/0x460 [ 32.596931][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.597064][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.597196][ C2] ? lock_acquire+0x32/0xc0 [ 32.597332][ C2] ? timer_expire_remote+0x93/0xe0 [ 32.597466][ C2] timer_expire_remote+0x9b/0xe0 [ 32.597687][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.597822][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 32.597989][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.598128][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.598341][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 32.598476][ C2] __do_softirq+0x1f8/0x5df [ 32.598610][ C2] irq_exit_rcu+0x97/0xc0 [ 32.598711][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.598933][ C2] [ 32.599003][ C2] [ 32.599070][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.599238][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.599381][ 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 [ 32.599853][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 32.600027][ C2] RAX: 00000000000da5c1 RBX: 1ffff9200002bfc1 RCX: ffffffff9c932ea5 [ 32.600310][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9a0ac1d4 [ 32.600512][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 32.600791][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 32.600991][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.601193][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.601327][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.601464][ C2] default_idle_call+0x6d/0xb0 [ 32.601599][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.601731][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.601864][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.602080][ C2] do_idle+0xf9/0x160 [ 32.602182][ C2] cpu_startup_entry+0x54/0x60 [ 32.602315][ C2] start_secondary+0x21c/0x2b0 [ 32.602447][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.602660][ C2] common_startup_64+0x12c/0x138 [ 32.602796][ C2]