[ 31.017718][ C2] [ 31.017815][ C2] ======================================================== [ 31.018022][ C2] WARNING: possible irq lock inversion dependency detected [ 31.018219][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.018352][ C2] -------------------------------------------------------- [ 31.018546][ C2] swapper/2/0 just changed the state of lock: [ 31.018715][ C2] ffff88800866ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.018961][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.019157][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.019161][ C2] [ 31.019161][ C2] [ 31.019161][ C2] and interrupts could create inverse lock ordering between them. [ 31.019161][ C2] [ 31.019645][ C2] [ 31.019645][ C2] other info that might help us debug this: [ 31.019846][ C2] Possible interrupt unsafe locking scenario: [ 31.019846][ C2] [ 31.020049][ C2] CPU0 CPU1 [ 31.020181][ C2] ---- ---- [ 31.020317][ C2] lock(&p->alloc_lock); [ 31.020423][ C2] local_irq_disable(); [ 31.020587][ C2] lock(&ndev->lock); [ 31.020757][ C2] lock(&p->alloc_lock); [ 31.020924][ C2] [ 31.021027][ C2] lock(&ndev->lock); [ 31.021131][ C2] [ 31.021131][ C2] *** DEADLOCK *** [ 31.021131][ C2] [ 31.021327][ C2] 1 lock held by swapper/2/0: [ 31.021463][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.021715][ C2] [ 31.021715][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.021944][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.022084][ C2] HARDIRQ-ON-W at: [ 31.022188][ C2] __lock_acquire+0x797/0x1570 [ 31.022363][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.022531][ C2] _raw_spin_lock+0x30/0x40 [ 31.022706][ C2] set_mems_allowed+0x1d/0x210 [ 31.022879][ C2] kernel_init_freeable+0x72/0x310 [ 31.023049][ C2] kernel_init+0x20/0x200 [ 31.023228][ C2] ret_from_fork+0x31/0x70 [ 31.023400][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.023568][ C2] SOFTIRQ-ON-W at: [ 31.023668][ C2] __lock_acquire+0x797/0x1570 [ 31.023840][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.024008][ C2] _raw_spin_lock+0x30/0x40 [ 31.024177][ C2] set_mems_allowed+0x1d/0x210 [ 31.024345][ C2] kernel_init_freeable+0x72/0x310 [ 31.024515][ C2] kernel_init+0x20/0x200 [ 31.024682][ C2] ret_from_fork+0x31/0x70 [ 31.024853][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.025022][ C2] INITIAL USE at: [ 31.025123][ C2] __lock_acquire+0x797/0x1570 [ 31.025295][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.025463][ C2] _raw_spin_lock+0x30/0x40 [ 31.025632][ C2] set_mems_allowed+0x1d/0x210 [ 31.025804][ C2] kernel_init_freeable+0x72/0x310 [ 31.025971][ C2] kernel_init+0x20/0x200 [ 31.026141][ C2] ret_from_fork+0x31/0x70 [ 31.026309][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.026477][ C2] } [ 31.026546][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.026751][ C2] ... acquired at: [ 31.026853][ C2] __lock_acquire+0xaf0/0x1570 [ 31.026989][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.027123][ C2] _raw_spin_lock+0x30/0x40 [ 31.027258][ C2] __get_task_comm+0x27/0x70 [ 31.027398][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.027545][ C2] netdev_get_by_index+0x5e/0x80 [ 31.027679][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.027815][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.027953][ C2] ip6_route_add+0x1c/0x140 [ 31.028087][ C2] addrconf_prefix_route+0x2a6/0x430 [ 31.028221][ C2] addrconf_permanent_addr+0x32f/0x670 [ 31.028355][ C2] addrconf_notify+0x749/0xd60 [ 31.028490][ C2] notifier_call_chain+0xcd/0x150 [ 31.028627][ C2] __dev_notify_flags+0xe6/0x250 [ 31.028765][ C2] dev_change_flags+0xec/0x160 [ 31.028897][ C2] do_setlink+0x7d6/0x21e0 [ 31.029036][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.029173][ C2] rtnl_newlink+0x63/0xa0 [ 31.029307][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.029440][ C2] netlink_rcv_skb+0x130/0x360 [ 31.029577][ C2] netlink_unicast+0x449/0x710 [ 31.029714][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.029847][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.029983][ C2] ___sys_sendmsg+0xee/0x170 [ 31.030116][ C2] __sys_sendmsg+0xcd/0x170 [ 31.030256][ C2] do_syscall_64+0xc6/0x1e0 [ 31.030389][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.030557][ C2] [ 31.030625][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.030763][ C2] HARDIRQ-ON-W at: [ 31.030864][ C2] __lock_acquire+0x797/0x1570 [ 31.031034][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.031203][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.031377][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.031546][ C2] addrconf_notify+0x749/0xd60 [ 31.031713][ C2] notifier_call_chain+0xcd/0x150 [ 31.031879][ C2] __dev_notify_flags+0xe6/0x250 [ 31.032050][ C2] dev_change_flags+0xec/0x160 [ 31.032218][ C2] do_setlink+0x7d6/0x21e0 [ 31.032385][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.032554][ C2] rtnl_newlink+0x63/0xa0 [ 31.032720][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.032886][ C2] netlink_rcv_skb+0x130/0x360 [ 31.033058][ C2] netlink_unicast+0x449/0x710 [ 31.033227][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.033395][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.033567][ C2] ___sys_sendmsg+0xee/0x170 [ 31.033738][ C2] __sys_sendmsg+0xcd/0x170 [ 31.033907][ C2] do_syscall_64+0xc6/0x1e0 [ 31.034075][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.034277][ C2] HARDIRQ-ON-R at: [ 31.034378][ C2] __lock_acquire+0x797/0x1570 [ 31.034555][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.034727][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.034990][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.035158][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.035326][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.035493][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.035664][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.035864][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.036032][ C2] register_netdevice+0x1177/0x1690 [ 31.036285][ C2] register_netdev+0x20/0x40 [ 31.036453][ C2] vti6_init_net+0x25d/0x380 [ 31.036622][ C2] ops_init+0x9b/0x560 [ 31.036759][ C2] register_pernet_operations+0x2db/0x710 [ 31.036962][ C2] register_pernet_device+0x2a/0x60 [ 31.037131][ C2] vti6_tunnel_init+0x18/0x110 [ 31.037387][ C2] do_one_initcall+0x8d/0x1e0 [ 31.037561][ C2] do_initcalls+0x1b2/0x3e0 [ 31.037728][ C2] kernel_init_freeable+0x232/0x310 [ 31.037896][ C2] kernel_init+0x20/0x200 [ 31.038065][ C2] ret_from_fork+0x31/0x70 [ 31.038233][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.038401][ C2] IN-SOFTIRQ-W at: [ 31.038504][ C2] __lock_acquire+0x797/0x1570 [ 31.038755][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.038924][ C2] _raw_write_lock+0x30/0x40 [ 31.039092][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.039263][ C2] call_timer_fn+0x13b/0x230 [ 31.039434][ C2] __run_timers+0x545/0x810 [ 31.039603][ C2] timer_expire_remote+0x9b/0xe0 [ 31.039857][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.040026][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.040196][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.040366][ C2] __do_softirq+0x1f8/0x5df [ 31.040535][ C2] irq_exit_rcu+0x97/0xc0 [ 31.040705][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.040907][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.041210][ C2] default_idle+0xf/0x20 [ 31.041377][ C2] default_idle_call+0x6d/0xb0 [ 31.041547][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.041717][ C2] do_idle+0xf9/0x160 [ 31.041850][ C2] cpu_startup_entry+0x54/0x60 [ 31.042017][ C2] start_secondary+0x21c/0x2b0 [ 31.042192][ C2] common_startup_64+0x12c/0x138 [ 31.042447][ C2] INITIAL USE at: [ 31.042548][ C2] __lock_acquire+0x797/0x1570 [ 31.042717][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.042885][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.043054][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.043221][ C2] addrconf_notify+0x749/0xd60 [ 31.043387][ C2] notifier_call_chain+0xcd/0x150 [ 31.043640][ C2] __dev_notify_flags+0xe6/0x250 [ 31.043812][ C2] dev_change_flags+0xec/0x160 [ 31.043981][ C2] do_setlink+0x7d6/0x21e0 [ 31.044233][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.044401][ C2] rtnl_newlink+0x63/0xa0 [ 31.044568][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.044735][ C2] netlink_rcv_skb+0x130/0x360 [ 31.044906][ C2] netlink_unicast+0x449/0x710 [ 31.045081][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.045248][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.045504][ C2] ___sys_sendmsg+0xee/0x170 [ 31.045671][ C2] __sys_sendmsg+0xcd/0x170 [ 31.045840][ C2] do_syscall_64+0xc6/0x1e0 [ 31.046010][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.046209][ C2] INITIAL READ USE at: [ 31.046313][ C2] __lock_acquire+0x797/0x1570 [ 31.046479][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.046736][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.046904][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.047103][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.047269][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.047439][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.047646][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.047932][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.048099][ C2] register_netdevice+0x1177/0x1690 [ 31.048297][ C2] register_netdev+0x20/0x40 [ 31.048467][ C2] vti6_init_net+0x25d/0x380 [ 31.048634][ C2] ops_init+0x9b/0x560 [ 31.048800][ C2] register_pernet_operations+0x2db/0x710 [ 31.048999][ C2] register_pernet_device+0x2a/0x60 [ 31.049285][ C2] vti6_tunnel_init+0x18/0x110 [ 31.049455][ C2] do_one_initcall+0x8d/0x1e0 [ 31.049625][ C2] do_initcalls+0x1b2/0x3e0 [ 31.049792][ C2] kernel_init_freeable+0x232/0x310 [ 31.049994][ C2] kernel_init+0x20/0x200 [ 31.050162][ C2] ret_from_fork+0x31/0x70 [ 31.050419][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.050587][ C2] } [ 31.050655][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.050856][ C2] ... acquired at: [ 31.050955][ C2] mark_lock+0x28d/0x3e0 [ 31.051088][ C2] mark_usage+0xd9/0x2a0 [ 31.051223][ C2] __lock_acquire+0x797/0x1570 [ 31.051356][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.051490][ C2] _raw_write_lock+0x30/0x40 [ 31.051705][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.051836][ C2] call_timer_fn+0x13b/0x230 [ 31.051977][ C2] __run_timers+0x545/0x810 [ 31.052113][ C2] timer_expire_remote+0x9b/0xe0 [ 31.052246][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.052378][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.052510][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.052641][ C2] __do_softirq+0x1f8/0x5df [ 31.052861][ C2] irq_exit_rcu+0x97/0xc0 [ 31.052997][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.053163][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.053327][ C2] default_idle+0xf/0x20 [ 31.053459][ C2] default_idle_call+0x6d/0xb0 [ 31.053590][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.053723][ C2] do_idle+0xf9/0x160 [ 31.053825][ C2] cpu_startup_entry+0x54/0x60 [ 31.054054][ C2] start_secondary+0x21c/0x2b0 [ 31.054187][ C2] common_startup_64+0x12c/0x138 [ 31.054322][ C2] [ 31.054388][ C2] [ 31.054388][ C2] stack backtrace: [ 31.054550][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.054751][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.055042][ C2] Call Trace: [ 31.055150][ C2] [ 31.055302][ C2] dump_stack_lvl+0x82/0xd0 [ 31.055439][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.055606][ C2] ? kernel_text_address+0x17/0xe0 [ 31.055745][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.055909][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.056041][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.056172][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.056306][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.056523][ C2] ? common_startup_64+0x12c/0x138 [ 31.056659][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.056791][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.056926][ C2] ? save_trace+0x8f/0x5b0 [ 31.057061][ C2] mark_lock+0x28d/0x3e0 [ 31.057163][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.057295][ C2] mark_usage+0xd9/0x2a0 [ 31.057396][ C2] __lock_acquire+0x797/0x1570 [ 31.057539][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.057764][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.057897][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.058029][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.058161][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.058295][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.058431][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.058562][ C2] ? lock_acquire+0x32/0xc0 [ 31.058693][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.058825][ C2] _raw_write_lock+0x30/0x40 [ 31.058959][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.059090][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.059231][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.059365][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.059582][ C2] ? call_timer_fn+0xe8/0x230 [ 31.059714][ C2] ? lock_acquire+0x32/0xc0 [ 31.059846][ C2] ? call_timer_fn+0xe8/0x230 [ 31.059980][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.060115][ C2] call_timer_fn+0x13b/0x230 [ 31.060247][ C2] ? call_timer_fn+0xe8/0x230 [ 31.060378][ C2] ? call_timer_fn+0xe8/0x230 [ 31.060510][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.060730][ C2] ? mark_lock+0x38/0x3e0 [ 31.060834][ C2] __run_timers+0x545/0x810 [ 31.060966][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.061102][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.061233][ C2] ? __lock_release+0x103/0x460 [ 31.061370][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.061503][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.061635][ C2] ? lock_acquire+0x32/0xc0 [ 31.061768][ C2] ? timer_expire_remote+0x93/0xe0 [ 31.061905][ C2] timer_expire_remote+0x9b/0xe0 [ 31.062037][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.062169][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.062335][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.062554][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.062686][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.062823][ C2] __do_softirq+0x1f8/0x5df [ 31.062957][ C2] irq_exit_rcu+0x97/0xc0 [ 31.063057][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.063190][ C2] [ 31.063258][ C2] [ 31.063325][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.063490][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.063632][ 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 [ 31.064199][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.064371][ C2] RAX: 00000000000ddb21 RBX: 1ffff9200002bfc1 RCX: ffffffffb1332ea5 [ 31.064573][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffaeaac1d4 [ 31.064770][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 31.064970][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 31.065166][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.065364][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.065585][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.065718][ C2] default_idle_call+0x6d/0xb0 [ 31.065849][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.065984][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.066116][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.066249][ C2] do_idle+0xf9/0x160 [ 31.066352][ C2] cpu_startup_entry+0x54/0x60 [ 31.066484][ C2] start_secondary+0x21c/0x2b0 [ 31.066615][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.066837][ C2] common_startup_64+0x12c/0x138 [ 31.066971][ C2]