[ 29.980536][ C0] [ 29.980639][ C0] ======================================================== [ 29.980854][ C0] WARNING: possible irq lock inversion dependency detected [ 29.981069][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 29.981214][ C0] -------------------------------------------------------- [ 29.981426][ C0] swapper/0/0 just changed the state of lock: [ 29.981611][ C0] ffff888007deed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.981870][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.982083][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 29.982087][ C0] [ 29.982087][ C0] [ 29.982087][ C0] and interrupts could create inverse lock ordering between them. [ 29.982087][ C0] [ 29.982609][ C0] [ 29.982609][ C0] other info that might help us debug this: [ 29.982817][ C0] Possible interrupt unsafe locking scenario: [ 29.982817][ C0] [ 29.983031][ C0] CPU0 CPU1 [ 29.983174][ C0] ---- ---- [ 29.983316][ C0] lock(&p->alloc_lock); [ 29.983426][ C0] local_irq_disable(); [ 29.983603][ C0] lock(&ndev->lock); [ 29.983782][ C0] lock(&p->alloc_lock); [ 29.983966][ C0] [ 29.984077][ C0] lock(&ndev->lock); [ 29.984186][ C0] [ 29.984186][ C0] *** DEADLOCK *** [ 29.984186][ C0] [ 29.984396][ C0] 1 lock held by swapper/0/0: [ 29.984538][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.984802][ C0] [ 29.984802][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 29.985051][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.985202][ C0] HARDIRQ-ON-W at: [ 29.985316][ C0] __lock_acquire+0x797/0x1570 [ 29.985507][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.985693][ C0] _raw_spin_lock+0x30/0x40 [ 29.985883][ C0] set_mems_allowed+0x1d/0x210 [ 29.986068][ C0] kernel_init_freeable+0x72/0x310 [ 29.986259][ C0] kernel_init+0x20/0x200 [ 29.986446][ C0] ret_from_fork+0x31/0x70 [ 29.986631][ C0] ret_from_fork_asm+0x1a/0x30 [ 29.986817][ C0] SOFTIRQ-ON-W at: [ 29.986931][ C0] __lock_acquire+0x797/0x1570 [ 29.987115][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.987298][ C0] _raw_spin_lock+0x30/0x40 [ 29.987488][ C0] set_mems_allowed+0x1d/0x210 [ 29.987671][ C0] kernel_init_freeable+0x72/0x310 [ 29.987862][ C0] kernel_init+0x20/0x200 [ 29.988045][ C0] ret_from_fork+0x31/0x70 [ 29.988229][ C0] ret_from_fork_asm+0x1a/0x30 [ 29.988415][ C0] INITIAL USE at: [ 29.988529][ C0] __lock_acquire+0x797/0x1570 [ 29.988718][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.988906][ C0] _raw_spin_lock+0x30/0x40 [ 29.989090][ C0] set_mems_allowed+0x1d/0x210 [ 29.989275][ C0] kernel_init_freeable+0x72/0x310 [ 29.989460][ C0] kernel_init+0x20/0x200 [ 29.989650][ C0] ret_from_fork+0x31/0x70 [ 29.989841][ C0] ret_from_fork_asm+0x1a/0x30 [ 29.990023][ C0] } [ 29.990098][ C0] ... key at: [] __key.388+0x0/0x40 [ 29.990320][ C0] ... acquired at: [ 29.990430][ C0] __lock_acquire+0xaf0/0x1570 [ 29.990576][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.990726][ C0] _raw_spin_lock+0x30/0x40 [ 29.990867][ C0] __get_task_comm+0x27/0x70 [ 29.991018][ C0] ref_tracker_alloc+0x2ee/0x490 [ 29.991166][ C0] netdev_get_by_index+0x5e/0x80 [ 29.991310][ C0] fib6_nh_init+0x3d8/0x1580 [ 29.991456][ C0] ip6_route_info_create+0xf18/0x17d0 [ 29.991600][ C0] ip6_route_add+0x1c/0x140 [ 29.991746][ C0] addrconf_prefix_route+0x2a6/0x430 [ 29.991891][ C0] addrconf_permanent_addr+0x32f/0x670 [ 29.992041][ C0] addrconf_notify+0x749/0xd60 [ 29.992189][ C0] notifier_call_chain+0xcd/0x150 [ 29.992335][ C0] __dev_notify_flags+0xe6/0x250 [ 29.992488][ C0] dev_change_flags+0xec/0x160 [ 29.992630][ C0] do_setlink+0x7d6/0x21e0 [ 29.992776][ C0] __rtnl_newlink+0xaa7/0xd80 [ 29.992921][ C0] rtnl_newlink+0x63/0xa0 [ 29.993066][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.993210][ C0] netlink_rcv_skb+0x130/0x360 [ 29.993358][ C0] netlink_unicast+0x449/0x710 [ 29.993504][ C0] netlink_sendmsg+0x723/0xbe0 [ 29.993650][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 29.993794][ C0] ___sys_sendmsg+0xee/0x170 [ 29.993939][ C0] __sys_sendmsg+0xcd/0x170 [ 29.994087][ C0] do_syscall_64+0xc6/0x1e0 [ 29.994233][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.994415][ C0] [ 29.994490][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 29.994639][ C0] HARDIRQ-ON-W at: [ 29.994749][ C0] __lock_acquire+0x797/0x1570 [ 29.995029][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.995217][ C0] _raw_write_lock_bh+0x38/0x50 [ 29.995400][ C0] addrconf_permanent_addr+0x6e/0x670 [ 29.995675][ C0] addrconf_notify+0x749/0xd60 [ 29.995853][ C0] notifier_call_chain+0xcd/0x150 [ 29.996034][ C0] __dev_notify_flags+0xe6/0x250 [ 29.996308][ C0] dev_change_flags+0xec/0x160 [ 29.996489][ C0] do_setlink+0x7d6/0x21e0 [ 29.996681][ C0] __rtnl_newlink+0xaa7/0xd80 [ 29.996861][ C0] rtnl_newlink+0x63/0xa0 [ 29.997135][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.997318][ C0] netlink_rcv_skb+0x130/0x360 [ 29.997506][ C0] netlink_unicast+0x449/0x710 [ 29.997776][ C0] netlink_sendmsg+0x723/0xbe0 [ 29.997961][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 29.998235][ C0] ___sys_sendmsg+0xee/0x170 [ 29.998420][ C0] __sys_sendmsg+0xcd/0x170 [ 29.998604][ C0] do_syscall_64+0xc6/0x1e0 [ 29.998785][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.999093][ C0] HARDIRQ-ON-R at: [ 29.999201][ C0] __lock_acquire+0x797/0x1570 [ 29.999392][ C0] lock_acquire.part.0+0xeb/0x330 [ 29.999573][ C0] _raw_read_lock_bh+0x44/0x80 [ 29.999761][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.000031][ C0] inet6_fill_link_af+0x5e/0xe0 [ 30.000212][ C0] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.000394][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.000678][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.000892][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 30.001073][ C0] register_netdevice+0x1177/0x1690 [ 30.001253][ C0] register_netdev+0x20/0x40 [ 30.001432][ C0] vti6_init_net+0x25d/0x380 [ 30.001614][ C0] ops_init+0x9b/0x560 [ 30.001761][ C0] register_pernet_operations+0x2db/0x710 [ 30.001975][ C0] register_pernet_device+0x2a/0x60 [ 30.002154][ C0] vti6_tunnel_init+0x18/0x110 [ 30.002334][ C0] do_one_initcall+0x8d/0x1e0 [ 30.002517][ C0] do_initcalls+0x1b2/0x3e0 [ 30.002700][ C0] kernel_init_freeable+0x232/0x310 [ 30.002884][ C0] kernel_init+0x20/0x200 [ 30.003166][ C0] ret_from_fork+0x31/0x70 [ 30.003351][ C0] ret_from_fork_asm+0x1a/0x30 [ 30.003534][ C0] IN-SOFTIRQ-W at: [ 30.003641][ C0] __lock_acquire+0x797/0x1570 [ 30.003920][ C0] lock_acquire.part.0+0xeb/0x330 [ 30.004104][ C0] _raw_write_lock+0x30/0x40 [ 30.004381][ C0] addrconf_rs_timer+0xa9/0x730 [ 30.004579][ C0] call_timer_fn+0x13b/0x230 [ 30.004855][ C0] __run_timers+0x545/0x810 [ 30.005039][ C0] run_timer_softirq+0xe8/0x1b0 [ 30.005221][ C0] __do_softirq+0x1f8/0x5df [ 30.005499][ C0] irq_exit_rcu+0x97/0xc0 [ 30.005683][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.005909][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.006216][ C0] default_idle+0xf/0x20 [ 30.006401][ C0] default_idle_call+0x6d/0xb0 [ 30.006674][ C0] cpuidle_idle_call+0x1f4/0x280 [ 30.006956][ C0] do_idle+0xf9/0x160 [ 30.007118][ C0] cpu_startup_entry+0x54/0x60 [ 30.007301][ C0] rest_init+0x14f/0x260 [ 30.007484][ C0] start_kernel+0x318/0x3d0 [ 30.007757][ C0] x86_64_start_reservations+0x18/0x30 [ 30.007939][ C0] x86_64_start_kernel+0xba/0x110 [ 30.008221][ C0] common_startup_64+0x12c/0x138 [ 30.008404][ C0] INITIAL USE at: [ 30.008516][ C0] __lock_acquire+0x797/0x1570 [ 30.008702][ C0] lock_acquire.part.0+0xeb/0x330 [ 30.008974][ C0] _raw_write_lock_bh+0x38/0x50 [ 30.009159][ C0] addrconf_permanent_addr+0x6e/0x670 [ 30.009448][ C0] addrconf_notify+0x749/0xd60 [ 30.009626][ C0] notifier_call_chain+0xcd/0x150 [ 30.009916][ C0] __dev_notify_flags+0xe6/0x250 [ 30.010099][ C0] dev_change_flags+0xec/0x160 [ 30.010279][ C0] do_setlink+0x7d6/0x21e0 [ 30.010576][ C0] __rtnl_newlink+0xaa7/0xd80 [ 30.010762][ C0] rtnl_newlink+0x63/0xa0 [ 30.010946][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.011127][ C0] netlink_rcv_skb+0x130/0x360 [ 30.011314][ C0] netlink_unicast+0x449/0x710 [ 30.011496][ C0] netlink_sendmsg+0x723/0xbe0 [ 30.011680][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 30.011873][ C0] ___sys_sendmsg+0xee/0x170 [ 30.012157][ C0] __sys_sendmsg+0xcd/0x170 [ 30.012341][ C0] do_syscall_64+0xc6/0x1e0 [ 30.012521][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.012740][ C0] INITIAL READ USE at: [ 30.012855][ C0] __lock_acquire+0x797/0x1570 [ 30.013132][ C0] lock_acquire.part.0+0xeb/0x330 [ 30.013318][ C0] _raw_read_lock_bh+0x44/0x80 [ 30.013499][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.013716][ C0] inet6_fill_link_af+0x5e/0xe0 [ 30.013901][ C0] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.014268][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.014485][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.014796][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 30.015069][ C0] register_netdevice+0x1177/0x1690 [ 30.015289][ C0] register_netdev+0x20/0x40 [ 30.015471][ C0] vti6_init_net+0x25d/0x380 [ 30.015832][ C0] ops_init+0x9b/0x560 [ 30.016013][ C0] register_pernet_operations+0x2db/0x710 [ 30.016235][ C0] register_pernet_device+0x2a/0x60 [ 30.016555][ C0] vti6_tunnel_init+0x18/0x110 [ 30.016735][ C0] do_one_initcall+0x8d/0x1e0 [ 30.016922][ C0] do_initcalls+0x1b2/0x3e0 [ 30.017104][ C0] kernel_init_freeable+0x232/0x310 [ 30.017319][ C0] kernel_init+0x20/0x200 [ 30.017502][ C0] ret_from_fork+0x31/0x70 [ 30.017684][ C0] ret_from_fork_asm+0x1a/0x30 [ 30.017864][ C0] } [ 30.017938][ C0] ... key at: [] __key.37+0x0/0x40 [ 30.018152][ C0] ... acquired at: [ 30.018259][ C0] mark_lock+0x28d/0x3e0 [ 30.018408][ C0] mark_usage+0xd9/0x2a0 [ 30.018555][ C0] __lock_acquire+0x797/0x1570 [ 30.018707][ C0] lock_acquire.part.0+0xeb/0x330 [ 30.018851][ C0] _raw_write_lock+0x30/0x40 [ 30.019084][ C0] addrconf_rs_timer+0xa9/0x730 [ 30.019226][ C0] call_timer_fn+0x13b/0x230 [ 30.019369][ C0] __run_timers+0x545/0x810 [ 30.019511][ C0] run_timer_softirq+0xe8/0x1b0 [ 30.019654][ C0] __do_softirq+0x1f8/0x5df [ 30.019893][ C0] irq_exit_rcu+0x97/0xc0 [ 30.020039][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.020217][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.020484][ C0] default_idle+0xf/0x20 [ 30.020626][ C0] default_idle_call+0x6d/0xb0 [ 30.020770][ C0] cpuidle_idle_call+0x1f4/0x280 [ 30.020917][ C0] do_idle+0xf9/0x160 [ 30.021025][ C0] cpu_startup_entry+0x54/0x60 [ 30.021169][ C0] rest_init+0x14f/0x260 [ 30.021323][ C0] start_kernel+0x318/0x3d0 [ 30.021472][ C0] x86_64_start_reservations+0x18/0x30 [ 30.021615][ C0] x86_64_start_kernel+0xba/0x110 [ 30.021758][ C0] common_startup_64+0x12c/0x138 [ 30.021901][ C0] [ 30.021973][ C0] [ 30.021973][ C0] stack backtrace: [ 30.022158][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 30.022470][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.022791][ C0] Call Trace: [ 30.022904][ C0] [ 30.022974][ C0] dump_stack_lvl+0x82/0xd0 [ 30.023211][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.023395][ C0] ? kernel_text_address+0x17/0xe0 [ 30.023544][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.023730][ C0] ? __pfx_usage_skip+0x10/0x10 [ 30.023963][ C0] ? __pfx_usage_match+0x10/0x10 [ 30.024105][ C0] ? arch_stack_walk+0x8c/0xf0 [ 30.024337][ C0] mark_lock_irq+0x4cd/0xa10 [ 30.024483][ C0] ? common_startup_64+0x12c/0x138 [ 30.024634][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.024869][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 30.025024][ C0] ? save_trace+0x8f/0x5b0 [ 30.025170][ C0] mark_lock+0x28d/0x3e0 [ 30.025277][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 30.025423][ C0] mark_usage+0xd9/0x2a0 [ 30.025631][ C0] __lock_acquire+0x797/0x1570 [ 30.025778][ C0] ? __pfx_validate_chain+0x10/0x10 [ 30.025924][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.026069][ C0] lock_acquire.part.0+0xeb/0x330 [ 30.026218][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 30.026461][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.026606][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 30.026752][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 30.026896][ C0] ? lock_acquire+0x32/0xc0 [ 30.027042][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 30.027197][ C0] _raw_write_lock+0x30/0x40 [ 30.027436][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 30.027588][ C0] addrconf_rs_timer+0xa9/0x730 [ 30.027736][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.027882][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.028108][ C0] ? call_timer_fn+0xe8/0x230 [ 30.028255][ C0] ? lock_acquire+0x32/0xc0 [ 30.028402][ C0] ? call_timer_fn+0xe8/0x230 [ 30.028549][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.028702][ C0] call_timer_fn+0x13b/0x230 [ 30.029029][ C0] ? call_timer_fn+0xe8/0x230 [ 30.029174][ C0] ? call_timer_fn+0xe8/0x230 [ 30.029317][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 30.029459][ C0] ? mark_lock+0x38/0x3e0 [ 30.029572][ C0] __run_timers+0x545/0x810 [ 30.029818][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.029964][ C0] ? __pfx___run_timers+0x10/0x10 [ 30.030113][ C0] ? do_raw_spin_lock+0x131/0x270 [ 30.030259][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.030488][ C0] ? lock_acquire+0x32/0xc0 [ 30.030632][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 30.030779][ C0] run_timer_softirq+0xe8/0x1b0 [ 30.030922][ C0] __do_softirq+0x1f8/0x5df [ 30.031169][ C0] irq_exit_rcu+0x97/0xc0 [ 30.031279][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.031428][ C0] [ 30.031503][ C0] [ 30.031571][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.031839][ C0] RIP: 0010:default_idle+0xf/0x20 [ 30.032088][ 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 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 [ 30.032602][ C0] RSP: 0018:ffffffff90007e00 EFLAGS: 00000242 [ 30.032886][ C0] RAX: 0000000000091f8f RBX: 1ffffffff2000fc2 RCX: ffffffff8f132ea5 [ 30.033104][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8c8ac1d4 [ 30.033322][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 30.033627][ C0] R10: ffff8880360384e3 R11: 1ffff110003ab10c R12: 0000000000000000 [ 30.033845][ C0] R13: ffffffff90031000 R14: dffffc0000000000 R15: 0000000000014770 [ 30.034068][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.034221][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 30.034369][ C0] default_idle_call+0x6d/0xb0 [ 30.034604][ C0] cpuidle_idle_call+0x1f4/0x280 [ 30.034749][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.034988][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.035135][ C0] do_idle+0xf9/0x160 [ 30.035247][ C0] cpu_startup_entry+0x54/0x60 [ 30.035486][ C0] rest_init+0x14f/0x260 [ 30.035597][ C0] start_kernel+0x318/0x3d0 [ 30.035741][ C0] x86_64_start_reservations+0x18/0x30 [ 30.035888][ C0] x86_64_start_kernel+0xba/0x110 [ 30.036034][ C0] common_startup_64+0x12c/0x138 [ 30.036190][ C0]