[ 25.025828][ T261] ip (261) used greatest stack depth: 23200 bytes left [ 39.722093][ C2] [ 39.722208][ C2] ======================================================== [ 39.722448][ C2] WARNING: possible irq lock inversion dependency detected [ 39.722687][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 39.722842][ C2] -------------------------------------------------------- [ 39.723059][ C2] swapper/2/0 just changed the state of lock: [ 39.723241][ C2] ffff888005ff5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 39.723506][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 39.723730][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 39.723734][ C2] [ 39.723734][ C2] [ 39.723734][ C2] and interrupts could create inverse lock ordering between them. [ 39.723734][ C2] [ 39.724282][ C2] [ 39.724282][ C2] other info that might help us debug this: [ 39.724499][ C2] Possible interrupt unsafe locking scenario: [ 39.724499][ C2] [ 39.724719][ C2] CPU0 CPU1 [ 39.724863][ C2] ---- ---- [ 39.725011][ C2] lock(&p->alloc_lock); [ 39.725125][ C2] local_irq_disable(); [ 39.725302][ C2] lock(&ndev->lock); [ 39.725481][ C2] lock(&p->alloc_lock); [ 39.725661][ C2] [ 39.725769][ C2] lock(&ndev->lock); [ 39.725878][ C2] [ 39.725878][ C2] *** DEADLOCK *** [ 39.725878][ C2] [ 39.726093][ C2] 1 lock held by swapper/2/0: [ 39.726250][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 39.726543][ C2] [ 39.726543][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 39.726820][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 39.726984][ C2] HARDIRQ-ON-W at: [ 39.727107][ C2] __lock_acquire+0x797/0x1570 [ 39.727317][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.727519][ C2] _raw_spin_lock+0x30/0x40 [ 39.727721][ C2] set_mems_allowed+0x1d/0x210 [ 39.727924][ C2] kernel_init_freeable+0x72/0x310 [ 39.728128][ C2] kernel_init+0x20/0x200 [ 39.728331][ C2] ret_from_fork+0x31/0x70 [ 39.728540][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.728739][ C2] SOFTIRQ-ON-W at: [ 39.728860][ C2] __lock_acquire+0x797/0x1570 [ 39.729063][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.729268][ C2] _raw_spin_lock+0x30/0x40 [ 39.729468][ C2] set_mems_allowed+0x1d/0x210 [ 39.729671][ C2] kernel_init_freeable+0x72/0x310 [ 39.729876][ C2] kernel_init+0x20/0x200 [ 39.730073][ C2] ret_from_fork+0x31/0x70 [ 39.730267][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.730472][ C2] INITIAL USE at: [ 39.730600][ C2] __lock_acquire+0x797/0x1570 [ 39.730800][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.730998][ C2] _raw_spin_lock+0x30/0x40 [ 39.731183][ C2] set_mems_allowed+0x1d/0x210 [ 39.731369][ C2] kernel_init_freeable+0x72/0x310 [ 39.731552][ C2] kernel_init+0x20/0x200 [ 39.731736][ C2] ret_from_fork+0x31/0x70 [ 39.731920][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.732107][ C2] } [ 39.732184][ C2] ... key at: [] __key.388+0x0/0x40 [ 39.732406][ C2] ... acquired at: [ 39.732519][ C2] __lock_acquire+0xaf0/0x1570 [ 39.732670][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.732818][ C2] _raw_spin_lock+0x30/0x40 [ 39.732966][ C2] __get_task_comm+0x27/0x70 [ 39.733113][ C2] ref_tracker_alloc+0x2ee/0x490 [ 39.733268][ C2] netdev_get_by_index+0x5e/0x80 [ 39.733415][ C2] fib6_nh_init+0x3d8/0x1580 [ 39.733566][ C2] ip6_route_info_create+0xf18/0x17d0 [ 39.733713][ C2] ip6_route_add+0x1c/0x140 [ 39.733859][ C2] addrconf_prefix_route+0x2a6/0x430 [ 39.734004][ C2] addrconf_permanent_addr+0x32f/0x670 [ 39.734156][ C2] addrconf_notify+0x749/0xd60 [ 39.734302][ C2] notifier_call_chain+0xcd/0x150 [ 39.734451][ C2] __dev_notify_flags+0xe6/0x250 [ 39.734597][ C2] dev_change_flags+0xec/0x160 [ 39.734743][ C2] do_setlink+0x7d6/0x21e0 [ 39.734890][ C2] __rtnl_newlink+0xaa7/0xd80 [ 39.735036][ C2] rtnl_newlink+0x63/0xa0 [ 39.735182][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 39.735326][ C2] netlink_rcv_skb+0x130/0x360 [ 39.735476][ C2] netlink_unicast+0x449/0x710 [ 39.735625][ C2] netlink_sendmsg+0x723/0xbe0 [ 39.735775][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 39.735920][ C2] ___sys_sendmsg+0xee/0x170 [ 39.736069][ C2] __sys_sendmsg+0xcd/0x170 [ 39.736217][ C2] do_syscall_64+0xc6/0x1e0 [ 39.736364][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.736546][ C2] [ 39.736620][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 39.736772][ C2] HARDIRQ-ON-W at: [ 39.736883][ C2] __lock_acquire+0x797/0x1570 [ 39.737069][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.737256][ C2] _raw_write_lock_bh+0x38/0x50 [ 39.737444][ C2] addrconf_permanent_addr+0x6e/0x670 [ 39.737630][ C2] addrconf_notify+0x749/0xd60 [ 39.737818][ C2] notifier_call_chain+0xcd/0x150 [ 39.738000][ C2] __dev_notify_flags+0xe6/0x250 [ 39.738193][ C2] dev_change_flags+0xec/0x160 [ 39.738378][ C2] do_setlink+0x7d6/0x21e0 [ 39.738568][ C2] __rtnl_newlink+0xaa7/0xd80 [ 39.738752][ C2] rtnl_newlink+0x63/0xa0 [ 39.738942][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 39.739125][ C2] netlink_rcv_skb+0x130/0x360 [ 39.739320][ C2] netlink_unicast+0x449/0x710 [ 39.739505][ C2] netlink_sendmsg+0x723/0xbe0 [ 39.739694][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 39.739880][ C2] ___sys_sendmsg+0xee/0x170 [ 39.740068][ C2] __sys_sendmsg+0xcd/0x170 [ 39.740256][ C2] do_syscall_64+0xc6/0x1e0 [ 39.740440][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.740671][ C2] HARDIRQ-ON-R at: [ 39.740784][ C2] __lock_acquire+0x797/0x1570 [ 39.740970][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.741163][ C2] _raw_read_lock_bh+0x44/0x80 [ 39.741355][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 39.741544][ C2] inet6_fill_link_af+0x5e/0xe0 [ 39.741731][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 39.741920][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 39.742107][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 39.742340][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 39.742530][ C2] register_netdevice+0x1177/0x1690 [ 39.742715][ C2] register_netdev+0x20/0x40 [ 39.742898][ C2] vti6_init_net+0x25d/0x380 [ 39.743091][ C2] ops_init+0x9b/0x560 [ 39.743244][ C2] register_pernet_operations+0x2db/0x710 [ 39.743469][ C2] register_pernet_device+0x2a/0x60 [ 39.743654][ C2] vti6_tunnel_init+0x18/0x110 [ 39.743843][ C2] do_one_initcall+0x8d/0x1e0 [ 39.744032][ C2] do_initcalls+0x1b2/0x3e0 [ 39.744223][ C2] kernel_init_freeable+0x232/0x310 [ 39.744409][ C2] kernel_init+0x20/0x200 [ 39.744598][ C2] ret_from_fork+0x31/0x70 [ 39.744784][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.744973][ C2] IN-SOFTIRQ-W at: [ 39.745084][ C2] __lock_acquire+0x797/0x1570 [ 39.745276][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.745467][ C2] _raw_write_lock+0x30/0x40 [ 39.745658][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.745847][ C2] call_timer_fn+0x13b/0x230 [ 39.746033][ C2] __run_timers+0x545/0x810 [ 39.746228][ C2] timer_expire_remote+0x9b/0xe0 [ 39.746432][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 39.746641][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 39.746842][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 39.747046][ C2] __do_softirq+0x1f8/0x5df [ 39.747246][ C2] irq_exit_rcu+0x97/0xc0 [ 39.747447][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.747691][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.747936][ C2] default_idle+0xf/0x20 [ 39.748139][ C2] default_idle_call+0x6d/0xb0 [ 39.748341][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.748544][ C2] do_idle+0xf9/0x160 [ 39.748705][ C2] cpu_startup_entry+0x54/0x60 [ 39.748907][ C2] start_secondary+0x21c/0x2b0 [ 39.749110][ C2] common_startup_64+0x12c/0x138 [ 39.749311][ C2] INITIAL USE at: [ 39.749429][ C2] __lock_acquire+0x797/0x1570 [ 39.749629][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.749830][ C2] _raw_write_lock_bh+0x38/0x50 [ 39.750031][ C2] addrconf_permanent_addr+0x6e/0x670 [ 39.750230][ C2] addrconf_notify+0x749/0xd60 [ 39.750432][ C2] notifier_call_chain+0xcd/0x150 [ 39.750634][ C2] __dev_notify_flags+0xe6/0x250 [ 39.750832][ C2] dev_change_flags+0xec/0x160 [ 39.751032][ C2] do_setlink+0x7d6/0x21e0 [ 39.751230][ C2] __rtnl_newlink+0xaa7/0xd80 [ 39.751431][ C2] rtnl_newlink+0x63/0xa0 [ 39.751629][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 39.751831][ C2] netlink_rcv_skb+0x130/0x360 [ 39.752027][ C2] netlink_unicast+0x449/0x710 [ 39.752230][ C2] netlink_sendmsg+0x723/0xbe0 [ 39.752430][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 39.752631][ C2] ___sys_sendmsg+0xee/0x170 [ 39.752828][ C2] __sys_sendmsg+0xcd/0x170 [ 39.753025][ C2] do_syscall_64+0xc6/0x1e0 [ 39.753315][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.753554][ C2] INITIAL READ USE at: [ 39.753675][ C2] __lock_acquire+0x797/0x1570 [ 39.753874][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.754150][ C2] _raw_read_lock_bh+0x44/0x80 [ 39.754346][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 39.754569][ C2] inet6_fill_link_af+0x5e/0xe0 [ 39.754836][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 39.755027][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 39.755254][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 39.755555][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 39.755743][ C2] register_netdevice+0x1177/0x1690 [ 39.755972][ C2] register_netdev+0x20/0x40 [ 39.756243][ C2] vti6_init_net+0x25d/0x380 [ 39.756437][ C2] ops_init+0x9b/0x560 [ 39.756622][ C2] register_pernet_operations+0x2db/0x710 [ 39.756925][ C2] register_pernet_device+0x2a/0x60 [ 39.757154][ C2] vti6_tunnel_init+0x18/0x110 [ 39.757338][ C2] do_one_initcall+0x8d/0x1e0 [ 39.757609][ C2] do_initcalls+0x1b2/0x3e0 [ 39.757795][ C2] kernel_init_freeable+0x232/0x310 [ 39.758015][ C2] kernel_init+0x20/0x200 [ 39.758201][ C2] ret_from_fork+0x31/0x70 [ 39.758470][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.758658][ C2] } [ 39.758732][ C2] ... key at: [] __key.37+0x0/0x40 [ 39.759038][ C2] ... acquired at: [ 39.759156][ C2] mark_lock+0x28d/0x3e0 [ 39.759302][ C2] mark_usage+0xd9/0x2a0 [ 39.759452][ C2] __lock_acquire+0x797/0x1570 [ 39.759600][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.759756][ C2] _raw_write_lock+0x30/0x40 [ 39.759902][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.760050][ C2] call_timer_fn+0x13b/0x230 [ 39.760202][ C2] __run_timers+0x545/0x810 [ 39.760352][ C2] timer_expire_remote+0x9b/0xe0 [ 39.760500][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 39.760653][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 39.760801][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 39.761029][ C2] __do_softirq+0x1f8/0x5df [ 39.761181][ C2] irq_exit_rcu+0x97/0xc0 [ 39.761333][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.761517][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.761699][ C2] default_idle+0xf/0x20 [ 39.761850][ C2] default_idle_call+0x6d/0xb0 [ 39.762003][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.762154][ C2] do_idle+0xf9/0x160 [ 39.762275][ C2] cpu_startup_entry+0x54/0x60 [ 39.762514][ C2] start_secondary+0x21c/0x2b0 [ 39.762672][ C2] common_startup_64+0x12c/0x138 [ 39.762826][ C2] [ 39.762899][ C2] [ 39.762899][ C2] stack backtrace: [ 39.763173][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 39.763393][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 39.763719][ C2] Call Trace: [ 39.763834][ C2] [ 39.763910][ C2] dump_stack_lvl+0x82/0xd0 [ 39.764060][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 39.764243][ C2] ? kernel_text_address+0x17/0xe0 [ 39.764393][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 39.764574][ C2] ? __pfx_usage_skip+0x10/0x10 [ 39.764720][ C2] ? __pfx_usage_match+0x10/0x10 [ 39.764866][ C2] ? arch_stack_walk+0x8c/0xf0 [ 39.765117][ C2] mark_lock_irq+0x4cd/0xa10 [ 39.765267][ C2] ? common_startup_64+0x12c/0x138 [ 39.765413][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 39.765559][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 39.765706][ C2] ? save_trace+0x8f/0x5b0 [ 39.765852][ C2] mark_lock+0x28d/0x3e0 [ 39.765962][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 39.766106][ C2] mark_usage+0xd9/0x2a0 [ 39.766225][ C2] __lock_acquire+0x797/0x1570 [ 39.766373][ C2] ? __pfx_validate_chain+0x10/0x10 [ 39.766519][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.766663][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.766808][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.766954][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 39.767207][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 39.767355][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.767502][ C2] ? lock_acquire+0x32/0xc0 [ 39.767647][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.767794][ C2] _raw_write_lock+0x30/0x40 [ 39.767939][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.768084][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.768231][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 39.768384][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.768530][ C2] ? call_timer_fn+0xe8/0x230 [ 39.768686][ C2] ? lock_acquire+0x32/0xc0 [ 39.768834][ C2] ? call_timer_fn+0xe8/0x230 [ 39.769090][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.769243][ C2] call_timer_fn+0x13b/0x230 [ 39.769389][ C2] ? call_timer_fn+0xe8/0x230 [ 39.769538][ C2] ? call_timer_fn+0xe8/0x230 [ 39.769690][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 39.769837][ C2] ? mark_lock+0x38/0x3e0 [ 39.769955][ C2] __run_timers+0x545/0x810 [ 39.770104][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.770258][ C2] ? __pfx___run_timers+0x10/0x10 [ 39.770404][ C2] ? __lock_release+0x103/0x460 [ 39.770549][ C2] ? do_raw_spin_lock+0x131/0x270 [ 39.770702][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 39.770856][ C2] ? lock_acquire+0x32/0xc0 [ 39.771106][ C2] ? timer_expire_remote+0x93/0xe0 [ 39.771259][ C2] timer_expire_remote+0x9b/0xe0 [ 39.771413][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 39.771560][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 39.771746][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 39.771894][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 39.772041][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 39.772197][ C2] __do_softirq+0x1f8/0x5df [ 39.772345][ C2] irq_exit_rcu+0x97/0xc0 [ 39.772460][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.772613][ C2] [ 39.772689][ C2] [ 39.772764][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.772949][ C2] RIP: 0010:default_idle+0xf/0x20 [ 39.773222][ 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 [ 39.773754][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 39.773947][ C2] RAX: 000000000012d69f RBX: 1ffff9200002bfc1 RCX: ffffffffbb132ea5 [ 39.774174][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb88ac1d4 [ 39.774399][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 39.774625][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 39.774841][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 39.775066][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 39.775216][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 39.775363][ C2] default_idle_call+0x6d/0xb0 [ 39.775510][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.775657][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 39.775808][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 39.775954][ C2] do_idle+0xf9/0x160 [ 39.776069][ C2] cpu_startup_entry+0x54/0x60 [ 39.776225][ C2] start_secondary+0x21c/0x2b0 [ 39.776371][ C2] ? __pfx_start_secondary+0x10/0x10 [ 39.776525][ C2] common_startup_64+0x12c/0x138 [ 39.776677][ C2]