[ 25.163876][ T243] ip (243) used greatest stack depth: 23904 bytes left [ 32.801054][ T298] Initializing XFRM netlink socket [ 33.457179][ C2] [ 33.457273][ C2] ======================================================== [ 33.457469][ C2] WARNING: possible irq lock inversion dependency detected [ 33.457669][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 33.457798][ C2] -------------------------------------------------------- [ 33.457990][ C2] swapper/2/0 just changed the state of lock: [ 33.458150][ C2] ffff88800804d580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.458388][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.458597][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 33.458602][ C2] [ 33.458602][ C2] [ 33.458602][ C2] and interrupts could create inverse lock ordering between them. [ 33.458602][ C2] [ 33.459072][ C2] [ 33.459072][ C2] other info that might help us debug this: [ 33.459261][ C2] Possible interrupt unsafe locking scenario: [ 33.459261][ C2] [ 33.459452][ C2] CPU0 CPU1 [ 33.459581][ C2] ---- ---- [ 33.459710][ C2] lock(&p->alloc_lock); [ 33.459810][ C2] local_irq_disable(); [ 33.459969][ C2] lock(&ndev->lock); [ 33.460139][ C2] lock(&p->alloc_lock); [ 33.460310][ C2] [ 33.460417][ C2] lock(&ndev->lock); [ 33.460530][ C2] [ 33.460530][ C2] *** DEADLOCK *** [ 33.460530][ C2] [ 33.460739][ C2] 1 lock held by swapper/2/0: [ 33.460886][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.461155][ C2] [ 33.461155][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 33.461400][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.461555][ C2] HARDIRQ-ON-W at: [ 33.461665][ C2] __lock_acquire+0x797/0x1570 [ 33.461851][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.462032][ C2] _raw_spin_lock+0x30/0x40 [ 33.462219][ C2] set_mems_allowed+0x1d/0x210 [ 33.462400][ C2] kernel_init_freeable+0x72/0x310 [ 33.462580][ C2] kernel_init+0x20/0x200 [ 33.462764][ C2] ret_from_fork+0x31/0x70 [ 33.462929][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.463092][ C2] SOFTIRQ-ON-W at: [ 33.463190][ C2] __lock_acquire+0x797/0x1570 [ 33.463355][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.463519][ C2] _raw_spin_lock+0x30/0x40 [ 33.463688][ C2] set_mems_allowed+0x1d/0x210 [ 33.463861][ C2] kernel_init_freeable+0x72/0x310 [ 33.464023][ C2] kernel_init+0x20/0x200 [ 33.464196][ C2] ret_from_fork+0x31/0x70 [ 33.464359][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.464523][ C2] INITIAL USE at: [ 33.464622][ C2] __lock_acquire+0x797/0x1570 [ 33.464800][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.464983][ C2] _raw_spin_lock+0x30/0x40 [ 33.465171][ C2] set_mems_allowed+0x1d/0x210 [ 33.465351][ C2] kernel_init_freeable+0x72/0x310 [ 33.465531][ C2] kernel_init+0x20/0x200 [ 33.465712][ C2] ret_from_fork+0x31/0x70 [ 33.465919][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.466100][ C2] } [ 33.466174][ C2] ... key at: [] __key.388+0x0/0x40 [ 33.466399][ C2] ... acquired at: [ 33.466508][ C2] __lock_acquire+0xaf0/0x1570 [ 33.466656][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.466800][ C2] _raw_spin_lock+0x30/0x40 [ 33.466950][ C2] __get_task_comm+0x27/0x70 [ 33.467097][ C2] ref_tracker_alloc+0x2ee/0x490 [ 33.467239][ C2] netdev_get_by_index+0x5e/0x80 [ 33.467368][ C2] fib6_nh_init+0x3d8/0x1580 [ 33.467510][ C2] ip6_route_info_create+0xf18/0x17d0 [ 33.467643][ C2] addrconf_f6i_alloc+0x265/0x560 [ 33.467773][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 33.467910][ C2] addrconf_join_anycast+0x1c0/0x220 [ 33.468046][ C2] dev_forward_change+0x2a6/0x7b0 [ 33.468177][ C2] addrconf_fixup_forwarding+0x152/0x460 [ 33.468344][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 33.468477][ C2] proc_sys_call_handler+0x403/0x5e0 [ 33.468611][ C2] vfs_write+0x9e5/0x10a0 [ 33.468742][ C2] ksys_write+0xf5/0x1e0 [ 33.468870][ C2] do_syscall_64+0xc6/0x1e0 [ 33.468999][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.469165][ C2] [ 33.469230][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 33.469362][ C2] HARDIRQ-ON-W at: [ 33.469459][ C2] __lock_acquire+0x797/0x1570 [ 33.469622][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.469801][ C2] _raw_write_lock_bh+0x38/0x50 [ 33.469983][ C2] addrconf_permanent_addr+0x6e/0x670 [ 33.470169][ C2] addrconf_notify+0x749/0xd60 [ 33.470348][ C2] notifier_call_chain+0xcd/0x150 [ 33.470519][ C2] __dev_notify_flags+0xe6/0x250 [ 33.470683][ C2] dev_change_flags+0xec/0x160 [ 33.470852][ C2] do_setlink+0x7d6/0x21e0 [ 33.471015][ C2] __rtnl_newlink+0xaa7/0xd80 [ 33.471181][ C2] rtnl_newlink+0x63/0xa0 [ 33.471348][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.471510][ C2] netlink_rcv_skb+0x130/0x360 [ 33.471681][ C2] netlink_unicast+0x449/0x710 [ 33.471859][ C2] netlink_sendmsg+0x723/0xbe0 [ 33.472021][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 33.472184][ C2] ___sys_sendmsg+0xee/0x170 [ 33.472352][ C2] __sys_sendmsg+0xcd/0x170 [ 33.472519][ C2] do_syscall_64+0xc6/0x1e0 [ 33.472759][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.472951][ C2] HARDIRQ-ON-R at: [ 33.473047][ C2] __lock_acquire+0x797/0x1570 [ 33.473209][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.473446][ C2] _raw_read_lock_bh+0x44/0x80 [ 33.473612][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.473779][ C2] inet6_fill_link_af+0x5e/0xe0 [ 33.474014][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 33.474176][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.474337][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.474607][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 33.474774][ C2] register_netdevice+0x1177/0x1690 [ 33.474934][ C2] register_netdev+0x20/0x40 [ 33.475095][ C2] vti6_init_net+0x25d/0x380 [ 33.475336][ C2] ops_init+0x9b/0x560 [ 33.475468][ C2] register_pernet_operations+0x2db/0x710 [ 33.475666][ C2] register_pernet_device+0x2a/0x60 [ 33.475948][ C2] vti6_tunnel_init+0x18/0x110 [ 33.476127][ C2] do_one_initcall+0x8d/0x1e0 [ 33.476297][ C2] do_initcalls+0x1b2/0x3e0 [ 33.476458][ C2] kernel_init_freeable+0x232/0x310 [ 33.476697][ C2] kernel_init+0x20/0x200 [ 33.476858][ C2] ret_from_fork+0x31/0x70 [ 33.477021][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.477270][ C2] IN-SOFTIRQ-W at: [ 33.477368][ C2] __lock_acquire+0x797/0x1570 [ 33.477531][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.477696][ C2] _raw_write_lock+0x30/0x40 [ 33.477932][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.478093][ C2] call_timer_fn+0x13b/0x230 [ 33.478263][ C2] __run_timers+0x545/0x810 [ 33.478499][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.478664][ C2] __do_softirq+0x1f8/0x5df [ 33.478826][ C2] irq_exit_rcu+0x97/0xc0 [ 33.478988][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.479340][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.479537][ C2] default_idle+0xf/0x20 [ 33.479707][ C2] default_idle_call+0x6d/0xb0 [ 33.479944][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.480108][ C2] do_idle+0xf9/0x160 [ 33.480237][ C2] cpu_startup_entry+0x54/0x60 [ 33.480480][ C2] start_secondary+0x21c/0x2b0 [ 33.480643][ C2] common_startup_64+0x12c/0x138 [ 33.480808][ C2] INITIAL USE at: [ 33.480906][ C2] __lock_acquire+0x797/0x1570 [ 33.481148][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.481309][ C2] _raw_write_lock_bh+0x38/0x50 [ 33.481470][ C2] addrconf_permanent_addr+0x6e/0x670 [ 33.481712][ C2] addrconf_notify+0x749/0xd60 [ 33.481874][ C2] notifier_call_chain+0xcd/0x150 [ 33.482046][ C2] __dev_notify_flags+0xe6/0x250 [ 33.482209][ C2] dev_change_flags+0xec/0x160 [ 33.482444][ C2] do_setlink+0x7d6/0x21e0 [ 33.482605][ C2] __rtnl_newlink+0xaa7/0xd80 [ 33.482770][ C2] rtnl_newlink+0x63/0xa0 [ 33.483011][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.483175][ C2] netlink_rcv_skb+0x130/0x360 [ 33.483338][ C2] netlink_unicast+0x449/0x710 [ 33.483499][ C2] netlink_sendmsg+0x723/0xbe0 [ 33.483736][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 33.483905][ C2] ___sys_sendmsg+0xee/0x170 [ 33.484067][ C2] __sys_sendmsg+0xcd/0x170 [ 33.484308][ C2] do_syscall_64+0xc6/0x1e0 [ 33.484474][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.484668][ C2] INITIAL READ USE at: [ 33.484769][ C2] __lock_acquire+0x797/0x1570 [ 33.485005][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.485166][ C2] _raw_read_lock_bh+0x44/0x80 [ 33.485327][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.485602][ C2] inet6_fill_link_af+0x5e/0xe0 [ 33.485770][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 33.486038][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.486409][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.486704][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 33.486930][ C2] register_netdevice+0x1177/0x1690 [ 33.487364][ C2] register_netdev+0x20/0x40 [ 33.487618][ C2] vti6_init_net+0x25d/0x380 [ 33.487868][ C2] ops_init+0x9b/0x560 [ 33.488221][ C2] register_pernet_operations+0x2db/0x710 [ 33.488524][ C2] register_pernet_device+0x2a/0x60 [ 33.488831][ C2] vti6_tunnel_init+0x18/0x110 [ 33.489221][ C2] do_one_initcall+0x8d/0x1e0 [ 33.489476][ C2] do_initcalls+0x1b2/0x3e0 [ 33.489701][ C2] kernel_init_freeable+0x232/0x310 [ 33.489988][ C2] kernel_init+0x20/0x200 [ 33.490346][ C2] ret_from_fork+0x31/0x70 [ 33.490590][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.490838][ C2] } [ 33.490935][ C2] ... key at: [] __key.37+0x0/0x40 [ 33.491461][ C2] ... acquired at: [ 33.491606][ C2] mark_lock+0x28d/0x3e0 [ 33.491801][ C2] mark_usage+0xd9/0x2a0 [ 33.491994][ C2] __lock_acquire+0x797/0x1570 [ 33.492307][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.492500][ C2] _raw_write_lock+0x30/0x40 [ 33.492710][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.492908][ C2] call_timer_fn+0x13b/0x230 [ 33.493223][ C2] __run_timers+0x545/0x810 [ 33.493416][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.493609][ C2] __do_softirq+0x1f8/0x5df [ 33.493806][ C2] irq_exit_rcu+0x97/0xc0 [ 33.494141][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.494385][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.494620][ C2] default_idle+0xf/0x20 [ 33.494819][ C2] default_idle_call+0x6d/0xb0 [ 33.495134][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.495330][ C2] do_idle+0xf9/0x160 [ 33.495477][ C2] cpu_startup_entry+0x54/0x60 [ 33.495683][ C2] start_secondary+0x21c/0x2b0 [ 33.496014][ C2] common_startup_64+0x12c/0x138 [ 33.496202][ C2] [ 33.496299][ C2] [ 33.496299][ C2] stack backtrace: [ 33.496542][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 33.496954][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.497383][ C2] Call Trace: [ 33.497533][ C2] [ 33.497633][ C2] dump_stack_lvl+0x82/0xd0 [ 33.497961][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.498212][ C2] ? kernel_text_address+0x17/0xe0 [ 33.498423][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.498671][ C2] ? __pfx_usage_skip+0x10/0x10 [ 33.498995][ C2] ? __pfx_usage_match+0x10/0x10 [ 33.499196][ C2] ? arch_stack_walk+0x8c/0xf0 [ 33.499404][ C2] mark_lock_irq+0x4cd/0xa10 [ 33.499603][ C2] ? common_startup_64+0x12c/0x138 [ 33.499945][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.500145][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 33.500355][ C2] ? save_trace+0x8f/0x5b0 [ 33.500558][ C2] mark_lock+0x28d/0x3e0 [ 33.500711][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 33.501038][ C2] mark_usage+0xd9/0x2a0 [ 33.501192][ C2] __lock_acquire+0x797/0x1570 [ 33.501392][ C2] ? __pfx_validate_chain+0x10/0x10 [ 33.501597][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.501923][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.502134][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.502335][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.502531][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 33.502873][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.503068][ C2] ? lock_acquire+0x32/0xc0 [ 33.503265][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.503506][ C2] _raw_write_lock+0x30/0x40 [ 33.503727][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.504059][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.504263][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.504476][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.504678][ C2] ? call_timer_fn+0xe8/0x230 [ 33.504998][ C2] ? lock_acquire+0x32/0xc0 [ 33.505197][ C2] ? call_timer_fn+0xe8/0x230 [ 33.505392][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.505590][ C2] call_timer_fn+0x13b/0x230 [ 33.505937][ C2] ? call_timer_fn+0xe8/0x230 [ 33.506139][ C2] ? call_timer_fn+0xe8/0x230 [ 33.506339][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 33.506537][ C2] ? mark_lock+0x38/0x3e0 [ 33.506696][ C2] __run_timers+0x545/0x810 [ 33.507151][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.507359][ C2] ? __pfx___run_timers+0x10/0x10 [ 33.507555][ C2] ? trace_rcu_dyntick+0x112/0x180 [ 33.507755][ C2] ? do_raw_spin_lock+0x131/0x270 [ 33.508092][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.508328][ C2] ? lock_acquire+0x32/0xc0 [ 33.508524][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 33.508730][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.509061][ C2] __do_softirq+0x1f8/0x5df [ 33.509269][ C2] irq_exit_rcu+0x97/0xc0 [ 33.509426][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.509624][ C2] [ 33.509731][ C2] [ 33.509834][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.510217][ C2] RIP: 0010:default_idle+0xf/0x20 [ 33.510440][ 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 [ 33.511280][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 33.511562][ C2] RAX: 00000000000d768f RBX: 1ffff9200002bfc1 RCX: ffffffff90131ea5 [ 33.511900][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8d8ac1d4 [ 33.512358][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 33.512680][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 33.513138][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 33.513456][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.513666][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 33.513871][ C2] default_idle_call+0x6d/0xb0 [ 33.514210][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.514408][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.514611][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.514825][ C2] do_idle+0xf9/0x160 [ 33.514979][ C2] cpu_startup_entry+0x54/0x60 [ 33.515314][ C2] start_secondary+0x21c/0x2b0 [ 33.515524][ C2] ? __pfx_start_secondary+0x10/0x10 [ 33.515731][ C2] common_startup_64+0x12c/0x138 [ 33.515938][ C2] WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr