[ 24.090995][ T236] ip (236) used greatest stack depth: 24240 bytes left [ 32.554860][ C3] [ 32.555060][ C3] ======================================================== [ 32.555279][ C3] WARNING: possible irq lock inversion dependency detected [ 32.555484][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 32.555630][ C3] -------------------------------------------------------- [ 32.555829][ C3] swapper/3/0 just changed the state of lock: [ 32.555997][ C3] ffff888005338d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.556248][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.556453][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 32.556457][ C3] [ 32.556457][ C3] [ 32.556457][ C3] and interrupts could create inverse lock ordering between them. [ 32.556457][ C3] [ 32.556957][ C3] [ 32.556957][ C3] other info that might help us debug this: [ 32.557158][ C3] Possible interrupt unsafe locking scenario: [ 32.557158][ C3] [ 32.557365][ C3] CPU0 CPU1 [ 32.557501][ C3] ---- ---- [ 32.557635][ C3] lock(&p->alloc_lock); [ 32.557745][ C3] local_irq_disable(); [ 32.557915][ C3] lock(&ndev->lock); [ 32.558088][ C3] lock(&p->alloc_lock); [ 32.558258][ C3] [ 32.558361][ C3] lock(&ndev->lock); [ 32.558469][ C3] [ 32.558469][ C3] *** DEADLOCK *** [ 32.558469][ C3] [ 32.558669][ C3] 1 lock held by swapper/3/0: [ 32.558806][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.559075][ C3] [ 32.559075][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 32.559307][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.559450][ C3] HARDIRQ-ON-W at: [ 32.559562][ C3] __lock_acquire+0x797/0x1570 [ 32.559743][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.559915][ C3] _raw_spin_lock+0x30/0x40 [ 32.560095][ C3] set_mems_allowed+0x1d/0x210 [ 32.560272][ C3] kernel_init_freeable+0x72/0x310 [ 32.560445][ C3] kernel_init+0x20/0x200 [ 32.560620][ C3] ret_from_fork+0x31/0x70 [ 32.560792][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.560965][ C3] SOFTIRQ-ON-W at: [ 32.561069][ C3] __lock_acquire+0x797/0x1570 [ 32.561244][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.561419][ C3] _raw_spin_lock+0x30/0x40 [ 32.561593][ C3] set_mems_allowed+0x1d/0x210 [ 32.561772][ C3] kernel_init_freeable+0x72/0x310 [ 32.561944][ C3] kernel_init+0x20/0x200 [ 32.562121][ C3] ret_from_fork+0x31/0x70 [ 32.562296][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.562468][ C3] INITIAL USE at: [ 32.562571][ C3] __lock_acquire+0x797/0x1570 [ 32.562742][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.562912][ C3] _raw_spin_lock+0x30/0x40 [ 32.563082][ C3] set_mems_allowed+0x1d/0x210 [ 32.563256][ C3] kernel_init_freeable+0x72/0x310 [ 32.563426][ C3] kernel_init+0x20/0x200 [ 32.563604][ C3] ret_from_fork+0x31/0x70 [ 32.563779][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.563951][ C3] } [ 32.564021][ C3] ... key at: [] __key.387+0x0/0x40 [ 32.564237][ C3] ... acquired at: [ 32.564342][ C3] __lock_acquire+0xaf0/0x1570 [ 32.564485][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.564621][ C3] _raw_spin_lock+0x30/0x40 [ 32.564757][ C3] __get_task_comm+0x27/0x70 [ 32.564894][ C3] ref_tracker_alloc+0x2ee/0x490 [ 32.565034][ C3] netdev_get_by_index+0x5e/0x80 [ 32.565173][ C3] fib6_nh_init+0x3d8/0x15b0 [ 32.565312][ C3] ip6_route_info_create+0xf18/0x17d0 [ 32.565453][ C3] addrconf_f6i_alloc+0x265/0x560 [ 32.565591][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 32.565728][ C3] addrconf_join_anycast+0x1c0/0x220 [ 32.565867][ C3] dev_forward_change+0x2a6/0x7b0 [ 32.566003][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 32.566177][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 32.566314][ C3] proc_sys_call_handler+0x403/0x5e0 [ 32.566457][ C3] vfs_write+0x9e5/0x10a0 [ 32.566597][ C3] ksys_write+0xf5/0x1e0 [ 32.566744][ C3] do_syscall_64+0xc6/0x1e0 [ 32.566883][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.567056][ C3] [ 32.567128][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 32.567273][ C3] HARDIRQ-ON-W at: [ 32.567379][ C3] __lock_acquire+0x797/0x1570 [ 32.567554][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.567731][ C3] _raw_write_lock_bh+0x38/0x50 [ 32.567904][ C3] addrconf_permanent_addr+0x6e/0x670 [ 32.568077][ C3] addrconf_notify+0x749/0xd60 [ 32.568250][ C3] notifier_call_chain+0xcd/0x150 [ 32.568423][ C3] __dev_notify_flags+0xe6/0x250 [ 32.568596][ C3] dev_change_flags+0xec/0x160 [ 32.568776][ C3] do_setlink+0x7d6/0x21e0 [ 32.568950][ C3] __rtnl_newlink+0xaa7/0xd80 [ 32.569126][ C3] rtnl_newlink+0x63/0xa0 [ 32.569301][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.569471][ C3] netlink_rcv_skb+0x130/0x360 [ 32.569644][ C3] netlink_unicast+0x449/0x710 [ 32.569828][ C3] netlink_sendmsg+0x723/0xbe0 [ 32.570003][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 32.570178][ C3] ___sys_sendmsg+0xee/0x170 [ 32.570353][ C3] __sys_sendmsg+0xcd/0x170 [ 32.570527][ C3] do_syscall_64+0xc6/0x1e0 [ 32.570698][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.570906][ C3] HARDIRQ-ON-R at: [ 32.571013][ C3] __lock_acquire+0x797/0x1570 [ 32.571184][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.571356][ C3] _raw_read_lock_bh+0x44/0x80 [ 32.571531][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.571701][ C3] inet6_fill_link_af+0x5e/0xe0 [ 32.571872][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.572045][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.572217][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.572423][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 32.572595][ C3] register_netdevice+0x1177/0x1690 [ 32.572769][ C3] register_netdev+0x20/0x40 [ 32.572946][ C3] sit_init_net+0x250/0x4f0 [ 32.573123][ C3] ops_init+0x9b/0x560 [ 32.573267][ C3] register_pernet_operations+0x2db/0x710 [ 32.573471][ C3] register_pernet_device+0x2a/0x60 [ 32.573642][ C3] sit_init+0x23/0xe0 [ 32.573780][ C3] do_one_initcall+0x8d/0x1e0 [ 32.573961][ C3] do_initcalls+0x1b2/0x3e0 [ 32.574147][ C3] kernel_init_freeable+0x232/0x310 [ 32.574325][ C3] kernel_init+0x20/0x200 [ 32.574500][ C3] ret_from_fork+0x31/0x70 [ 32.574674][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.574845][ C3] IN-SOFTIRQ-W at: [ 32.574948][ C3] __lock_acquire+0x797/0x1570 [ 32.575123][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.575296][ C3] _raw_write_lock+0x30/0x40 [ 32.575474][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.575648][ C3] call_timer_fn+0x13b/0x230 [ 32.575822][ C3] __run_timers+0x545/0x810 [ 32.575994][ C3] timer_expire_remote+0x9b/0xe0 [ 32.576168][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 32.576345][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.576519][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 32.576689][ C3] __do_softirq+0x1f8/0x5df [ 32.576861][ C3] irq_exit_rcu+0x97/0xc0 [ 32.577034][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.577241][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.577449][ C3] default_idle+0xf/0x20 [ 32.577626][ C3] default_idle_call+0x6d/0xb0 [ 32.577797][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.577969][ C3] do_idle+0xf9/0x160 [ 32.578109][ C3] cpu_startup_entry+0x54/0x60 [ 32.578280][ C3] start_secondary+0x21c/0x2b0 [ 32.578452][ C3] common_startup_64+0x12c/0x138 [ 32.578625][ C3] INITIAL USE at: [ 32.578731][ C3] __lock_acquire+0x797/0x1570 [ 32.578903][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.579072][ C3] _raw_write_lock_bh+0x38/0x50 [ 32.579246][ C3] addrconf_permanent_addr+0x6e/0x670 [ 32.579417][ C3] addrconf_notify+0x749/0xd60 [ 32.579586][ C3] notifier_call_chain+0xcd/0x150 [ 32.579763][ C3] __dev_notify_flags+0xe6/0x250 [ 32.579934][ C3] dev_change_flags+0xec/0x160 [ 32.580106][ C3] do_setlink+0x7d6/0x21e0 [ 32.580276][ C3] __rtnl_newlink+0xaa7/0xd80 [ 32.580449][ C3] rtnl_newlink+0x63/0xa0 [ 32.580623][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.580798][ C3] netlink_rcv_skb+0x130/0x360 [ 32.580976][ C3] netlink_unicast+0x449/0x710 [ 32.581145][ C3] netlink_sendmsg+0x723/0xbe0 [ 32.581317][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 32.581491][ C3] ___sys_sendmsg+0xee/0x170 [ 32.581666][ C3] __sys_sendmsg+0xcd/0x170 [ 32.581836][ C3] do_syscall_64+0xc6/0x1e0 [ 32.582008][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.582219][ C3] INITIAL READ USE at: [ 32.582321][ C3] __lock_acquire+0x797/0x1570 [ 32.582492][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.582662][ C3] _raw_read_lock_bh+0x44/0x80 [ 32.582835][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.583041][ C3] inet6_fill_link_af+0x5e/0xe0 [ 32.583221][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.583394][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.583597][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.583803][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 32.583975][ C3] register_netdevice+0x1177/0x1690 [ 32.584194][ C3] register_netdev+0x20/0x40 [ 32.584363][ C3] sit_init_net+0x250/0x4f0 [ 32.584537][ C3] ops_init+0x9b/0x560 [ 32.584708][ C3] register_pernet_operations+0x2db/0x710 [ 32.584913][ C3] register_pernet_device+0x2a/0x60 [ 32.585118][ C3] sit_init+0x23/0xe0 [ 32.585295][ C3] do_one_initcall+0x8d/0x1e0 [ 32.585473][ C3] do_initcalls+0x1b2/0x3e0 [ 32.585646][ C3] kernel_init_freeable+0x232/0x310 [ 32.585851][ C3] kernel_init+0x20/0x200 [ 32.586022][ C3] ret_from_fork+0x31/0x70 [ 32.586194][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.586371][ C3] } [ 32.586440][ C3] ... key at: [] __key.37+0x0/0x40 [ 32.586645][ C3] ... acquired at: [ 32.586747][ C3] mark_lock+0x28d/0x3e0 [ 32.586888][ C3] mark_usage+0xd9/0x2a0 [ 32.587026][ C3] __lock_acquire+0x797/0x1570 [ 32.587162][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.587298][ C3] _raw_write_lock+0x30/0x40 [ 32.587437][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.587576][ C3] call_timer_fn+0x13b/0x230 [ 32.587715][ C3] __run_timers+0x545/0x810 [ 32.587853][ C3] timer_expire_remote+0x9b/0xe0 [ 32.587991][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 32.588133][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.588271][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 32.588408][ C3] __do_softirq+0x1f8/0x5df [ 32.588544][ C3] irq_exit_rcu+0x97/0xc0 [ 32.588688][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.588858][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.589029][ C3] default_idle+0xf/0x20 [ 32.589166][ C3] default_idle_call+0x6d/0xb0 [ 32.589304][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.589440][ C3] do_idle+0xf9/0x160 [ 32.589543][ C3] cpu_startup_entry+0x54/0x60 [ 32.589681][ C3] start_secondary+0x21c/0x2b0 [ 32.589823][ C3] common_startup_64+0x12c/0x138 [ 32.589959][ C3] [ 32.590028][ C3] [ 32.590028][ C3] stack backtrace: [ 32.590201][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 32.590409][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.590708][ C3] Call Trace: [ 32.590814][ C3] [ 32.590890][ C3] dump_stack_lvl+0x82/0xd0 [ 32.591033][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.591203][ C3] ? kernel_text_address+0x17/0xe0 [ 32.591343][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.591512][ C3] ? __pfx_usage_skip+0x10/0x10 [ 32.591649][ C3] ? __pfx_usage_match+0x10/0x10 [ 32.591783][ C3] ? arch_stack_walk+0x8c/0xf0 [ 32.591921][ C3] mark_lock_irq+0x4cd/0xa10 [ 32.592060][ C3] ? common_startup_64+0x12c/0x138 [ 32.592197][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.592334][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 32.592473][ C3] ? save_trace+0x8f/0x5b0 [ 32.592616][ C3] mark_lock+0x28d/0x3e0 [ 32.592722][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 32.592859][ C3] mark_usage+0xd9/0x2a0 [ 32.592963][ C3] __lock_acquire+0x797/0x1570 [ 32.593105][ C3] ? __pfx_validate_chain+0x10/0x10 [ 32.593242][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.593380][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.593517][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.593653][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.593790][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 32.593929][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.594073][ C3] ? lock_acquire+0x32/0xc0 [ 32.594214][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.594350][ C3] _raw_write_lock+0x30/0x40 [ 32.594493][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.594628][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.594764][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.594901][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.595040][ C3] ? call_timer_fn+0xe8/0x230 [ 32.595175][ C3] ? lock_acquire+0x32/0xc0 [ 32.595313][ C3] ? call_timer_fn+0xe8/0x230 [ 32.595453][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.595590][ C3] call_timer_fn+0x13b/0x230 [ 32.595727][ C3] ? call_timer_fn+0xe8/0x230 [ 32.595862][ C3] ? call_timer_fn+0xe8/0x230 [ 32.595997][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 32.596133][ C3] ? mark_lock+0x38/0x3e0 [ 32.596241][ C3] __run_timers+0x545/0x810 [ 32.596377][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.596517][ C3] ? __pfx___run_timers+0x10/0x10 [ 32.596654][ C3] ? __lock_release+0x103/0x460 [ 32.596794][ C3] ? do_raw_spin_lock+0x131/0x270 [ 32.596929][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.597064][ C3] ? lock_acquire+0x32/0xc0 [ 32.597200][ C3] ? timer_expire_remote+0x93/0xe0 [ 32.597337][ C3] timer_expire_remote+0x9b/0xe0 [ 32.597475][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 32.597612][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 32.597786][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.597924][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 32.598063][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 32.598202][ C3] __do_softirq+0x1f8/0x5df [ 32.598339][ C3] irq_exit_rcu+0x97/0xc0 [ 32.598444][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.598581][ C3] [ 32.598650][ C3] [ 32.598723][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.598893][ C3] RIP: 0010:default_idle+0xf/0x20 [ 32.599041][ 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 a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 32.599524][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 32.599697][ C3] RAX: 0000000000078a8f RBX: 1ffff9200002dfc1 RCX: ffffffffaff0e9d5 [ 32.599906][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffad8aa4a4 [ 32.600108][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f3709c [ 32.600312][ C3] R10: ffff88802f9b84e3 R11: ffff88802f9ad9b0 R12: 0000000000000000 [ 32.600516][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 32.600722][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.600858][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 32.600997][ C3] default_idle_call+0x6d/0xb0 [ 32.601133][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.601270][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.601407][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.601546][ C3] do_idle+0xf9/0x160 [ 32.601650][ C3] cpu_startup_entry+0x54/0x60 [ 32.601790][ C3] start_secondary+0x21c/0x2b0 [ 32.601927][ C3] ? __pfx_start_secondary+0x10/0x10 [ 32.602065][ C3] common_startup_64+0x12c/0x138 [ 32.602204][ C3] [ 48.945916][ T373] Initializing XFRM netlink socket