[ 60.716739][ C3] [ 60.716842][ C3] ======================================================== [ 60.717061][ C3] WARNING: possible irq lock inversion dependency detected [ 60.717276][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 60.717422][ C3] -------------------------------------------------------- [ 60.717636][ C3] swapper/3/0 just changed the state of lock: [ 60.717813][ C3] ffff88800672d580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 60.718072][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 60.718284][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 60.718288][ C3] [ 60.718288][ C3] [ 60.718288][ C3] and interrupts could create inverse lock ordering between them. [ 60.718288][ C3] [ 60.718812][ C3] [ 60.718812][ C3] other info that might help us debug this: [ 60.719023][ C3] Possible interrupt unsafe locking scenario: [ 60.719023][ C3] [ 60.719241][ C3] CPU0 CPU1 [ 60.719384][ C3] ---- ---- [ 60.719525][ C3] lock(&p->alloc_lock); [ 60.719636][ C3] local_irq_disable(); [ 60.719822][ C3] lock(&ndev->lock); [ 60.720009][ C3] lock(&p->alloc_lock); [ 60.720193][ C3] [ 60.720305][ C3] lock(&ndev->lock); [ 60.720418][ C3] [ 60.720418][ C3] *** DEADLOCK *** [ 60.720418][ C3] [ 60.720630][ C3] 1 lock held by swapper/3/0: [ 60.720776][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 60.721039][ C3] [ 60.721039][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 60.721287][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 60.721438][ C3] HARDIRQ-ON-W at: [ 60.721548][ C3] __lock_acquire+0x797/0x1570 [ 60.721733][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.721912][ C3] _raw_spin_lock+0x30/0x40 [ 60.722095][ C3] set_mems_allowed+0x1d/0x210 [ 60.722281][ C3] kernel_init_freeable+0x72/0x310 [ 60.722463][ C3] kernel_init+0x20/0x200 [ 60.722648][ C3] ret_from_fork+0x31/0x70 [ 60.722831][ C3] ret_from_fork_asm+0x1a/0x30 [ 60.723013][ C3] SOFTIRQ-ON-W at: [ 60.723122][ C3] __lock_acquire+0x797/0x1570 [ 60.723307][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.723499][ C3] _raw_spin_lock+0x30/0x40 [ 60.723678][ C3] set_mems_allowed+0x1d/0x210 [ 60.723861][ C3] kernel_init_freeable+0x72/0x310 [ 60.724052][ C3] kernel_init+0x20/0x200 [ 60.724240][ C3] ret_from_fork+0x31/0x70 [ 60.724443][ C3] ret_from_fork_asm+0x1a/0x30 [ 60.724625][ C3] INITIAL USE at: [ 60.724739][ C3] __lock_acquire+0x797/0x1570 [ 60.724925][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.725108][ C3] _raw_spin_lock+0x30/0x40 [ 60.725303][ C3] set_mems_allowed+0x1d/0x210 [ 60.725489][ C3] kernel_init_freeable+0x72/0x310 [ 60.725679][ C3] kernel_init+0x20/0x200 [ 60.725863][ C3] ret_from_fork+0x31/0x70 [ 60.726050][ C3] ret_from_fork_asm+0x1a/0x30 [ 60.726244][ C3] } [ 60.726320][ C3] ... key at: [] __key.388+0x0/0x40 [ 60.726536][ C3] ... acquired at: [ 60.726649][ C3] __lock_acquire+0xaf0/0x1570 [ 60.726799][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.726957][ C3] _raw_spin_lock+0x30/0x40 [ 60.727101][ C3] __get_task_comm+0x27/0x70 [ 60.727253][ C3] ref_tracker_alloc+0x2ee/0x490 [ 60.727400][ C3] netdev_get_by_index+0x5e/0x80 [ 60.727550][ C3] fib6_nh_init+0x3d8/0x1580 [ 60.727699][ C3] ip6_route_info_create+0xf18/0x17d0 [ 60.727846][ C3] ip6_route_add+0x1c/0x140 [ 60.728001][ C3] addrconf_prefix_route+0x2a6/0x430 [ 60.728147][ C3] addrconf_permanent_addr+0x32f/0x670 [ 60.728297][ C3] addrconf_notify+0x749/0xd60 [ 60.728444][ C3] notifier_call_chain+0xcd/0x150 [ 60.728581][ C3] __dev_notify_flags+0xe6/0x250 [ 60.728724][ C3] dev_change_flags+0xec/0x160 [ 60.728855][ C3] do_setlink+0x7d6/0x21e0 [ 60.728988][ C3] __rtnl_newlink+0xaa7/0xd80 [ 60.729120][ C3] rtnl_newlink+0x63/0xa0 [ 60.729255][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 60.729394][ C3] netlink_rcv_skb+0x130/0x360 [ 60.729527][ C3] netlink_unicast+0x449/0x710 [ 60.729664][ C3] netlink_sendmsg+0x723/0xbe0 [ 60.729797][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 60.729930][ C3] ___sys_sendmsg+0xee/0x170 [ 60.730063][ C3] __sys_sendmsg+0xcd/0x170 [ 60.730197][ C3] do_syscall_64+0xc6/0x1e0 [ 60.730332][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.730497][ C3] [ 60.730564][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 60.730700][ C3] HARDIRQ-ON-W at: [ 60.730807][ C3] __lock_acquire+0x797/0x1570 [ 60.730975][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.731140][ C3] _raw_write_lock_bh+0x38/0x50 [ 60.731311][ C3] addrconf_permanent_addr+0x6e/0x670 [ 60.731476][ C3] addrconf_notify+0x749/0xd60 [ 60.731640][ C3] notifier_call_chain+0xcd/0x150 [ 60.731806][ C3] __dev_notify_flags+0xe6/0x250 [ 60.731972][ C3] dev_change_flags+0xec/0x160 [ 60.732138][ C3] do_setlink+0x7d6/0x21e0 [ 60.732304][ C3] __rtnl_newlink+0xaa7/0xd80 [ 60.732471][ C3] rtnl_newlink+0x63/0xa0 [ 60.732637][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 60.732802][ C3] netlink_rcv_skb+0x130/0x360 [ 60.732971][ C3] netlink_unicast+0x449/0x710 [ 60.733213][ C3] netlink_sendmsg+0x723/0xbe0 [ 60.733383][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 60.733550][ C3] ___sys_sendmsg+0xee/0x170 [ 60.733810][ C3] __sys_sendmsg+0xcd/0x170 [ 60.733975][ C3] do_syscall_64+0xc6/0x1e0 [ 60.734138][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.734352][ C3] HARDIRQ-ON-R at: [ 60.734460][ C3] __lock_acquire+0x797/0x1570 [ 60.734641][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.734827][ C3] _raw_read_lock_bh+0x44/0x80 [ 60.735005][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 60.735169][ C3] inet6_fill_link_af+0x5e/0xe0 [ 60.735334][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 60.735503][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 60.735673][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 60.735945][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 60.736114][ C3] register_netdevice+0x1177/0x1690 [ 60.736360][ C3] register_netdev+0x20/0x40 [ 60.736527][ C3] vti6_init_net+0x25d/0x380 [ 60.736775][ C3] ops_init+0x9b/0x560 [ 60.736915][ C3] register_pernet_operations+0x2db/0x710 [ 60.737115][ C3] register_pernet_device+0x2a/0x60 [ 60.737296][ C3] vti6_tunnel_init+0x18/0x110 [ 60.737465][ C3] do_one_initcall+0x8d/0x1e0 [ 60.737740][ C3] do_initcalls+0x1b2/0x3e0 [ 60.737911][ C3] kernel_init_freeable+0x232/0x310 [ 60.738080][ C3] kernel_init+0x20/0x200 [ 60.738248][ C3] ret_from_fork+0x31/0x70 [ 60.738495][ C3] ret_from_fork_asm+0x1a/0x30 [ 60.738670][ C3] IN-SOFTIRQ-W at: [ 60.738770][ C3] __lock_acquire+0x797/0x1570 [ 60.738937][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.739104][ C3] _raw_write_lock+0x30/0x40 [ 60.739347][ C3] addrconf_rs_timer+0xa9/0x730 [ 60.739520][ C3] call_timer_fn+0x13b/0x230 [ 60.739686][ C3] __run_timers+0x545/0x810 [ 60.739853][ C3] run_timer_softirq+0xe8/0x1b0 [ 60.740101][ C3] __do_softirq+0x1f8/0x5df [ 60.740271][ C3] irq_exit_rcu+0x97/0xc0 [ 60.740438][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 60.740636][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 60.740918][ C3] default_idle+0xf/0x20 [ 60.741082][ C3] default_idle_call+0x6d/0xb0 [ 60.741262][ C3] cpuidle_idle_call+0x1f4/0x280 [ 60.741431][ C3] do_idle+0xf9/0x160 [ 60.741566][ C3] cpu_startup_entry+0x54/0x60 [ 60.741735][ C3] start_secondary+0x21c/0x2b0 [ 60.741983][ C3] common_startup_64+0x12c/0x138 [ 60.742148][ C3] INITIAL USE at: [ 60.742245][ C3] __lock_acquire+0x797/0x1570 [ 60.742414][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.742652][ C3] _raw_write_lock_bh+0x38/0x50 [ 60.742899][ C3] addrconf_permanent_addr+0x6e/0x670 [ 60.743061][ C3] addrconf_notify+0x749/0xd60 [ 60.743227][ C3] notifier_call_chain+0xcd/0x150 [ 60.743471][ C3] __dev_notify_flags+0xe6/0x250 [ 60.743641][ C3] dev_change_flags+0xec/0x160 [ 60.743807][ C3] do_setlink+0x7d6/0x21e0 [ 60.744050][ C3] __rtnl_newlink+0xaa7/0xd80 [ 60.744217][ C3] rtnl_newlink+0x63/0xa0 [ 60.744385][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 60.744555][ C3] netlink_rcv_skb+0x130/0x360 [ 60.744800][ C3] netlink_unicast+0x449/0x710 [ 60.744966][ C3] netlink_sendmsg+0x723/0xbe0 [ 60.745130][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 60.745372][ C3] ___sys_sendmsg+0xee/0x170 [ 60.745538][ C3] __sys_sendmsg+0xcd/0x170 [ 60.745795][ C3] do_syscall_64+0xc6/0x1e0 [ 60.745963][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.746162][ C3] INITIAL READ USE at: [ 60.746265][ C3] __lock_acquire+0x797/0x1570 [ 60.746435][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.746604][ C3] _raw_read_lock_bh+0x44/0x80 [ 60.746777][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 60.747055][ C3] inet6_fill_link_af+0x5e/0xe0 [ 60.747221][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 60.747402][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 60.747602][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 60.747881][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 60.748047][ C3] register_netdevice+0x1177/0x1690 [ 60.748244][ C3] register_netdev+0x20/0x40 [ 60.748563][ C3] vti6_init_net+0x25d/0x380 [ 60.748735][ C3] ops_init+0x9b/0x560 [ 60.748897][ C3] register_pernet_operations+0x2db/0x710 [ 60.749105][ C3] register_pernet_device+0x2a/0x60 [ 60.749376][ C3] vti6_tunnel_init+0x18/0x110 [ 60.749541][ C3] do_one_initcall+0x8d/0x1e0 [ 60.749706][ C3] do_initcalls+0x1b2/0x3e0 [ 60.749945][ C3] kernel_init_freeable+0x232/0x310 [ 60.750139][ C3] kernel_init+0x20/0x200 [ 60.750305][ C3] ret_from_fork+0x31/0x70 [ 60.750544][ C3] ret_from_fork_asm+0x1a/0x30 [ 60.750707][ C3] } [ 60.750774][ C3] ... key at: [] __key.37+0x0/0x40 [ 60.750971][ C3] ... acquired at: [ 60.751140][ C3] mark_lock+0x28d/0x3e0 [ 60.751273][ C3] mark_usage+0xd9/0x2a0 [ 60.751408][ C3] __lock_acquire+0x797/0x1570 [ 60.751548][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.751774][ C3] _raw_write_lock+0x30/0x40 [ 60.751908][ C3] addrconf_rs_timer+0xa9/0x730 [ 60.752037][ C3] call_timer_fn+0x13b/0x230 [ 60.752168][ C3] __run_timers+0x545/0x810 [ 60.752300][ C3] run_timer_softirq+0xe8/0x1b0 [ 60.752434][ C3] __do_softirq+0x1f8/0x5df [ 60.752569][ C3] irq_exit_rcu+0x97/0xc0 [ 60.752699][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 60.752865][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 60.753032][ C3] default_idle+0xf/0x20 [ 60.753166][ C3] default_idle_call+0x6d/0xb0 [ 60.753297][ C3] cpuidle_idle_call+0x1f4/0x280 [ 60.753429][ C3] do_idle+0xf9/0x160 [ 60.753528][ C3] cpu_startup_entry+0x54/0x60 [ 60.753660][ C3] start_secondary+0x21c/0x2b0 [ 60.753792][ C3] common_startup_64+0x12c/0x138 [ 60.753927][ C3] [ 60.753994][ C3] [ 60.753994][ C3] stack backtrace: [ 60.754232][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 60.754430][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 60.754815][ C3] Call Trace: [ 60.754926][ C3] [ 60.754997][ C3] dump_stack_lvl+0x82/0xd0 [ 60.755137][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 60.755301][ C3] ? kernel_text_address+0x17/0xe0 [ 60.755442][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 60.755607][ C3] ? __pfx_usage_skip+0x10/0x10 [ 60.755741][ C3] ? __pfx_usage_match+0x10/0x10 [ 60.755875][ C3] ? arch_stack_walk+0x8c/0xf0 [ 60.756085][ C3] mark_lock_irq+0x4cd/0xa10 [ 60.756216][ C3] ? common_startup_64+0x12c/0x138 [ 60.756425][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 60.756565][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 60.756704][ C3] ? save_trace+0x8f/0x5b0 [ 60.756837][ C3] mark_lock+0x28d/0x3e0 [ 60.756937][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 60.757147][ C3] mark_usage+0xd9/0x2a0 [ 60.757286][ C3] __lock_acquire+0x797/0x1570 [ 60.757425][ C3] ? __pfx_validate_chain+0x10/0x10 [ 60.757560][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 60.757690][ C3] lock_acquire.part.0+0xeb/0x330 [ 60.757819][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 60.758031][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 60.758163][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 60.758298][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 60.758428][ C3] ? lock_acquire+0x32/0xc0 [ 60.758638][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 60.758854][ C3] _raw_write_lock+0x30/0x40 [ 60.758986][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 60.759117][ C3] addrconf_rs_timer+0xa9/0x730 [ 60.759249][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 60.759379][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 60.759511][ C3] ? call_timer_fn+0xe8/0x230 [ 60.759721][ C3] ? lock_acquire+0x32/0xc0 [ 60.759855][ C3] ? call_timer_fn+0xe8/0x230 [ 60.759987][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 60.760116][ C3] call_timer_fn+0x13b/0x230 [ 60.760246][ C3] ? call_timer_fn+0xe8/0x230 [ 60.760380][ C3] ? call_timer_fn+0xe8/0x230 [ 60.760674][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 60.760806][ C3] ? mark_lock+0x38/0x3e0 [ 60.760911][ C3] __run_timers+0x545/0x810 [ 60.761044][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 60.761180][ C3] ? __pfx___run_timers+0x10/0x10 [ 60.761315][ C3] ? do_raw_spin_lock+0x131/0x270 [ 60.761443][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 60.761653][ C3] ? lock_acquire+0x32/0xc0 [ 60.761786][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 60.761997][ C3] run_timer_softirq+0xe8/0x1b0 [ 60.762130][ C3] __do_softirq+0x1f8/0x5df [ 60.762267][ C3] irq_exit_rcu+0x97/0xc0 [ 60.762368][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 60.762575][ C3] [ 60.762642][ C3] [ 60.762709][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 60.762871][ C3] RIP: 0010:default_idle+0xf/0x20 [ 60.763087][ 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 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 [ 60.763636][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 60.763809][ C3] RAX: 00000000000cd93d RBX: 1ffff9200002dfc1 RCX: ffffffffb7531ea5 [ 60.764001][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb4cac1d4 [ 60.764201][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 60.764481][ C3] R10: ffff8880361b84e3 R11: 1ffff110003ab34c R12: 0000000000000000 [ 60.764684][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 60.764962][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 60.765097][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 60.765222][ C3] default_idle_call+0x6d/0xb0 [ 60.765357][ C3] cpuidle_idle_call+0x1f4/0x280 [ 60.765491][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 60.765702][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 60.765837][ C3] do_idle+0xf9/0x160 [ 60.765941][ C3] cpu_startup_entry+0x54/0x60 [ 60.766072][ C3] start_secondary+0x21c/0x2b0 [ 60.766207][ C3] ? __pfx_start_secondary+0x10/0x10 [ 60.766413][ C3] common_startup_64+0x12c/0x138 [ 60.766630][ C3]