[ 29.993623][ C3] [ 29.993727][ C3] ======================================================== [ 29.993937][ C3] WARNING: possible irq lock inversion dependency detected [ 29.994151][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 29.994287][ C3] -------------------------------------------------------- [ 29.994496][ C3] swapper/3/0 just changed the state of lock: [ 29.994676][ C3] ffff8880062bbd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.994928][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.995128][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 29.995133][ C3] [ 29.995133][ C3] [ 29.995133][ C3] and interrupts could create inverse lock ordering between them. [ 29.995133][ C3] [ 29.995649][ C3] [ 29.995649][ C3] other info that might help us debug this: [ 29.995842][ C3] Possible interrupt unsafe locking scenario: [ 29.995842][ C3] [ 29.996046][ C3] CPU0 CPU1 [ 29.996185][ C3] ---- ---- [ 29.996332][ C3] lock(&p->alloc_lock); [ 29.996440][ C3] local_irq_disable(); [ 29.996609][ C3] lock(&ndev->lock); [ 29.996778][ C3] lock(&p->alloc_lock); [ 29.996943][ C3] [ 29.997053][ C3] lock(&ndev->lock); [ 29.997156][ C3] [ 29.997156][ C3] *** DEADLOCK *** [ 29.997156][ C3] [ 29.997357][ C3] 1 lock held by swapper/3/0: [ 29.997490][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.997735][ C3] [ 29.997735][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 29.997977][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.998127][ C3] HARDIRQ-ON-W at: [ 29.998242][ C3] __lock_acquire+0x797/0x1570 [ 29.998418][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.998603][ C3] _raw_spin_lock+0x30/0x40 [ 29.998778][ C3] set_mems_allowed+0x1d/0x210 [ 29.998961][ C3] kernel_init_freeable+0x72/0x310 [ 29.999142][ C3] kernel_init+0x20/0x200 [ 29.999323][ C3] ret_from_fork+0x31/0x70 [ 29.999502][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.999673][ C3] SOFTIRQ-ON-W at: [ 29.999779][ C3] __lock_acquire+0x797/0x1570 [ 29.999947][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.000120][ C3] _raw_spin_lock+0x30/0x40 [ 30.000292][ C3] set_mems_allowed+0x1d/0x210 [ 30.000459][ C3] kernel_init_freeable+0x72/0x310 [ 30.000637][ C3] kernel_init+0x20/0x200 [ 30.000807][ C3] ret_from_fork+0x31/0x70 [ 30.000973][ C3] ret_from_fork_asm+0x1a/0x30 [ 30.001141][ C3] INITIAL USE at: [ 30.001244][ C3] __lock_acquire+0x797/0x1570 [ 30.001426][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.001597][ C3] _raw_spin_lock+0x30/0x40 [ 30.001766][ C3] set_mems_allowed+0x1d/0x210 [ 30.001940][ C3] kernel_init_freeable+0x72/0x310 [ 30.002110][ C3] kernel_init+0x20/0x200 [ 30.002274][ C3] ret_from_fork+0x31/0x70 [ 30.002445][ C3] ret_from_fork_asm+0x1a/0x30 [ 30.002623][ C3] } [ 30.002693][ C3] ... key at: [] __key.388+0x0/0x40 [ 30.002895][ C3] ... acquired at: [ 30.003001][ C3] __lock_acquire+0xaf0/0x1570 [ 30.003154][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.003294][ C3] _raw_spin_lock+0x30/0x40 [ 30.003433][ C3] __get_task_comm+0x27/0x70 [ 30.003574][ C3] ref_tracker_alloc+0x2ee/0x490 [ 30.003719][ C3] netdev_get_by_index+0x5e/0x80 [ 30.003861][ C3] fib6_nh_init+0x3d8/0x1580 [ 30.004006][ C3] ip6_route_info_create+0xf18/0x17d0 [ 30.004147][ C3] ip6_route_add+0x1c/0x140 [ 30.004288][ C3] addrconf_prefix_route+0x2a6/0x430 [ 30.004427][ C3] addrconf_permanent_addr+0x32f/0x670 [ 30.004574][ C3] addrconf_notify+0x749/0xd60 [ 30.004710][ C3] notifier_call_chain+0xcd/0x150 [ 30.004849][ C3] __dev_notify_flags+0xe6/0x250 [ 30.004991][ C3] dev_change_flags+0xec/0x160 [ 30.005138][ C3] do_setlink+0x7d6/0x21e0 [ 30.005279][ C3] __rtnl_newlink+0xaa7/0xd80 [ 30.005432][ C3] rtnl_newlink+0x63/0xa0 [ 30.005573][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.005704][ C3] netlink_rcv_skb+0x130/0x360 [ 30.005839][ C3] netlink_unicast+0x449/0x710 [ 30.005972][ C3] netlink_sendmsg+0x723/0xbe0 [ 30.006108][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 30.006248][ C3] ___sys_sendmsg+0xee/0x170 [ 30.006389][ C3] __sys_sendmsg+0xcd/0x170 [ 30.006527][ C3] do_syscall_64+0xc6/0x1e0 [ 30.006664][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.006915][ C3] [ 30.006984][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 30.007115][ C3] HARDIRQ-ON-W at: [ 30.007214][ C3] __lock_acquire+0x797/0x1570 [ 30.007384][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.007628][ C3] _raw_write_lock_bh+0x38/0x50 [ 30.007950][ C3] addrconf_permanent_addr+0x6e/0x670 [ 30.008204][ C3] addrconf_notify+0x749/0xd60 [ 30.008379][ C3] notifier_call_chain+0xcd/0x150 [ 30.008550][ C3] __dev_notify_flags+0xe6/0x250 [ 30.008714][ C3] dev_change_flags+0xec/0x160 [ 30.009036][ C3] do_setlink+0x7d6/0x21e0 [ 30.009210][ C3] __rtnl_newlink+0xaa7/0xd80 [ 30.009380][ C3] rtnl_newlink+0x63/0xa0 [ 30.009555][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.009807][ C3] netlink_rcv_skb+0x130/0x360 [ 30.009987][ C3] netlink_unicast+0x449/0x710 [ 30.010158][ C3] netlink_sendmsg+0x723/0xbe0 [ 30.010412][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 30.010593][ C3] ___sys_sendmsg+0xee/0x170 [ 30.010770][ C3] __sys_sendmsg+0xcd/0x170 [ 30.010947][ C3] do_syscall_64+0xc6/0x1e0 [ 30.011195][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.011487][ C3] HARDIRQ-ON-R at: [ 30.011599][ C3] __lock_acquire+0x797/0x1570 [ 30.011863][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.012043][ C3] _raw_read_lock_bh+0x44/0x80 [ 30.012219][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.012389][ C3] inet6_fill_link_af+0x5e/0xe0 [ 30.012660][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.012830][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.013013][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.013294][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 30.013462][ C3] register_netdevice+0x1177/0x1690 [ 30.013632][ C3] register_netdev+0x20/0x40 [ 30.013909][ C3] vti6_init_net+0x25d/0x380 [ 30.014081][ C3] ops_init+0x9b/0x560 [ 30.014219][ C3] register_pernet_operations+0x2db/0x710 [ 30.014432][ C3] register_pernet_device+0x2a/0x60 [ 30.014693][ C3] vti6_tunnel_init+0x18/0x110 [ 30.014863][ C3] do_one_initcall+0x8d/0x1e0 [ 30.015131][ C3] do_initcalls+0x1b2/0x3e0 [ 30.015488][ C3] kernel_init_freeable+0x232/0x310 [ 30.015759][ C3] kernel_init+0x20/0x200 [ 30.015933][ C3] ret_from_fork+0x31/0x70 [ 30.016109][ C3] ret_from_fork_asm+0x1a/0x30 [ 30.016285][ C3] IN-SOFTIRQ-W at: [ 30.016486][ C3] __lock_acquire+0x797/0x1570 [ 30.016662][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.016932][ C3] _raw_write_lock+0x30/0x40 [ 30.017107][ C3] addrconf_rs_timer+0xa9/0x730 [ 30.017286][ C3] call_timer_fn+0x13b/0x230 [ 30.017465][ C3] __run_timers+0x545/0x810 [ 30.017638][ C3] run_timer_softirq+0xe8/0x1b0 [ 30.017819][ C3] __do_softirq+0x1f8/0x5df [ 30.017992][ C3] irq_exit_rcu+0x97/0xc0 [ 30.018250][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.018464][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.018679][ C3] default_idle+0xf/0x20 [ 30.018940][ C3] default_idle_call+0x6d/0xb0 [ 30.019114][ C3] cpuidle_idle_call+0x1f4/0x280 [ 30.019290][ C3] do_idle+0xf9/0x160 [ 30.019432][ C3] cpu_startup_entry+0x54/0x60 [ 30.019821][ C3] start_secondary+0x21c/0x2b0 [ 30.019997][ C3] common_startup_64+0x12c/0x138 [ 30.020172][ C3] INITIAL USE at: [ 30.020278][ C3] __lock_acquire+0x797/0x1570 [ 30.020450][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.020617][ C3] _raw_write_lock_bh+0x38/0x50 [ 30.020809][ C3] addrconf_permanent_addr+0x6e/0x670 [ 30.020986][ C3] addrconf_notify+0x749/0xd60 [ 30.021160][ C3] notifier_call_chain+0xcd/0x150 [ 30.021342][ C3] __dev_notify_flags+0xe6/0x250 [ 30.021512][ C3] dev_change_flags+0xec/0x160 [ 30.021777][ C3] do_setlink+0x7d6/0x21e0 [ 30.021944][ C3] __rtnl_newlink+0xaa7/0xd80 [ 30.022119][ C3] rtnl_newlink+0x63/0xa0 [ 30.022294][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.022471][ C3] netlink_rcv_skb+0x130/0x360 [ 30.022741][ C3] netlink_unicast+0x449/0x710 [ 30.022913][ C3] netlink_sendmsg+0x723/0xbe0 [ 30.023085][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 30.023265][ C3] ___sys_sendmsg+0xee/0x170 [ 30.023512][ C3] __sys_sendmsg+0xcd/0x170 [ 30.023769][ C3] do_syscall_64+0xc6/0x1e0 [ 30.023949][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.024171][ C3] INITIAL READ USE at: [ 30.024275][ C3] __lock_acquire+0x797/0x1570 [ 30.024551][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.024724][ C3] _raw_read_lock_bh+0x44/0x80 [ 30.025058][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.025286][ C3] inet6_fill_link_af+0x5e/0xe0 [ 30.025463][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.025650][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.025930][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.026227][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 30.026400][ C3] register_netdevice+0x1177/0x1690 [ 30.026603][ C3] register_netdev+0x20/0x40 [ 30.026782][ C3] vti6_init_net+0x25d/0x380 [ 30.027042][ C3] ops_init+0x9b/0x560 [ 30.027212][ C3] register_pernet_operations+0x2db/0x710 [ 30.027418][ C3] register_pernet_device+0x2a/0x60 [ 30.027710][ C3] vti6_tunnel_init+0x18/0x110 [ 30.027880][ C3] do_one_initcall+0x8d/0x1e0 [ 30.028172][ C3] do_initcalls+0x1b2/0x3e0 [ 30.028354][ C3] kernel_init_freeable+0x232/0x310 [ 30.028559][ C3] kernel_init+0x20/0x200 [ 30.028730][ C3] ret_from_fork+0x31/0x70 [ 30.028901][ C3] ret_from_fork_asm+0x1a/0x30 [ 30.029160][ C3] } [ 30.029230][ C3] ... key at: [] __key.37+0x0/0x40 [ 30.029444][ C3] ... acquired at: [ 30.029546][ C3] mark_lock+0x28d/0x3e0 [ 30.029684][ C3] mark_usage+0xd9/0x2a0 [ 30.029819][ C3] __lock_acquire+0x797/0x1570 [ 30.029953][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.030088][ C3] _raw_write_lock+0x30/0x40 [ 30.030305][ C3] addrconf_rs_timer+0xa9/0x730 [ 30.030440][ C3] call_timer_fn+0x13b/0x230 [ 30.030574][ C3] __run_timers+0x545/0x810 [ 30.030705][ C3] run_timer_softirq+0xe8/0x1b0 [ 30.030844][ C3] __do_softirq+0x1f8/0x5df [ 30.031056][ C3] irq_exit_rcu+0x97/0xc0 [ 30.031290][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.031454][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.031621][ C3] default_idle+0xf/0x20 [ 30.031752][ C3] default_idle_call+0x6d/0xb0 [ 30.031887][ C3] cpuidle_idle_call+0x1f4/0x280 [ 30.032021][ C3] do_idle+0xf9/0x160 [ 30.032204][ C3] cpu_startup_entry+0x54/0x60 [ 30.032341][ C3] start_secondary+0x21c/0x2b0 [ 30.032555][ C3] common_startup_64+0x12c/0x138 [ 30.032687][ C3] [ 30.032755][ C3] [ 30.032755][ C3] stack backtrace: [ 30.032936][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 30.033226][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.033530][ C3] Call Trace: [ 30.033737][ C3] [ 30.033808][ C3] dump_stack_lvl+0x82/0xd0 [ 30.033953][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.034125][ C3] ? kernel_text_address+0x17/0xe0 [ 30.034263][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.034515][ C3] ? __pfx_usage_skip+0x10/0x10 [ 30.034752][ C3] ? __pfx_usage_match+0x10/0x10 [ 30.034885][ C3] ? arch_stack_walk+0x8c/0xf0 [ 30.035025][ C3] mark_lock_irq+0x4cd/0xa10 [ 30.035166][ C3] ? common_startup_64+0x12c/0x138 [ 30.035304][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.035443][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 30.035621][ C3] ? save_trace+0x8f/0x5b0 [ 30.035766][ C3] mark_lock+0x28d/0x3e0 [ 30.035950][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 30.036089][ C3] mark_usage+0xd9/0x2a0 [ 30.036196][ C3] __lock_acquire+0x797/0x1570 [ 30.036343][ C3] ? __pfx_validate_chain+0x10/0x10 [ 30.036571][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.036708][ C3] lock_acquire.part.0+0xeb/0x330 [ 30.036857][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 30.036997][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.037135][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 30.037355][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 30.037533][ C3] ? lock_acquire+0x32/0xc0 [ 30.037775][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 30.037919][ C3] _raw_write_lock+0x30/0x40 [ 30.038059][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 30.038197][ C3] addrconf_rs_timer+0xa9/0x730 [ 30.038334][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.038465][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.038602][ C3] ? call_timer_fn+0xe8/0x230 [ 30.038738][ C3] ? lock_acquire+0x32/0xc0 [ 30.038881][ C3] ? call_timer_fn+0xe8/0x230 [ 30.039019][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.039233][ C3] call_timer_fn+0x13b/0x230 [ 30.039368][ C3] ? call_timer_fn+0xe8/0x230 [ 30.039504][ C3] ? call_timer_fn+0xe8/0x230 [ 30.039642][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 30.039778][ C3] ? mark_lock+0x38/0x3e0 [ 30.039959][ C3] __run_timers+0x545/0x810 [ 30.040099][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.040324][ C3] ? __pfx___run_timers+0x10/0x10 [ 30.040468][ C3] ? do_raw_spin_lock+0x131/0x270 [ 30.040609][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.040829][ C3] ? lock_acquire+0x32/0xc0 [ 30.040964][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 30.041091][ C3] run_timer_softirq+0xe8/0x1b0 [ 30.041234][ C3] __do_softirq+0x1f8/0x5df [ 30.041370][ C3] irq_exit_rcu+0x97/0xc0 [ 30.041474][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.041618][ C3] [ 30.041783][ C3] [ 30.041853][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.042030][ C3] RIP: 0010:default_idle+0xf/0x20 [ 30.042178][ C3] 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.042776][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 30.042957][ C3] RAX: 0000000000068a29 RBX: 1ffff9200002dfc1 RCX: ffffffff9cd32ea5 [ 30.043177][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9a4ac1d4 [ 30.043386][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 30.043701][ C3] R10: ffff8880361b84e3 R11: ffff8880361bde40 R12: 0000000000000000 [ 30.043912][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 30.044123][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.044265][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 30.044405][ C3] default_idle_call+0x6d/0xb0 [ 30.044540][ C3] cpuidle_idle_call+0x1f4/0x280 [ 30.044674][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.044813][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.045042][ C3] do_idle+0xf9/0x160 [ 30.045142][ C3] cpu_startup_entry+0x54/0x60 [ 30.045373][ C3] start_secondary+0x21c/0x2b0 [ 30.045523][ C3] ? __pfx_start_secondary+0x10/0x10 [ 30.045671][ C3] common_startup_64+0x12c/0x138 [ 30.045817][ C3]