[ 107.683792][ C2] [ 107.683881][ C2] ======================================================== [ 107.684072][ C2] WARNING: possible irq lock inversion dependency detected [ 107.684258][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 107.684384][ C2] -------------------------------------------------------- [ 107.684569][ C2] swapper/2/0 just changed the state of lock: [ 107.684727][ C2] ffff888005c3ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 107.684961][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 107.685151][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 107.685155][ C2] [ 107.685155][ C2] [ 107.685155][ C2] and interrupts could create inverse lock ordering between them. [ 107.685155][ C2] [ 107.685619][ C2] [ 107.685619][ C2] other info that might help us debug this: [ 107.685804][ C2] Possible interrupt unsafe locking scenario: [ 107.685804][ C2] [ 107.685993][ C2] CPU0 CPU1 [ 107.686120][ C2] ---- ---- [ 107.686246][ C2] lock(&p->alloc_lock); [ 107.686344][ C2] local_irq_disable(); [ 107.686501][ C2] lock(&ndev->lock); [ 107.686662][ C2] lock(&p->alloc_lock); [ 107.686821][ C2] [ 107.686918][ C2] lock(&ndev->lock); [ 107.687015][ C2] [ 107.687015][ C2] *** DEADLOCK *** [ 107.687015][ C2] [ 107.687205][ C2] 1 lock held by swapper/2/0: [ 107.687334][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 107.687568][ C2] [ 107.687568][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 107.687789][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 107.687923][ C2] HARDIRQ-ON-W at: [ 107.688024][ C2] __lock_acquire+0x797/0x1570 [ 107.688191][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.688356][ C2] _raw_spin_lock+0x30/0x40 [ 107.688521][ C2] set_mems_allowed+0x1d/0x210 [ 107.688684][ C2] kernel_init_freeable+0x72/0x310 [ 107.688849][ C2] kernel_init+0x20/0x200 [ 107.689011][ C2] ret_from_fork+0x31/0x70 [ 107.689176][ C2] ret_from_fork_asm+0x1a/0x30 [ 107.689340][ C2] SOFTIRQ-ON-W at: [ 107.689439][ C2] __lock_acquire+0x797/0x1570 [ 107.689603][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.689764][ C2] _raw_spin_lock+0x30/0x40 [ 107.689929][ C2] set_mems_allowed+0x1d/0x210 [ 107.690089][ C2] kernel_init_freeable+0x72/0x310 [ 107.690257][ C2] kernel_init+0x20/0x200 [ 107.690417][ C2] ret_from_fork+0x31/0x70 [ 107.690580][ C2] ret_from_fork_asm+0x1a/0x30 [ 107.690741][ C2] INITIAL USE at: [ 107.690837][ C2] __lock_acquire+0x797/0x1570 [ 107.690998][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.691161][ C2] _raw_spin_lock+0x30/0x40 [ 107.691325][ C2] set_mems_allowed+0x1d/0x210 [ 107.691485][ C2] kernel_init_freeable+0x72/0x310 [ 107.691646][ C2] kernel_init+0x20/0x200 [ 107.691807][ C2] ret_from_fork+0x31/0x70 [ 107.691968][ C2] ret_from_fork_asm+0x1a/0x30 [ 107.692128][ C2] } [ 107.692195][ C2] ... key at: [] __key.388+0x0/0x40 [ 107.692389][ C2] ... acquired at: [ 107.692486][ C2] __lock_acquire+0xaf0/0x1570 [ 107.692634][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.692764][ C2] _raw_spin_lock+0x30/0x40 [ 107.692892][ C2] __get_task_comm+0x27/0x70 [ 107.693025][ C2] ref_tracker_alloc+0x2ee/0x490 [ 107.693154][ C2] netdev_get_by_index+0x5e/0x80 [ 107.693287][ C2] fib6_nh_init+0x3d8/0x1580 [ 107.693417][ C2] ip6_route_info_create+0xf18/0x17d0 [ 107.693545][ C2] addrconf_f6i_alloc+0x315/0x560 [ 107.693673][ C2] addrconf_permanent_addr+0x1ed/0x670 [ 107.693802][ C2] addrconf_notify+0x749/0xd60 [ 107.693931][ C2] notifier_call_chain+0xcd/0x150 [ 107.694060][ C2] __dev_notify_flags+0xe6/0x250 [ 107.694189][ C2] dev_change_flags+0xec/0x160 [ 107.694318][ C2] do_setlink+0x7d6/0x21e0 [ 107.694449][ C2] __rtnl_newlink+0xaa7/0xd80 [ 107.694577][ C2] rtnl_newlink+0x63/0xa0 [ 107.694706][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 107.694833][ C2] netlink_rcv_skb+0x130/0x360 [ 107.694964][ C2] netlink_unicast+0x449/0x710 [ 107.695093][ C2] netlink_sendmsg+0x723/0xbe0 [ 107.695222][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 107.695351][ C2] ___sys_sendmsg+0xee/0x170 [ 107.695482][ C2] __sys_sendmsg+0xcd/0x170 [ 107.695611][ C2] do_syscall_64+0xc6/0x1e0 [ 107.695741][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 107.695903][ C2] [ 107.695968][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 107.696102][ C2] HARDIRQ-ON-W at: [ 107.696199][ C2] __lock_acquire+0x797/0x1570 [ 107.696361][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.696525][ C2] _raw_write_lock_bh+0x38/0x50 [ 107.696688][ C2] addrconf_permanent_addr+0x6e/0x670 [ 107.696849][ C2] addrconf_notify+0x749/0xd60 [ 107.697010][ C2] notifier_call_chain+0xcd/0x150 [ 107.697171][ C2] __dev_notify_flags+0xe6/0x250 [ 107.697333][ C2] dev_change_flags+0xec/0x160 [ 107.697496][ C2] do_setlink+0x7d6/0x21e0 [ 107.697657][ C2] __rtnl_newlink+0xaa7/0xd80 [ 107.697820][ C2] rtnl_newlink+0x63/0xa0 [ 107.697982][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 107.698142][ C2] netlink_rcv_skb+0x130/0x360 [ 107.698305][ C2] netlink_unicast+0x449/0x710 [ 107.698466][ C2] netlink_sendmsg+0x723/0xbe0 [ 107.698629][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 107.698790][ C2] ___sys_sendmsg+0xee/0x170 [ 107.698953][ C2] __sys_sendmsg+0xcd/0x170 [ 107.699116][ C2] do_syscall_64+0xc6/0x1e0 [ 107.699277][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 107.699471][ C2] HARDIRQ-ON-R at: [ 107.699569][ C2] __lock_acquire+0x797/0x1570 [ 107.699734][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.699896][ C2] _raw_read_lock_bh+0x44/0x80 [ 107.700058][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 107.700219][ C2] inet6_fill_link_af+0x5e/0xe0 [ 107.700379][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 107.700541][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 107.700705][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 107.700899][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 107.701061][ C2] register_netdevice+0x1177/0x1690 [ 107.701223][ C2] register_netdev+0x20/0x40 [ 107.701383][ C2] vti6_init_net+0x25d/0x380 [ 107.701548][ C2] ops_init+0x9b/0x560 [ 107.701679][ C2] register_pernet_operations+0x2db/0x710 [ 107.701871][ C2] register_pernet_device+0x2a/0x60 [ 107.702032][ C2] vti6_tunnel_init+0x18/0x110 [ 107.702195][ C2] do_one_initcall+0x8d/0x1e0 [ 107.702357][ C2] do_initcalls+0x1b2/0x3e0 [ 107.702518][ C2] kernel_init_freeable+0x232/0x310 [ 107.702696][ C2] kernel_init+0x20/0x200 [ 107.702866][ C2] ret_from_fork+0x31/0x70 [ 107.703028][ C2] ret_from_fork_asm+0x1a/0x30 [ 107.703190][ C2] IN-SOFTIRQ-W at: [ 107.703287][ C2] __lock_acquire+0x797/0x1570 [ 107.703449][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.703609][ C2] _raw_write_lock+0x30/0x40 [ 107.703772][ C2] addrconf_rs_timer+0xa9/0x730 [ 107.703933][ C2] call_timer_fn+0x13b/0x230 [ 107.704094][ C2] __run_timers+0x545/0x810 [ 107.704255][ C2] run_timer_softirq+0xe8/0x1b0 [ 107.704416][ C2] __do_softirq+0x1f8/0x5df [ 107.704577][ C2] irq_exit_rcu+0x97/0xc0 [ 107.704738][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 107.704933][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 107.705126][ C2] default_idle+0xf/0x20 [ 107.705288][ C2] default_idle_call+0x6d/0xb0 [ 107.705449][ C2] cpuidle_idle_call+0x1f4/0x280 [ 107.705610][ C2] do_idle+0xf9/0x160 [ 107.705739][ C2] cpu_startup_entry+0x54/0x60 [ 107.705902][ C2] start_secondary+0x21c/0x2b0 [ 107.706065][ C2] common_startup_64+0x12c/0x138 [ 107.706225][ C2] INITIAL USE at: [ 107.706321][ C2] __lock_acquire+0x797/0x1570 [ 107.706481][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.706642][ C2] _raw_write_lock_bh+0x38/0x50 [ 107.706803][ C2] addrconf_permanent_addr+0x6e/0x670 [ 107.706967][ C2] addrconf_notify+0x749/0xd60 [ 107.707204][ C2] notifier_call_chain+0xcd/0x150 [ 107.707364][ C2] __dev_notify_flags+0xe6/0x250 [ 107.707524][ C2] dev_change_flags+0xec/0x160 [ 107.707684][ C2] do_setlink+0x7d6/0x21e0 [ 107.707925][ C2] __rtnl_newlink+0xaa7/0xd80 [ 107.708088][ C2] rtnl_newlink+0x63/0xa0 [ 107.708248][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 107.708408][ C2] netlink_rcv_skb+0x130/0x360 [ 107.708568][ C2] netlink_unicast+0x449/0x710 [ 107.708729][ C2] netlink_sendmsg+0x723/0xbe0 [ 107.709038][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 107.709199][ C2] ___sys_sendmsg+0xee/0x170 [ 107.709362][ C2] __sys_sendmsg+0xcd/0x170 [ 107.709522][ C2] do_syscall_64+0xc6/0x1e0 [ 107.709757][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 107.709949][ C2] INITIAL READ USE at: [ 107.710045][ C2] __lock_acquire+0x797/0x1570 [ 107.710282][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.710442][ C2] _raw_read_lock_bh+0x44/0x80 [ 107.710605][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 107.710796][ C2] inet6_fill_link_af+0x5e/0xe0 [ 107.711031][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 107.711198][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 107.711390][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 107.711657][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 107.711816][ C2] register_netdevice+0x1177/0x1690 [ 107.712008][ C2] register_netdev+0x20/0x40 [ 107.712242][ C2] vti6_init_net+0x25d/0x380 [ 107.712403][ C2] ops_init+0x9b/0x560 [ 107.712563][ C2] register_pernet_operations+0x2db/0x710 [ 107.712841][ C2] register_pernet_device+0x2a/0x60 [ 107.713032][ C2] vti6_tunnel_init+0x18/0x110 [ 107.713192][ C2] do_one_initcall+0x8d/0x1e0 [ 107.713355][ C2] do_initcalls+0x1b2/0x3e0 [ 107.713515][ C2] kernel_init_freeable+0x232/0x310 [ 107.713707][ C2] kernel_init+0x20/0x200 [ 107.713945][ C2] ret_from_fork+0x31/0x70 [ 107.714106][ C2] ret_from_fork_asm+0x1a/0x30 [ 107.714266][ C2] } [ 107.714331][ C2] ... key at: [] __key.37+0x0/0x40 [ 107.714594][ C2] ... acquired at: [ 107.714689][ C2] mark_lock+0x28d/0x3e0 [ 107.714818][ C2] mark_usage+0xd9/0x2a0 [ 107.714945][ C2] __lock_acquire+0x797/0x1570 [ 107.715077][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.715278][ C2] _raw_write_lock+0x30/0x40 [ 107.715406][ C2] addrconf_rs_timer+0xa9/0x730 [ 107.715534][ C2] call_timer_fn+0x13b/0x230 [ 107.715662][ C2] __run_timers+0x545/0x810 [ 107.715869][ C2] run_timer_softirq+0xe8/0x1b0 [ 107.715997][ C2] __do_softirq+0x1f8/0x5df [ 107.716125][ C2] irq_exit_rcu+0x97/0xc0 [ 107.716252][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 107.716414][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 107.716571][ C2] default_idle+0xf/0x20 [ 107.716698][ C2] default_idle_call+0x6d/0xb0 [ 107.716825][ C2] cpuidle_idle_call+0x1f4/0x280 [ 107.717026][ C2] do_idle+0xf9/0x160 [ 107.717123][ C2] cpu_startup_entry+0x54/0x60 [ 107.717252][ C2] start_secondary+0x21c/0x2b0 [ 107.717380][ C2] common_startup_64+0x12c/0x138 [ 107.717584][ C2] [ 107.717648][ C2] [ 107.717648][ C2] stack backtrace: [ 107.717803][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 107.717994][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 107.718346][ C2] Call Trace: [ 107.718450][ C2] [ 107.718518][ C2] dump_stack_lvl+0x82/0xd0 [ 107.718651][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 107.718892][ C2] ? kernel_text_address+0x17/0xe0 [ 107.719023][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 107.719181][ C2] ? __pfx_usage_skip+0x10/0x10 [ 107.719308][ C2] ? __pfx_usage_match+0x10/0x10 [ 107.719436][ C2] ? arch_stack_walk+0x8c/0xf0 [ 107.719565][ C2] mark_lock_irq+0x4cd/0xa10 [ 107.719693][ C2] ? common_startup_64+0x12c/0x138 [ 107.719823][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 107.720025][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 107.720156][ C2] ? save_trace+0x8f/0x5b0 [ 107.720285][ C2] mark_lock+0x28d/0x3e0 [ 107.720382][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 107.720511][ C2] mark_usage+0xd9/0x2a0 [ 107.720679][ C2] __lock_acquire+0x797/0x1570 [ 107.720809][ C2] ? __pfx_validate_chain+0x10/0x10 [ 107.720939][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 107.721066][ C2] lock_acquire.part.0+0xeb/0x330 [ 107.721267][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 107.721395][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 107.721523][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 107.721650][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 107.721848][ C2] ? lock_acquire+0x32/0xc0 [ 107.721974][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 107.722102][ C2] _raw_write_lock+0x30/0x40 [ 107.722231][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 107.722357][ C2] addrconf_rs_timer+0xa9/0x730 [ 107.722556][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 107.722688][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 107.722816][ C2] ? call_timer_fn+0xe8/0x230 [ 107.722943][ C2] ? lock_acquire+0x32/0xc0 [ 107.723143][ C2] ? call_timer_fn+0xe8/0x230 [ 107.723271][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 107.723401][ C2] call_timer_fn+0x13b/0x230 [ 107.723529][ C2] ? call_timer_fn+0xe8/0x230 [ 107.723728][ C2] ? call_timer_fn+0xe8/0x230 [ 107.723866][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 107.723992][ C2] ? mark_lock+0x38/0x3e0 [ 107.724106][ C2] __run_timers+0x545/0x810 [ 107.724233][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 107.724433][ C2] ? __pfx___run_timers+0x10/0x10 [ 107.724566][ C2] ? do_raw_spin_lock+0x131/0x270 [ 107.724694][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 107.724820][ C2] ? lock_acquire+0x32/0xc0 [ 107.725019][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 107.725148][ C2] run_timer_softirq+0xe8/0x1b0 [ 107.725276][ C2] __do_softirq+0x1f8/0x5df [ 107.725406][ C2] irq_exit_rcu+0x97/0xc0 [ 107.725575][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 107.725713][ C2] [ 107.725778][ C2] [ 107.725841][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 107.725994][ C2] RIP: 0010:default_idle+0xf/0x20 [ 107.726218][ 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 [ 107.726668][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 107.726911][ C2] RAX: 000000000036229d RBX: 1ffff9200002bfc1 RCX: ffffffff9a732ea5 [ 107.727102][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff97eac1d4 [ 107.727291][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 107.727582][ C2] R10: ffff88802f7384e3 R11: ffff88802f73de40 R12: 0000000000000000 [ 107.727772][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 107.727966][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 107.728166][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 107.728294][ C2] default_idle_call+0x6d/0xb0 [ 107.728420][ C2] cpuidle_idle_call+0x1f4/0x280 [ 107.728547][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 107.728825][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 107.728954][ C2] do_idle+0xf9/0x160 [ 107.729051][ C2] cpu_startup_entry+0x54/0x60 [ 107.729180][ C2] start_secondary+0x21c/0x2b0 [ 107.729309][ C2] ? __pfx_start_secondary+0x10/0x10 [ 107.729437][ C2] common_startup_64+0x12c/0x138 [ 107.729567][ C2]