[ 32.171266][ C0] [ 32.171497][ C0] ======================================================== [ 32.171830][ C0] WARNING: possible irq lock inversion dependency detected [ 32.172158][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 32.172387][ C0] -------------------------------------------------------- [ 32.172743][ C0] swapper/0/0 just changed the state of lock: [ 32.173011][ C0] ffff888005ba6d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.173386][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.173694][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 32.173701][ C0] [ 32.173701][ C0] [ 32.173701][ C0] and interrupts could create inverse lock ordering between them. [ 32.173701][ C0] [ 32.174504][ C0] [ 32.174504][ C0] other info that might help us debug this: [ 32.174834][ C0] Possible interrupt unsafe locking scenario: [ 32.174834][ C0] [ 32.175170][ C0] CPU0 CPU1 [ 32.175393][ C0] ---- ---- [ 32.175626][ C0] lock(&p->alloc_lock); [ 32.175796][ C0] local_irq_disable(); [ 32.176070][ C0] lock(&ndev->lock); [ 32.176340][ C0] lock(&p->alloc_lock); [ 32.176612][ C0] [ 32.176776][ C0] lock(&ndev->lock); [ 32.176952][ C0] [ 32.176952][ C0] *** DEADLOCK *** [ 32.176952][ C0] [ 32.177274][ C0] 1 lock held by swapper/0/0: [ 32.177499][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.177928][ C0] [ 32.177928][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 32.178330][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.178574][ C0] HARDIRQ-ON-W at: [ 32.178747][ C0] __lock_acquire+0x797/0x1570 [ 32.179041][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.179324][ C0] _raw_spin_lock+0x30/0x40 [ 32.179614][ C0] set_mems_allowed+0x1d/0x210 [ 32.179901][ C0] kernel_init_freeable+0x72/0x310 [ 32.180189][ C0] kernel_init+0x20/0x200 [ 32.180472][ C0] ret_from_fork+0x31/0x70 [ 32.180758][ C0] ret_from_fork_asm+0x1a/0x30 [ 32.181039][ C0] SOFTIRQ-ON-W at: [ 32.181211][ C0] __lock_acquire+0x797/0x1570 [ 32.181492][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.181775][ C0] _raw_spin_lock+0x30/0x40 [ 32.182044][ C0] set_mems_allowed+0x1d/0x210 [ 32.182306][ C0] kernel_init_freeable+0x72/0x310 [ 32.182575][ C0] kernel_init+0x20/0x200 [ 32.182862][ C0] ret_from_fork+0x31/0x70 [ 32.183146][ C0] ret_from_fork_asm+0x1a/0x30 [ 32.183438][ C0] INITIAL USE at: [ 32.183611][ C0] __lock_acquire+0x797/0x1570 [ 32.183874][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.184133][ C0] _raw_spin_lock+0x30/0x40 [ 32.184391][ C0] set_mems_allowed+0x1d/0x210 [ 32.184660][ C0] kernel_init_freeable+0x72/0x310 [ 32.184944][ C0] kernel_init+0x20/0x200 [ 32.185246][ C0] ret_from_fork+0x31/0x70 [ 32.185547][ C0] ret_from_fork_asm+0x1a/0x30 [ 32.185849][ C0] } [ 32.185975][ C0] ... key at: [] __key.387+0x0/0x40 [ 32.186319][ C0] ... acquired at: [ 32.186483][ C0] __lock_acquire+0xaf0/0x1570 [ 32.186719][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.186937][ C0] _raw_spin_lock+0x30/0x40 [ 32.187179][ C0] __get_task_comm+0x27/0x70 [ 32.187353][ C0] ref_tracker_alloc+0x2ee/0x490 [ 32.187532][ C0] netdev_get_by_index+0x5e/0x80 [ 32.187751][ C0] fib6_nh_init+0x3d8/0x15b0 [ 32.187985][ C0] ip6_route_info_create+0xf18/0x17d0 [ 32.188216][ C0] addrconf_f6i_alloc+0x265/0x560 [ 32.188449][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 32.188682][ C0] addrconf_join_anycast+0x1c0/0x220 [ 32.188921][ C0] dev_forward_change+0x2a6/0x7b0 [ 32.189152][ C0] addrconf_fixup_forwarding+0x23f/0x460 [ 32.189441][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 32.189672][ C0] proc_sys_call_handler+0x403/0x5e0 [ 32.189898][ C0] vfs_write+0x9e5/0x10a0 [ 32.190055][ C0] ksys_write+0xf5/0x1e0 [ 32.190201][ C0] do_syscall_64+0xc6/0x1e0 [ 32.190357][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.190550][ C0] [ 32.190640][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 32.190793][ C0] HARDIRQ-ON-W at: [ 32.190907][ C0] __lock_acquire+0x797/0x1570 [ 32.191095][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.191277][ C0] _raw_write_lock_bh+0x38/0x50 [ 32.191460][ C0] addrconf_permanent_addr+0x6e/0x670 [ 32.191676][ C0] addrconf_notify+0x749/0xd60 [ 32.191862][ C0] notifier_call_chain+0xcd/0x150 [ 32.192049][ C0] __dev_notify_flags+0xe6/0x250 [ 32.192234][ C0] dev_change_flags+0xec/0x160 [ 32.192416][ C0] do_setlink+0x7d6/0x21e0 [ 32.192607][ C0] __rtnl_newlink+0xaa7/0xd80 [ 32.192797][ C0] rtnl_newlink+0x63/0xa0 [ 32.192983][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.193167][ C0] netlink_rcv_skb+0x130/0x360 [ 32.193352][ C0] netlink_unicast+0x449/0x710 [ 32.193539][ C0] netlink_sendmsg+0x723/0xbe0 [ 32.193722][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 32.193907][ C0] ___sys_sendmsg+0xee/0x170 [ 32.194103][ C0] __sys_sendmsg+0xcd/0x170 [ 32.194290][ C0] do_syscall_64+0xc6/0x1e0 [ 32.194481][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.194799][ C0] HARDIRQ-ON-R at: [ 32.194972][ C0] __lock_acquire+0x797/0x1570 [ 32.195245][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.195510][ C0] _raw_read_lock_bh+0x44/0x80 [ 32.195807][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.196089][ C0] inet6_fill_link_af+0x5e/0xe0 [ 32.196412][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.196695][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.196990][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.197347][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 32.197644][ C0] register_netdevice+0x1177/0x1690 [ 32.197953][ C0] register_netdev+0x20/0x40 [ 32.198249][ C0] sit_init_net+0x250/0x4f0 [ 32.198547][ C0] ops_init+0x9b/0x560 [ 32.198787][ C0] register_pernet_operations+0x2db/0x710 [ 32.199118][ C0] register_pernet_device+0x2a/0x60 [ 32.199318][ C0] sit_init+0x23/0xe0 [ 32.199466][ C0] do_one_initcall+0x8d/0x1e0 [ 32.199660][ C0] do_initcalls+0x1b2/0x3e0 [ 32.199848][ C0] kernel_init_freeable+0x232/0x310 [ 32.200032][ C0] kernel_init+0x20/0x200 [ 32.200221][ C0] ret_from_fork+0x31/0x70 [ 32.200411][ C0] ret_from_fork_asm+0x1a/0x30 [ 32.200604][ C0] IN-SOFTIRQ-W at: [ 32.200718][ C0] __lock_acquire+0x797/0x1570 [ 32.200951][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.201238][ C0] _raw_write_lock+0x30/0x40 [ 32.201506][ C0] addrconf_rs_timer+0xa9/0x730 [ 32.201789][ C0] call_timer_fn+0x13b/0x230 [ 32.202078][ C0] __run_timers+0x545/0x810 [ 32.202358][ C0] run_timer_softirq+0xe8/0x1b0 [ 32.202645][ C0] __do_softirq+0x1f8/0x5df [ 32.202932][ C0] irq_exit_rcu+0x97/0xc0 [ 32.203219][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.203559][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.203912][ C0] default_idle+0xf/0x20 [ 32.204197][ C0] default_idle_call+0x6d/0xb0 [ 32.204482][ C0] cpuidle_idle_call+0x1f4/0x280 [ 32.204745][ C0] do_idle+0xf9/0x160 [ 32.204953][ C0] cpu_startup_entry+0x54/0x60 [ 32.205215][ C0] rest_init+0x14f/0x260 [ 32.205480][ C0] start_kernel+0x318/0x3d0 [ 32.205779][ C0] x86_64_start_reservations+0x18/0x30 [ 32.206054][ C0] x86_64_start_kernel+0xba/0x110 [ 32.206337][ C0] common_startup_64+0x12c/0x138 [ 32.206605][ C0] INITIAL USE at: [ 32.206759][ C0] __lock_acquire+0x797/0x1570 [ 32.207018][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.207300][ C0] _raw_write_lock_bh+0x38/0x50 [ 32.207585][ C0] addrconf_permanent_addr+0x6e/0x670 [ 32.207878][ C0] addrconf_notify+0x749/0xd60 [ 32.208176][ C0] notifier_call_chain+0xcd/0x150 [ 32.208461][ C0] __dev_notify_flags+0xe6/0x250 [ 32.208743][ C0] dev_change_flags+0xec/0x160 [ 32.209023][ C0] do_setlink+0x7d6/0x21e0 [ 32.209313][ C0] __rtnl_newlink+0xaa7/0xd80 [ 32.209604][ C0] rtnl_newlink+0x63/0xa0 [ 32.209896][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.210193][ C0] netlink_rcv_skb+0x130/0x360 [ 32.210484][ C0] netlink_unicast+0x449/0x710 [ 32.210770][ C0] netlink_sendmsg+0x723/0xbe0 [ 32.211056][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 32.211336][ C0] ___sys_sendmsg+0xee/0x170 [ 32.211618][ C0] __sys_sendmsg+0xcd/0x170 [ 32.211896][ C0] do_syscall_64+0xc6/0x1e0 [ 32.212178][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.212521][ C0] INITIAL READ USE at: [ 32.212696][ C0] __lock_acquire+0x797/0x1570 [ 32.212985][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.213271][ C0] _raw_read_lock_bh+0x44/0x80 [ 32.213549][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.213886][ C0] inet6_fill_link_af+0x5e/0xe0 [ 32.214163][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.214604][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.214950][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.215264][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 32.215668][ C0] register_netdevice+0x1177/0x1690 [ 32.215972][ C0] register_netdev+0x20/0x40 [ 32.216224][ C0] sit_init_net+0x250/0x4f0 [ 32.216615][ C0] ops_init+0x9b/0x560 [ 32.216875][ C0] register_pernet_operations+0x2db/0x710 [ 32.217182][ C0] register_pernet_device+0x2a/0x60 [ 32.217801][ C0] sit_init+0x23/0xe0 [ 32.218088][ C0] do_one_initcall+0x8d/0x1e0 [ 32.218374][ C0] do_initcalls+0x1b2/0x3e0 [ 32.218650][ C0] kernel_init_freeable+0x232/0x310 [ 32.219103][ C0] kernel_init+0x20/0x200 [ 32.219374][ C0] ret_from_fork+0x31/0x70 [ 32.219669][ C0] ret_from_fork_asm+0x1a/0x30 [ 32.220134][ C0] } [ 32.220255][ C0] ... key at: [] __key.37+0x0/0x40 [ 32.220609][ C0] ... acquired at: [ 32.220786][ C0] mark_lock+0x28d/0x3e0 [ 32.221195][ C0] mark_usage+0xd9/0x2a0 [ 32.221426][ C0] __lock_acquire+0x797/0x1570 [ 32.221654][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.221882][ C0] _raw_write_lock+0x30/0x40 [ 32.222114][ C0] addrconf_rs_timer+0xa9/0x730 [ 32.222505][ C0] call_timer_fn+0x13b/0x230 [ 32.222735][ C0] __run_timers+0x545/0x810 [ 32.222966][ C0] run_timer_softirq+0xe8/0x1b0 [ 32.223201][ C0] __do_softirq+0x1f8/0x5df [ 32.223598][ C0] irq_exit_rcu+0x97/0xc0 [ 32.223831][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.224121][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.224408][ C0] default_idle+0xf/0x20 [ 32.224793][ C0] default_idle_call+0x6d/0xb0 [ 32.225027][ C0] cpuidle_idle_call+0x1f4/0x280 [ 32.225238][ C0] do_idle+0xf9/0x160 [ 32.225401][ C0] cpu_startup_entry+0x54/0x60 [ 32.225806][ C0] rest_init+0x14f/0x260 [ 32.226041][ C0] start_kernel+0x318/0x3d0 [ 32.226267][ C0] x86_64_start_reservations+0x18/0x30 [ 32.226491][ C0] x86_64_start_kernel+0xba/0x110 [ 32.226870][ C0] common_startup_64+0x12c/0x138 [ 32.227095][ C0] [ 32.227170][ C0] [ 32.227170][ C0] stack backtrace: [ 32.227351][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 32.227838][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.228329][ C0] Call Trace: [ 32.228502][ C0] [ 32.228619][ C0] dump_stack_lvl+0x82/0xd0 [ 32.229012][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.229302][ C0] ? kernel_text_address+0x17/0xe0 [ 32.229527][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.229823][ C0] ? __pfx_usage_skip+0x10/0x10 [ 32.230146][ C0] ? __pfx_usage_match+0x10/0x10 [ 32.230383][ C0] ? arch_stack_walk+0x8c/0xf0 [ 32.230614][ C0] mark_lock_irq+0x4cd/0xa10 [ 32.230844][ C0] ? common_startup_64+0x12c/0x138 [ 32.231220][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.231451][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 32.231685][ C0] ? save_trace+0x8f/0x5b0 [ 32.231918][ C0] mark_lock+0x28d/0x3e0 [ 32.232090][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 32.232483][ C0] mark_usage+0xd9/0x2a0 [ 32.232657][ C0] __lock_acquire+0x797/0x1570 [ 32.232896][ C0] ? __pfx_validate_chain+0x10/0x10 [ 32.233120][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.233520][ C0] lock_acquire.part.0+0xeb/0x330 [ 32.233759][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 32.233994][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.234212][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 32.234596][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 32.234827][ C0] ? lock_acquire+0x32/0xc0 [ 32.235061][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 32.235287][ C0] _raw_write_lock+0x30/0x40 [ 32.235517][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 32.236039][ C0] addrconf_rs_timer+0xa9/0x730 [ 32.236268][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.236509][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.236731][ C0] ? call_timer_fn+0xe8/0x230 [ 32.237126][ C0] ? lock_acquire+0x32/0xc0 [ 32.237354][ C0] ? call_timer_fn+0xe8/0x230 [ 32.237585][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.237805][ C0] call_timer_fn+0x13b/0x230 [ 32.238172][ C0] ? call_timer_fn+0xe8/0x230 [ 32.238379][ C0] ? call_timer_fn+0xe8/0x230 [ 32.238592][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 32.238800][ C0] ? mark_lock+0x38/0x3e0 [ 32.238973][ C0] __run_timers+0x545/0x810 [ 32.239332][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.239557][ C0] ? __pfx___run_timers+0x10/0x10 [ 32.239779][ C0] ? do_raw_spin_lock+0x131/0x270 [ 32.240000][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.240373][ C0] ? lock_acquire+0x32/0xc0 [ 32.240594][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 32.240820][ C0] run_timer_softirq+0xe8/0x1b0 [ 32.241042][ C0] __do_softirq+0x1f8/0x5df [ 32.241398][ C0] irq_exit_rcu+0x97/0xc0 [ 32.241554][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.241757][ C0] [ 32.241879][ C0] [ 32.241996][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.242398][ C0] RIP: 0010:default_idle+0xf/0x20 [ 32.242613][ C0] 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 93 20 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 [ 32.243533][ C0] RSP: 0018:ffffffffa3207e00 EFLAGS: 00000242 [ 32.243822][ C0] RAX: 00000000000854d5 RBX: 1ffffffff4640fc2 RCX: ffffffffa230f9e5 [ 32.244150][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9fcaa4a4 [ 32.244663][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 32.245012][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 32.245334][ C0] R13: ffffffffa321d000 R14: dffffc0000000000 R15: 0000000000014770 [ 32.245822][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.246049][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 32.246268][ C0] default_idle_call+0x6d/0xb0 [ 32.246494][ C0] cpuidle_idle_call+0x1f4/0x280 [ 32.246865][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.247074][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.247288][ C0] do_idle+0xf9/0x160 [ 32.247462][ C0] cpu_startup_entry+0x54/0x60 [ 32.247689][ C0] rest_init+0x14f/0x260 [ 32.248021][ C0] start_kernel+0x318/0x3d0 [ 32.248254][ C0] x86_64_start_reservations+0x18/0x30 [ 32.248486][ C0] x86_64_start_kernel+0xba/0x110 [ 32.248703][ C0] common_startup_64+0x12c/0x138 [ 32.249087][ C0] [ 49.018553][ T373] Initializing XFRM netlink socket