[ 51.999055][ C1] [ 51.999207][ C1] ======================================================== [ 51.999427][ C1] WARNING: possible irq lock inversion dependency detected [ 51.999646][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 51.999785][ C1] -------------------------------------------------------- [ 52.000012][ C1] swapper/1/0 just changed the state of lock: [ 52.000188][ C1] ffff88800526bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 52.000451][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 52.000693][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 52.000697][ C1] [ 52.000697][ C1] [ 52.000697][ C1] and interrupts could create inverse lock ordering between them. [ 52.000697][ C1] [ 52.001242][ C1] [ 52.001242][ C1] other info that might help us debug this: [ 52.001454][ C1] Possible interrupt unsafe locking scenario: [ 52.001454][ C1] [ 52.001674][ C1] CPU0 CPU1 [ 52.001817][ C1] ---- ---- [ 52.001959][ C1] lock(&p->alloc_lock); [ 52.002080][ C1] local_irq_disable(); [ 52.002264][ C1] lock(&ndev->lock); [ 52.002443][ C1] lock(&p->alloc_lock); [ 52.002635][ C1] [ 52.002744][ C1] lock(&ndev->lock); [ 52.002852][ C1] [ 52.002852][ C1] *** DEADLOCK *** [ 52.002852][ C1] [ 52.003066][ C1] 1 lock held by swapper/1/0: [ 52.003205][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 52.003464][ C1] [ 52.003464][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 52.003707][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 52.003856][ C1] HARDIRQ-ON-W at: [ 52.003964][ C1] __lock_acquire+0x797/0x1570 [ 52.004151][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.004329][ C1] _raw_spin_lock+0x30/0x40 [ 52.004510][ C1] set_mems_allowed+0x1d/0x210 [ 52.004692][ C1] kernel_init_freeable+0x72/0x310 [ 52.004873][ C1] kernel_init+0x20/0x200 [ 52.005057][ C1] ret_from_fork+0x31/0x70 [ 52.005237][ C1] ret_from_fork_asm+0x1a/0x30 [ 52.005417][ C1] SOFTIRQ-ON-W at: [ 52.005528][ C1] __lock_acquire+0x797/0x1570 [ 52.005708][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.005886][ C1] _raw_spin_lock+0x30/0x40 [ 52.006068][ C1] set_mems_allowed+0x1d/0x210 [ 52.006248][ C1] kernel_init_freeable+0x72/0x310 [ 52.006430][ C1] kernel_init+0x20/0x200 [ 52.006609][ C1] ret_from_fork+0x31/0x70 [ 52.006783][ C1] ret_from_fork_asm+0x1a/0x30 [ 52.006980][ C1] INITIAL USE at: [ 52.007088][ C1] __lock_acquire+0x797/0x1570 [ 52.007271][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.007452][ C1] _raw_spin_lock+0x30/0x40 [ 52.007638][ C1] set_mems_allowed+0x1d/0x210 [ 52.007820][ C1] kernel_init_freeable+0x72/0x310 [ 52.007997][ C1] kernel_init+0x20/0x200 [ 52.008180][ C1] ret_from_fork+0x31/0x70 [ 52.008355][ C1] ret_from_fork_asm+0x1a/0x30 [ 52.008544][ C1] } [ 52.008619][ C1] ... key at: [] __key.388+0x0/0x40 [ 52.008833][ C1] ... acquired at: [ 52.008942][ C1] __lock_acquire+0xaf0/0x1570 [ 52.009087][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.009227][ C1] _raw_spin_lock+0x30/0x40 [ 52.009370][ C1] __get_task_comm+0x27/0x70 [ 52.009519][ C1] ref_tracker_alloc+0x2ee/0x490 [ 52.009665][ C1] netdev_get_by_index+0x5e/0x80 [ 52.009808][ C1] fib6_nh_init+0x3d8/0x1580 [ 52.009954][ C1] ip6_route_info_create+0xf18/0x17d0 [ 52.010091][ C1] addrconf_f6i_alloc+0x265/0x560 [ 52.010229][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 52.010370][ C1] addrconf_join_anycast+0x1c0/0x220 [ 52.010513][ C1] dev_forward_change+0x2a6/0x7b0 [ 52.010652][ C1] addrconf_fixup_forwarding+0x152/0x460 [ 52.010849][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 52.011017][ C1] proc_sys_call_handler+0x403/0x5e0 [ 52.011177][ C1] vfs_write+0x9e5/0x10a0 [ 52.011339][ C1] ksys_write+0xf5/0x1e0 [ 52.011498][ C1] do_syscall_64+0xc6/0x1e0 [ 52.011658][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.011851][ C1] [ 52.011937][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 52.012108][ C1] HARDIRQ-ON-W at: [ 52.012215][ C1] __lock_acquire+0x797/0x1570 [ 52.012406][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.012597][ C1] _raw_write_lock_bh+0x38/0x50 [ 52.012793][ C1] addrconf_permanent_addr+0x6e/0x670 [ 52.012986][ C1] addrconf_notify+0x749/0xd60 [ 52.013184][ C1] notifier_call_chain+0xcd/0x150 [ 52.013377][ C1] __dev_notify_flags+0xe6/0x250 [ 52.013583][ C1] dev_change_flags+0xec/0x160 [ 52.013784][ C1] do_setlink+0x7d6/0x21e0 [ 52.013981][ C1] __rtnl_newlink+0xaa7/0xd80 [ 52.014186][ C1] rtnl_newlink+0x63/0xa0 [ 52.014376][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.014562][ C1] netlink_rcv_skb+0x130/0x360 [ 52.014752][ C1] netlink_unicast+0x449/0x710 [ 52.014939][ C1] netlink_sendmsg+0x723/0xbe0 [ 52.015125][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 52.015311][ C1] ___sys_sendmsg+0xee/0x170 [ 52.015495][ C1] __sys_sendmsg+0xcd/0x170 [ 52.015685][ C1] do_syscall_64+0xc6/0x1e0 [ 52.015892][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.016120][ C1] HARDIRQ-ON-R at: [ 52.016234][ C1] __lock_acquire+0x797/0x1570 [ 52.016423][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.016616][ C1] _raw_read_lock_bh+0x44/0x80 [ 52.016810][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 52.017004][ C1] inet6_fill_link_af+0x5e/0xe0 [ 52.017199][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 52.017407][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 52.017602][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 52.017838][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 52.018032][ C1] register_netdevice+0x1177/0x1690 [ 52.018241][ C1] register_netdev+0x20/0x40 [ 52.018436][ C1] vti6_init_net+0x25d/0x380 [ 52.018644][ C1] ops_init+0x9b/0x560 [ 52.018798][ C1] register_pernet_operations+0x2db/0x710 [ 52.019024][ C1] register_pernet_device+0x2a/0x60 [ 52.019233][ C1] vti6_tunnel_init+0x18/0x110 [ 52.019439][ C1] do_one_initcall+0x8d/0x1e0 [ 52.019632][ C1] do_initcalls+0x1b2/0x3e0 [ 52.019844][ C1] kernel_init_freeable+0x232/0x310 [ 52.020038][ C1] kernel_init+0x20/0x200 [ 52.020237][ C1] ret_from_fork+0x31/0x70 [ 52.020435][ C1] ret_from_fork_asm+0x1a/0x30 [ 52.020640][ C1] IN-SOFTIRQ-W at: [ 52.020758][ C1] __lock_acquire+0x797/0x1570 [ 52.020964][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.021158][ C1] _raw_write_lock+0x30/0x40 [ 52.021358][ C1] addrconf_rs_timer+0xa9/0x730 [ 52.021553][ C1] call_timer_fn+0x13b/0x230 [ 52.021752][ C1] __run_timers+0x545/0x810 [ 52.021956][ C1] run_timer_softirq+0xe8/0x1b0 [ 52.022156][ C1] __do_softirq+0x1f8/0x5df [ 52.022346][ C1] irq_exit_rcu+0x97/0xc0 [ 52.022544][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.022789][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.023027][ C1] default_idle+0xf/0x20 [ 52.023228][ C1] default_idle_call+0x6d/0xb0 [ 52.023425][ C1] cpuidle_idle_call+0x1f4/0x280 [ 52.023619][ C1] do_idle+0xf9/0x160 [ 52.023779][ C1] cpu_startup_entry+0x54/0x60 [ 52.023987][ C1] start_secondary+0x21c/0x2b0 [ 52.024184][ C1] common_startup_64+0x12c/0x138 [ 52.024379][ C1] INITIAL USE at: [ 52.024498][ C1] __lock_acquire+0x797/0x1570 [ 52.024694][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.024888][ C1] _raw_write_lock_bh+0x38/0x50 [ 52.025083][ C1] addrconf_permanent_addr+0x6e/0x670 [ 52.025277][ C1] addrconf_notify+0x749/0xd60 [ 52.025471][ C1] notifier_call_chain+0xcd/0x150 [ 52.025677][ C1] __dev_notify_flags+0xe6/0x250 [ 52.025885][ C1] dev_change_flags+0xec/0x160 [ 52.026072][ C1] do_setlink+0x7d6/0x21e0 [ 52.026271][ C1] __rtnl_newlink+0xaa7/0xd80 [ 52.026464][ C1] rtnl_newlink+0x63/0xa0 [ 52.026658][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.026864][ C1] netlink_rcv_skb+0x130/0x360 [ 52.027077][ C1] netlink_unicast+0x449/0x710 [ 52.027273][ C1] netlink_sendmsg+0x723/0xbe0 [ 52.027472][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 52.027668][ C1] ___sys_sendmsg+0xee/0x170 [ 52.027861][ C1] __sys_sendmsg+0xcd/0x170 [ 52.028060][ C1] do_syscall_64+0xc6/0x1e0 [ 52.028280][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.028522][ C1] INITIAL READ USE at: [ 52.028641][ C1] __lock_acquire+0x797/0x1570 [ 52.028836][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.029020][ C1] _raw_read_lock_bh+0x44/0x80 [ 52.029213][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 52.029450][ C1] inet6_fill_link_af+0x5e/0xe0 [ 52.029658][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 52.029855][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 52.030086][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 52.030336][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 52.030531][ C1] register_netdevice+0x1177/0x1690 [ 52.030849][ C1] register_netdev+0x20/0x40 [ 52.031046][ C1] vti6_init_net+0x25d/0x380 [ 52.031243][ C1] ops_init+0x9b/0x560 [ 52.031512][ C1] register_pernet_operations+0x2db/0x710 [ 52.031742][ C1] register_pernet_device+0x2a/0x60 [ 52.031979][ C1] vti6_tunnel_init+0x18/0x110 [ 52.032254][ C1] do_one_initcall+0x8d/0x1e0 [ 52.032449][ C1] do_initcalls+0x1b2/0x3e0 [ 52.032644][ C1] kernel_init_freeable+0x232/0x310 [ 52.032879][ C1] kernel_init+0x20/0x200 [ 52.033159][ C1] ret_from_fork+0x31/0x70 [ 52.033348][ C1] ret_from_fork_asm+0x1a/0x30 [ 52.033534][ C1] } [ 52.033612][ C1] ... key at: [] __key.37+0x0/0x40 [ 52.033912][ C1] ... acquired at: [ 52.034028][ C1] mark_lock+0x28d/0x3e0 [ 52.034179][ C1] mark_usage+0xd9/0x2a0 [ 52.034332][ C1] __lock_acquire+0x797/0x1570 [ 52.034555][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.034706][ C1] _raw_write_lock+0x30/0x40 [ 52.034857][ C1] addrconf_rs_timer+0xa9/0x730 [ 52.035010][ C1] call_timer_fn+0x13b/0x230 [ 52.035235][ C1] __run_timers+0x545/0x810 [ 52.035389][ C1] run_timer_softirq+0xe8/0x1b0 [ 52.035541][ C1] __do_softirq+0x1f8/0x5df [ 52.035692][ C1] irq_exit_rcu+0x97/0xc0 [ 52.035914][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.036104][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.036294][ C1] default_idle+0xf/0x20 [ 52.036444][ C1] default_idle_call+0x6d/0xb0 [ 52.036745][ C1] cpuidle_idle_call+0x1f4/0x280 [ 52.036896][ C1] do_idle+0xf9/0x160 [ 52.037010][ C1] cpu_startup_entry+0x54/0x60 [ 52.037162][ C1] start_secondary+0x21c/0x2b0 [ 52.037383][ C1] common_startup_64+0x12c/0x138 [ 52.037534][ C1] [ 52.037609][ C1] [ 52.037609][ C1] stack backtrace: [ 52.037791][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 52.038112][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 52.038449][ C1] Call Trace: [ 52.038569][ C1] [ 52.038650][ C1] dump_stack_lvl+0x82/0xd0 [ 52.038881][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 52.039073][ C1] ? kernel_text_address+0x17/0xe0 [ 52.039237][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 52.039427][ C1] ? __pfx_usage_skip+0x10/0x10 [ 52.039679][ C1] ? __pfx_usage_match+0x10/0x10 [ 52.039831][ C1] ? arch_stack_walk+0x8c/0xf0 [ 52.039986][ C1] mark_lock_irq+0x4cd/0xa10 [ 52.040151][ C1] ? common_startup_64+0x12c/0x138 [ 52.040378][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 52.040533][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 52.040687][ C1] ? save_trace+0x8f/0x5b0 [ 52.040860][ C1] mark_lock+0x28d/0x3e0 [ 52.040978][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 52.041208][ C1] mark_usage+0xd9/0x2a0 [ 52.041325][ C1] __lock_acquire+0x797/0x1570 [ 52.041478][ C1] ? __pfx_validate_chain+0x10/0x10 [ 52.041631][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.041857][ C1] lock_acquire.part.0+0xeb/0x330 [ 52.042021][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 52.042177][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 52.042328][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 52.042553][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 52.042724][ C1] ? lock_acquire+0x32/0xc0 [ 52.042888][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 52.043055][ C1] _raw_write_lock+0x30/0x40 [ 52.043210][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 52.043436][ C1] addrconf_rs_timer+0xa9/0x730 [ 52.043591][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 52.043747][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.043903][ C1] ? call_timer_fn+0xe8/0x230 [ 52.044133][ C1] ? lock_acquire+0x32/0xc0 [ 52.044289][ C1] ? call_timer_fn+0xe8/0x230 [ 52.044454][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.044602][ C1] call_timer_fn+0x13b/0x230 [ 52.044824][ C1] ? call_timer_fn+0xe8/0x230 [ 52.044975][ C1] ? call_timer_fn+0xe8/0x230 [ 52.045130][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 52.045282][ C1] ? mark_lock+0x38/0x3e0 [ 52.045400][ C1] __run_timers+0x545/0x810 [ 52.045624][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.045777][ C1] ? __pfx___run_timers+0x10/0x10 [ 52.045932][ C1] ? do_raw_spin_lock+0x131/0x270 [ 52.046080][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 52.046304][ C1] ? lock_acquire+0x32/0xc0 [ 52.046456][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 52.046626][ C1] run_timer_softirq+0xe8/0x1b0 [ 52.046779][ C1] __do_softirq+0x1f8/0x5df [ 52.047008][ C1] irq_exit_rcu+0x97/0xc0 [ 52.047124][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.047276][ C1] [ 52.047354][ C1] [ 52.047432][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.047695][ C1] RIP: 0010:default_idle+0xf/0x20 [ 52.047852][ C1] 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 [ 52.048547][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 52.048743][ C1] RAX: 00000000000beb59 RBX: 1ffff92000029fc1 RCX: ffffffff92f32ea5 [ 52.048968][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff906ac1d4 [ 52.049268][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ed709c [ 52.049493][ C1] R10: ffff88802f6b84e3 R11: ffff88802f6ad9b0 R12: 0000000000000000 [ 52.049717][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 52.050018][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 52.050170][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 52.050319][ C1] default_idle_call+0x6d/0xb0 [ 52.050475][ C1] cpuidle_idle_call+0x1f4/0x280 [ 52.050696][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 52.050875][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 52.051029][ C1] do_idle+0xf9/0x160 [ 52.051146][ C1] cpu_startup_entry+0x54/0x60 [ 52.051298][ C1] start_secondary+0x21c/0x2b0 [ 52.051524][ C1] ? __pfx_start_secondary+0x10/0x10 [ 52.051677][ C1] common_startup_64+0x12c/0x138 [ 52.051840][ C1]