[ 31.530800][ C2] [ 31.530925][ C2] ======================================================== [ 31.531132][ C2] WARNING: possible irq lock inversion dependency detected [ 31.531329][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.531475][ C2] -------------------------------------------------------- [ 31.531673][ C2] swapper/2/0 just changed the state of lock: [ 31.531847][ C2] ffff8880089d5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.532104][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.532300][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.532304][ C2] [ 31.532304][ C2] [ 31.532304][ C2] and interrupts could create inverse lock ordering between them. [ 31.532304][ C2] [ 31.532788][ C2] [ 31.532788][ C2] other info that might help us debug this: [ 31.532985][ C2] Possible interrupt unsafe locking scenario: [ 31.532985][ C2] [ 31.533190][ C2] CPU0 CPU1 [ 31.533333][ C2] ---- ---- [ 31.533468][ C2] lock(&p->alloc_lock); [ 31.533574][ C2] local_irq_disable(); [ 31.533743][ C2] lock(&ndev->lock); [ 31.533917][ C2] lock(&p->alloc_lock); [ 31.534088][ C2] [ 31.534191][ C2] lock(&ndev->lock); [ 31.534297][ C2] [ 31.534297][ C2] *** DEADLOCK *** [ 31.534297][ C2] [ 31.534494][ C2] 1 lock held by swapper/2/0: [ 31.534633][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.534876][ C2] [ 31.534876][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.535111][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.535251][ C2] HARDIRQ-ON-W at: [ 31.535353][ C2] __lock_acquire+0x797/0x1570 [ 31.535537][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.535710][ C2] _raw_spin_lock+0x30/0x40 [ 31.535882][ C2] set_mems_allowed+0x1d/0x210 [ 31.536052][ C2] kernel_init_freeable+0x72/0x310 [ 31.536220][ C2] kernel_init+0x20/0x200 [ 31.536391][ C2] ret_from_fork+0x31/0x70 [ 31.536563][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.536733][ C2] SOFTIRQ-ON-W at: [ 31.536837][ C2] __lock_acquire+0x797/0x1570 [ 31.537005][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.537172][ C2] _raw_spin_lock+0x30/0x40 [ 31.537343][ C2] set_mems_allowed+0x1d/0x210 [ 31.537511][ C2] kernel_init_freeable+0x72/0x310 [ 31.537680][ C2] kernel_init+0x20/0x200 [ 31.537848][ C2] ret_from_fork+0x31/0x70 [ 31.538017][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.538184][ C2] INITIAL USE at: [ 31.538285][ C2] __lock_acquire+0x797/0x1570 [ 31.538451][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.538619][ C2] _raw_spin_lock+0x30/0x40 [ 31.538789][ C2] set_mems_allowed+0x1d/0x210 [ 31.538955][ C2] kernel_init_freeable+0x72/0x310 [ 31.539124][ C2] kernel_init+0x20/0x200 [ 31.539291][ C2] ret_from_fork+0x31/0x70 [ 31.539457][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.539623][ C2] } [ 31.539701][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.539903][ C2] ... acquired at: [ 31.540006][ C2] __lock_acquire+0xaf0/0x1570 [ 31.540140][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.540281][ C2] _raw_spin_lock+0x30/0x40 [ 31.540413][ C2] __get_task_comm+0x27/0x70 [ 31.540547][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.540679][ C2] netdev_get_by_index+0x5e/0x80 [ 31.540815][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.540949][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.541082][ C2] addrconf_f6i_alloc+0x265/0x560 [ 31.541212][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.541343][ C2] addrconf_join_anycast+0x1c0/0x220 [ 31.541475][ C2] dev_forward_change+0x2a6/0x7b0 [ 31.541605][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 31.541770][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 31.541902][ C2] proc_sys_call_handler+0x403/0x5e0 [ 31.542035][ C2] vfs_write+0x9e5/0x10a0 [ 31.542169][ C2] ksys_write+0xf5/0x1e0 [ 31.542300][ C2] do_syscall_64+0xc6/0x1e0 [ 31.542432][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.542598][ C2] [ 31.542664][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.542801][ C2] HARDIRQ-ON-W at: [ 31.542903][ C2] __lock_acquire+0x797/0x1570 [ 31.543067][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.543231][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.543402][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.543567][ C2] addrconf_notify+0x749/0xd60 [ 31.543731][ C2] notifier_call_chain+0xcd/0x150 [ 31.543898][ C2] __dev_notify_flags+0xe6/0x250 [ 31.544072][ C2] dev_change_flags+0xec/0x160 [ 31.544235][ C2] do_setlink+0x7d6/0x21e0 [ 31.544401][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.544564][ C2] rtnl_newlink+0x63/0xa0 [ 31.544728][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.544893][ C2] netlink_rcv_skb+0x130/0x360 [ 31.545060][ C2] netlink_unicast+0x449/0x710 [ 31.545225][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.545389][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.545554][ C2] ___sys_sendmsg+0xee/0x170 [ 31.545716][ C2] __sys_sendmsg+0xcd/0x170 [ 31.545879][ C2] do_syscall_64+0xc6/0x1e0 [ 31.546045][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.546241][ C2] HARDIRQ-ON-R at: [ 31.546339][ C2] __lock_acquire+0x797/0x1570 [ 31.546504][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.546667][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.546832][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.546995][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.547162][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.547325][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.547491][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.547689][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.547851][ C2] register_netdevice+0x1177/0x1690 [ 31.548013][ C2] register_netdev+0x20/0x40 [ 31.548179][ C2] vti6_init_net+0x25d/0x380 [ 31.548344][ C2] ops_init+0x9b/0x560 [ 31.548478][ C2] register_pernet_operations+0x2db/0x710 [ 31.548673][ C2] register_pernet_device+0x2a/0x60 [ 31.548838][ C2] vti6_tunnel_init+0x18/0x110 [ 31.549003][ C2] do_one_initcall+0x8d/0x1e0 [ 31.549170][ C2] do_initcalls+0x1b2/0x3e0 [ 31.549338][ C2] kernel_init_freeable+0x232/0x310 [ 31.549502][ C2] kernel_init+0x20/0x200 [ 31.549665][ C2] ret_from_fork+0x31/0x70 [ 31.549832][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.549997][ C2] IN-SOFTIRQ-W at: [ 31.550095][ C2] __lock_acquire+0x797/0x1570 [ 31.550264][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.550428][ C2] _raw_write_lock+0x30/0x40 [ 31.550590][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.550753][ C2] call_timer_fn+0x13b/0x230 [ 31.550919][ C2] __run_timers+0x545/0x810 [ 31.551161][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.551324][ C2] __do_softirq+0x1f8/0x5df [ 31.551494][ C2] irq_exit_rcu+0x97/0xc0 [ 31.551733][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.551930][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.552123][ C2] default_idle+0xf/0x20 [ 31.552359][ C2] default_idle_call+0x6d/0xb0 [ 31.552521][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.552686][ C2] do_idle+0xf9/0x160 [ 31.552821][ C2] cpu_startup_entry+0x54/0x60 [ 31.553064][ C2] start_secondary+0x21c/0x2b0 [ 31.553229][ C2] common_startup_64+0x12c/0x138 [ 31.553403][ C2] INITIAL USE at: [ 31.553502][ C2] __lock_acquire+0x797/0x1570 [ 31.553741][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.553912][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.554075][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.554316][ C2] addrconf_notify+0x749/0xd60 [ 31.554477][ C2] notifier_call_chain+0xcd/0x150 [ 31.554640][ C2] __dev_notify_flags+0xe6/0x250 [ 31.554881][ C2] dev_change_flags+0xec/0x160 [ 31.555047][ C2] do_setlink+0x7d6/0x21e0 [ 31.555209][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.555371][ C2] rtnl_newlink+0x63/0xa0 [ 31.555607][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.555781][ C2] netlink_rcv_skb+0x130/0x360 [ 31.555944][ C2] netlink_unicast+0x449/0x710 [ 31.556110][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.556276][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.556438][ C2] ___sys_sendmsg+0xee/0x170 [ 31.556611][ C2] __sys_sendmsg+0xcd/0x170 [ 31.556775][ C2] do_syscall_64+0xc6/0x1e0 [ 31.556937][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.557130][ C2] INITIAL READ USE at: [ 31.557231][ C2] __lock_acquire+0x797/0x1570 [ 31.557404][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.557567][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.557733][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.557932][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.558094][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.558263][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.558459][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.558652][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.558815][ C2] register_netdevice+0x1177/0x1690 [ 31.559013][ C2] register_netdev+0x20/0x40 [ 31.559174][ C2] vti6_init_net+0x25d/0x380 [ 31.559343][ C2] ops_init+0x9b/0x560 [ 31.559508][ C2] register_pernet_operations+0x2db/0x710 [ 31.559702][ C2] register_pernet_device+0x2a/0x60 [ 31.559898][ C2] vti6_tunnel_init+0x18/0x110 [ 31.560063][ C2] do_one_initcall+0x8d/0x1e0 [ 31.560226][ C2] do_initcalls+0x1b2/0x3e0 [ 31.560392][ C2] kernel_init_freeable+0x232/0x310 [ 31.560736][ C2] kernel_init+0x20/0x200 [ 31.560901][ C2] ret_from_fork+0x31/0x70 [ 31.561065][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.561228][ C2] } [ 31.561368][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.561564][ C2] ... acquired at: [ 31.561663][ C2] mark_lock+0x28d/0x3e0 [ 31.561793][ C2] mark_usage+0xd9/0x2a0 [ 31.561996][ C2] __lock_acquire+0x797/0x1570 [ 31.562125][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.562255][ C2] _raw_write_lock+0x30/0x40 [ 31.562385][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.562587][ C2] call_timer_fn+0x13b/0x230 [ 31.562719][ C2] __run_timers+0x545/0x810 [ 31.562853][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.562984][ C2] __do_softirq+0x1f8/0x5df [ 31.563113][ C2] irq_exit_rcu+0x97/0xc0 [ 31.563321][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.563484][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.563646][ C2] default_idle+0xf/0x20 [ 31.563853][ C2] default_idle_call+0x6d/0xb0 [ 31.563982][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.564112][ C2] do_idle+0xf9/0x160 [ 31.564213][ C2] cpu_startup_entry+0x54/0x60 [ 31.564342][ C2] start_secondary+0x21c/0x2b0 [ 31.564549][ C2] common_startup_64+0x12c/0x138 [ 31.564678][ C2] [ 31.564743][ C2] [ 31.564743][ C2] stack backtrace: [ 31.564906][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.565175][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.565466][ C2] Call Trace: [ 31.565579][ C2] [ 31.565651][ C2] dump_stack_lvl+0x82/0xd0 [ 31.565880][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.566041][ C2] ? kernel_text_address+0x17/0xe0 [ 31.566174][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.566340][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.566469][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.566603][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.566735][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.566866][ C2] ? common_startup_64+0x12c/0x138 [ 31.566996][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.567133][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.567266][ C2] ? save_trace+0x8f/0x5b0 [ 31.567396][ C2] mark_lock+0x28d/0x3e0 [ 31.567569][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.567704][ C2] mark_usage+0xd9/0x2a0 [ 31.567803][ C2] __lock_acquire+0x797/0x1570 [ 31.567935][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.568068][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.568270][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.568399][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.568528][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.568658][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.568881][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.569012][ C2] ? lock_acquire+0x32/0xc0 [ 31.569141][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.569269][ C2] _raw_write_lock+0x30/0x40 [ 31.569399][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.569529][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.569657][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.569788][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.569924][ C2] ? call_timer_fn+0xe8/0x230 [ 31.570053][ C2] ? lock_acquire+0x32/0xc0 [ 31.570182][ C2] ? call_timer_fn+0xe8/0x230 [ 31.570312][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.570441][ C2] call_timer_fn+0x13b/0x230 [ 31.570714][ C2] ? call_timer_fn+0xe8/0x230 [ 31.570846][ C2] ? call_timer_fn+0xe8/0x230 [ 31.570975][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.571104][ C2] ? mark_lock+0x38/0x3e0 [ 31.571284][ C2] __run_timers+0x545/0x810 [ 31.571420][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.571550][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.571682][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.571885][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.572015][ C2] ? lock_acquire+0x32/0xc0 [ 31.572148][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 31.572279][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.572409][ C2] __do_softirq+0x1f8/0x5df [ 31.572623][ C2] irq_exit_rcu+0x97/0xc0 [ 31.572727][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.572857][ C2] [ 31.572923][ C2] [ 31.572989][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.573150][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.573285][ 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 fb 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 [ 31.573837][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.574004][ C2] RAX: 00000000000d1b5f RBX: 1ffff9200002bfc1 RCX: ffffffff96b31ea5 [ 31.574197][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff942ac1d4 [ 31.574396][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 31.574593][ C2] R10: ffff88802f7384e3 R11: ffff88802f73de40 R12: 0000000000000000 [ 31.574788][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.574983][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.575112][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.575246][ C2] default_idle_call+0x6d/0xb0 [ 31.575375][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.575579][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.575715][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.575846][ C2] do_idle+0xf9/0x160 [ 31.575946][ C2] cpu_startup_entry+0x54/0x60 [ 31.576147][ C2] start_secondary+0x21c/0x2b0 [ 31.576280][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.576410][ C2] common_startup_64+0x12c/0x138 [ 31.576543][ C2] [ 32.846551][ T312] Mirror/redirect action on