[ 25.498920][ T263] ip (263) used greatest stack depth: 23520 bytes left [ 31.529688][ C1] [ 31.529804][ C1] ======================================================== [ 31.530031][ C1] WARNING: possible irq lock inversion dependency detected [ 31.530253][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 31.530394][ C1] -------------------------------------------------------- [ 31.530614][ C1] swapper/1/0 just changed the state of lock: [ 31.530796][ C1] ffff888005f16d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.531062][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.531277][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 31.531281][ C1] [ 31.531281][ C1] [ 31.531281][ C1] and interrupts could create inverse lock ordering between them. [ 31.531281][ C1] [ 31.531812][ C1] [ 31.531812][ C1] other info that might help us debug this: [ 31.532025][ C1] Possible interrupt unsafe locking scenario: [ 31.532025][ C1] [ 31.532237][ C1] CPU0 CPU1 [ 31.532381][ C1] ---- ---- [ 31.532531][ C1] lock(&p->alloc_lock); [ 31.532642][ C1] local_irq_disable(); [ 31.532827][ C1] lock(&ndev->lock); [ 31.533012][ C1] lock(&p->alloc_lock); [ 31.533197][ C1] [ 31.533308][ C1] lock(&ndev->lock); [ 31.533423][ C1] [ 31.533423][ C1] *** DEADLOCK *** [ 31.533423][ C1] [ 31.533637][ C1] 1 lock held by swapper/1/0: [ 31.533787][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.534048][ C1] [ 31.534048][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 31.534305][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.534462][ C1] HARDIRQ-ON-W at: [ 31.534583][ C1] __lock_acquire+0x797/0x1570 [ 31.534777][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.534963][ C1] _raw_spin_lock+0x30/0x40 [ 31.535154][ C1] set_mems_allowed+0x1d/0x210 [ 31.535345][ C1] kernel_init_freeable+0x72/0x310 [ 31.535536][ C1] kernel_init+0x20/0x200 [ 31.535727][ C1] ret_from_fork+0x31/0x70 [ 31.535917][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.536100][ C1] SOFTIRQ-ON-W at: [ 31.536214][ C1] __lock_acquire+0x797/0x1570 [ 31.536402][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.536588][ C1] _raw_spin_lock+0x30/0x40 [ 31.536783][ C1] set_mems_allowed+0x1d/0x210 [ 31.536966][ C1] kernel_init_freeable+0x72/0x310 [ 31.537151][ C1] kernel_init+0x20/0x200 [ 31.537334][ C1] ret_from_fork+0x31/0x70 [ 31.537516][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.537702][ C1] INITIAL USE at: [ 31.537810][ C1] __lock_acquire+0x797/0x1570 [ 31.537993][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.538174][ C1] _raw_spin_lock+0x30/0x40 [ 31.538352][ C1] set_mems_allowed+0x1d/0x210 [ 31.538532][ C1] kernel_init_freeable+0x72/0x310 [ 31.538718][ C1] kernel_init+0x20/0x200 [ 31.538901][ C1] ret_from_fork+0x31/0x70 [ 31.539085][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.539264][ C1] } [ 31.539338][ C1] ... key at: [] __key.388+0x0/0x40 [ 31.539558][ C1] ... acquired at: [ 31.539666][ C1] __lock_acquire+0xaf0/0x1570 [ 31.539815][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.539962][ C1] _raw_spin_lock+0x30/0x40 [ 31.540111][ C1] __get_task_comm+0x27/0x70 [ 31.540266][ C1] ref_tracker_alloc+0x2ee/0x490 [ 31.540411][ C1] netdev_get_by_index+0x5e/0x80 [ 31.540554][ C1] fib6_nh_init+0x3d8/0x1580 [ 31.540703][ C1] ip6_route_info_create+0xf18/0x17d0 [ 31.540849][ C1] ip6_route_add+0x1c/0x140 [ 31.540997][ C1] addrconf_prefix_route+0x2a6/0x430 [ 31.541144][ C1] addrconf_permanent_addr+0x32f/0x670 [ 31.541291][ C1] addrconf_notify+0x749/0xd60 [ 31.541437][ C1] notifier_call_chain+0xcd/0x150 [ 31.541584][ C1] __dev_notify_flags+0xe6/0x250 [ 31.541730][ C1] dev_change_flags+0xec/0x160 [ 31.541873][ C1] do_setlink+0x7d6/0x21e0 [ 31.542021][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.542175][ C1] rtnl_newlink+0x63/0xa0 [ 31.542321][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.542481][ C1] netlink_rcv_skb+0x130/0x360 [ 31.542640][ C1] netlink_unicast+0x449/0x710 [ 31.542786][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.542934][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.543082][ C1] ___sys_sendmsg+0xee/0x170 [ 31.543232][ C1] __sys_sendmsg+0xcd/0x170 [ 31.543388][ C1] do_syscall_64+0xc6/0x1e0 [ 31.543534][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.543718][ C1] [ 31.543797][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 31.543956][ C1] HARDIRQ-ON-W at: [ 31.544065][ C1] __lock_acquire+0x797/0x1570 [ 31.544246][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.544428][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.544611][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.544793][ C1] addrconf_notify+0x749/0xd60 [ 31.544975][ C1] notifier_call_chain+0xcd/0x150 [ 31.545157][ C1] __dev_notify_flags+0xe6/0x250 [ 31.545340][ C1] dev_change_flags+0xec/0x160 [ 31.545525][ C1] do_setlink+0x7d6/0x21e0 [ 31.545713][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.545898][ C1] rtnl_newlink+0x63/0xa0 [ 31.546080][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.546262][ C1] netlink_rcv_skb+0x130/0x360 [ 31.546444][ C1] netlink_unicast+0x449/0x710 [ 31.546628][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.546817][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.547000][ C1] ___sys_sendmsg+0xee/0x170 [ 31.547185][ C1] __sys_sendmsg+0xcd/0x170 [ 31.547367][ C1] do_syscall_64+0xc6/0x1e0 [ 31.547547][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.547778][ C1] HARDIRQ-ON-R at: [ 31.547887][ C1] __lock_acquire+0x797/0x1570 [ 31.548067][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.548252][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.548438][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.548622][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.548804][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.548988][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.549171][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.549384][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.549570][ C1] register_netdevice+0x1177/0x1690 [ 31.549757][ C1] register_netdev+0x20/0x40 [ 31.549937][ C1] vti6_init_net+0x25d/0x380 [ 31.550121][ C1] ops_init+0x9b/0x560 [ 31.550273][ C1] register_pernet_operations+0x2db/0x710 [ 31.550489][ C1] register_pernet_device+0x2a/0x60 [ 31.550673][ C1] vti6_tunnel_init+0x18/0x110 [ 31.550859][ C1] do_one_initcall+0x8d/0x1e0 [ 31.551042][ C1] do_initcalls+0x1b2/0x3e0 [ 31.551221][ C1] kernel_init_freeable+0x232/0x310 [ 31.551403][ C1] kernel_init+0x20/0x200 [ 31.551582][ C1] ret_from_fork+0x31/0x70 [ 31.551765][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.551951][ C1] IN-SOFTIRQ-W at: [ 31.552060][ C1] __lock_acquire+0x797/0x1570 [ 31.552239][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.552419][ C1] _raw_write_lock+0x30/0x40 [ 31.552600][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.552777][ C1] call_timer_fn+0x13b/0x230 [ 31.552963][ C1] __run_timers+0x545/0x810 [ 31.553144][ C1] run_timer_softirq+0xe8/0x1b0 [ 31.553328][ C1] __do_softirq+0x1f8/0x5df [ 31.553509][ C1] irq_exit_rcu+0x97/0xc0 [ 31.553695][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.553992][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.554210][ C1] default_idle+0xf/0x20 [ 31.554393][ C1] default_idle_call+0x6d/0xb0 [ 31.554654][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.554839][ C1] do_idle+0xf9/0x160 [ 31.554987][ C1] cpu_startup_entry+0x54/0x60 [ 31.555170][ C1] start_secondary+0x21c/0x2b0 [ 31.555356][ C1] common_startup_64+0x12c/0x138 [ 31.555543][ C1] INITIAL USE at: [ 31.555651][ C1] __lock_acquire+0x797/0x1570 [ 31.555833][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.556089][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.556272][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.556452][ C1] addrconf_notify+0x749/0xd60 [ 31.556722][ C1] notifier_call_chain+0xcd/0x150 [ 31.556908][ C1] __dev_notify_flags+0xe6/0x250 [ 31.557091][ C1] dev_change_flags+0xec/0x160 [ 31.557275][ C1] do_setlink+0x7d6/0x21e0 [ 31.557456][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.557638][ C1] rtnl_newlink+0x63/0xa0 [ 31.557821][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.558083][ C1] netlink_rcv_skb+0x130/0x360 [ 31.558266][ C1] netlink_unicast+0x449/0x710 [ 31.558448][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.558720][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.558903][ C1] ___sys_sendmsg+0xee/0x170 [ 31.559084][ C1] __sys_sendmsg+0xcd/0x170 [ 31.559267][ C1] do_syscall_64+0xc6/0x1e0 [ 31.559451][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.559670][ C1] INITIAL READ USE at: [ 31.559779][ C1] __lock_acquire+0x797/0x1570 [ 31.560039][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.560228][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.560411][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.560719][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.560899][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.561080][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.561296][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.561510][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.561691][ C1] register_netdevice+0x1177/0x1690 [ 31.561913][ C1] register_netdev+0x20/0x40 [ 31.562244][ C1] vti6_init_net+0x25d/0x380 [ 31.562427][ C1] ops_init+0x9b/0x560 [ 31.562608][ C1] register_pernet_operations+0x2db/0x710 [ 31.562902][ C1] register_pernet_device+0x2a/0x60 [ 31.563122][ C1] vti6_tunnel_init+0x18/0x110 [ 31.563305][ C1] do_one_initcall+0x8d/0x1e0 [ 31.563562][ C1] do_initcalls+0x1b2/0x3e0 [ 31.563743][ C1] kernel_init_freeable+0x232/0x310 [ 31.563959][ C1] kernel_init+0x20/0x200 [ 31.564216][ C1] ret_from_fork+0x31/0x70 [ 31.564396][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.564580][ C1] } [ 31.564655][ C1] ... key at: [] __key.37+0x0/0x40 [ 31.564947][ C1] ... acquired at: [ 31.565052][ C1] mark_lock+0x28d/0x3e0 [ 31.565198][ C1] mark_usage+0xd9/0x2a0 [ 31.565342][ C1] __lock_acquire+0x797/0x1570 [ 31.565561][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.565706][ C1] _raw_write_lock+0x30/0x40 [ 31.565855][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.566000][ C1] call_timer_fn+0x13b/0x230 [ 31.566144][ C1] __run_timers+0x545/0x810 [ 31.566362][ C1] run_timer_softirq+0xe8/0x1b0 [ 31.566506][ C1] __do_softirq+0x1f8/0x5df [ 31.566653][ C1] irq_exit_rcu+0x97/0xc0 [ 31.566797][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.567052][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.567230][ C1] default_idle+0xf/0x20 [ 31.567375][ C1] default_idle_call+0x6d/0xb0 [ 31.567517][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.567742][ C1] do_idle+0xf9/0x160 [ 31.567851][ C1] cpu_startup_entry+0x54/0x60 [ 31.567993][ C1] start_secondary+0x21c/0x2b0 [ 31.568144][ C1] common_startup_64+0x12c/0x138 [ 31.568289][ C1] [ 31.568361][ C1] [ 31.568361][ C1] stack backtrace: [ 31.568537][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 31.568752][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.569148][ C1] Call Trace: [ 31.569265][ C1] [ 31.569341][ C1] dump_stack_lvl+0x82/0xd0 [ 31.569489][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.569755][ C1] ? kernel_text_address+0x17/0xe0 [ 31.569904][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.570083][ C1] ? __pfx_usage_skip+0x10/0x10 [ 31.570234][ C1] ? __pfx_usage_match+0x10/0x10 [ 31.570379][ C1] ? arch_stack_walk+0x8c/0xf0 [ 31.570524][ C1] mark_lock_irq+0x4cd/0xa10 [ 31.570667][ C1] ? common_startup_64+0x12c/0x138 [ 31.570811][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.571030][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.571176][ C1] ? save_trace+0x8f/0x5b0 [ 31.571318][ C1] mark_lock+0x28d/0x3e0 [ 31.571427][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.571654][ C1] mark_usage+0xd9/0x2a0 [ 31.571762][ C1] __lock_acquire+0x797/0x1570 [ 31.571905][ C1] ? __pfx_validate_chain+0x10/0x10 [ 31.572049][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.572189][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.572336][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.572478][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.572621][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 31.572764][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.573054][ C1] ? lock_acquire+0x32/0xc0 [ 31.573196][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.573341][ C1] _raw_write_lock+0x30/0x40 [ 31.573482][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.573707][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.573851][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.573996][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.574139][ C1] ? call_timer_fn+0xe8/0x230 [ 31.574280][ C1] ? lock_acquire+0x32/0xc0 [ 31.574421][ C1] ? call_timer_fn+0xe8/0x230 [ 31.574563][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.574704][ C1] call_timer_fn+0x13b/0x230 [ 31.574846][ C1] ? call_timer_fn+0xe8/0x230 [ 31.575069][ C1] ? call_timer_fn+0xe8/0x230 [ 31.575210][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 31.575351][ C1] ? mark_lock+0x38/0x3e0 [ 31.575462][ C1] __run_timers+0x545/0x810 [ 31.575701][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.575847][ C1] ? __pfx___run_timers+0x10/0x10 [ 31.575991][ C1] ? trace_rcu_dyntick+0x112/0x180 [ 31.576135][ C1] ? do_raw_spin_lock+0x131/0x270 [ 31.576278][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.576420][ C1] ? lock_acquire+0x32/0xc0 [ 31.576560][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 31.576703][ C1] run_timer_softirq+0xe8/0x1b0 [ 31.576847][ C1] __do_softirq+0x1f8/0x5df [ 31.576994][ C1] irq_exit_rcu+0x97/0xc0 [ 31.577100][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.577243][ C1] [ 31.577321][ C1] [ 31.577399][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.577657][ C1] RIP: 0010:default_idle+0xf/0x20 [ 31.577806][ C1] 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.578310][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 31.578492][ C1] RAX: 000000000007d4b7 RBX: 1ffff92000029fc1 RCX: ffffffff86132ea5 [ 31.578707][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff838ac1d4 [ 31.578998][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 31.579209][ C1] R10: ffff8880360b84e3 R11: ffff8880360bde40 R12: 0000000000000000 [ 31.579419][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 31.579708][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.579855][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 31.579998][ C1] default_idle_call+0x6d/0xb0 [ 31.580145][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.580289][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.580432][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.580575][ C1] do_idle+0xf9/0x160 [ 31.580688][ C1] cpu_startup_entry+0x54/0x60 [ 31.580905][ C1] start_secondary+0x21c/0x2b0 [ 31.581049][ C1] ? __pfx_start_secondary+0x10/0x10 [ 31.581191][ C1] common_startup_64+0x12c/0x138 [ 31.581334][ C1]