[ 29.544650][ C2] [ 29.544755][ C2] ======================================================== [ 29.544975][ C2] WARNING: possible irq lock inversion dependency detected [ 29.545178][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 29.545310][ C2] -------------------------------------------------------- [ 29.545503][ C2] swapper/2/0 just changed the state of lock: [ 29.545678][ C2] ffff888005ba5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.545927][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.546131][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 29.546135][ C2] [ 29.546135][ C2] [ 29.546135][ C2] and interrupts could create inverse lock ordering between them. [ 29.546135][ C2] [ 29.546624][ C2] [ 29.546624][ C2] other info that might help us debug this: [ 29.546813][ C2] Possible interrupt unsafe locking scenario: [ 29.546813][ C2] [ 29.547010][ C2] CPU0 CPU1 [ 29.547140][ C2] ---- ---- [ 29.547276][ C2] lock(&p->alloc_lock); [ 29.547395][ C2] local_irq_disable(); [ 29.547554][ C2] lock(&ndev->lock); [ 29.547717][ C2] lock(&p->alloc_lock); [ 29.547881][ C2] [ 29.547983][ C2] lock(&ndev->lock); [ 29.548085][ C2] [ 29.548085][ C2] *** DEADLOCK *** [ 29.548085][ C2] [ 29.548273][ C2] 1 lock held by swapper/2/0: [ 29.548404][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.548645][ C2] [ 29.548645][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 29.548870][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.549011][ C2] HARDIRQ-ON-W at: [ 29.549121][ C2] __lock_acquire+0x797/0x1570 [ 29.549295][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.549462][ C2] _raw_spin_lock+0x30/0x40 [ 29.549631][ C2] set_mems_allowed+0x1d/0x210 [ 29.549803][ C2] kernel_init_freeable+0x72/0x310 [ 29.549975][ C2] kernel_init+0x20/0x200 [ 29.550141][ C2] ret_from_fork+0x31/0x70 [ 29.550322][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.550486][ C2] SOFTIRQ-ON-W at: [ 29.550585][ C2] __lock_acquire+0x797/0x1570 [ 29.550748][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.550913][ C2] _raw_spin_lock+0x30/0x40 [ 29.551073][ C2] set_mems_allowed+0x1d/0x210 [ 29.551237][ C2] kernel_init_freeable+0x72/0x310 [ 29.551398][ C2] kernel_init+0x20/0x200 [ 29.551557][ C2] ret_from_fork+0x31/0x70 [ 29.551720][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.551887][ C2] INITIAL USE at: [ 29.551986][ C2] __lock_acquire+0x797/0x1570 [ 29.552148][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.552314][ C2] _raw_spin_lock+0x30/0x40 [ 29.552479][ C2] set_mems_allowed+0x1d/0x210 [ 29.552642][ C2] kernel_init_freeable+0x72/0x310 [ 29.552803][ C2] kernel_init+0x20/0x200 [ 29.552984][ C2] ret_from_fork+0x31/0x70 [ 29.553154][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.553320][ C2] } [ 29.553391][ C2] ... key at: [] __key.388+0x0/0x40 [ 29.553594][ C2] ... acquired at: [ 29.553697][ C2] __lock_acquire+0xaf0/0x1570 [ 29.553832][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.553967][ C2] _raw_spin_lock+0x30/0x40 [ 29.554112][ C2] __get_task_comm+0x27/0x70 [ 29.554257][ C2] ref_tracker_alloc+0x2ee/0x490 [ 29.554407][ C2] netdev_get_by_index+0x5e/0x80 [ 29.554538][ C2] fib6_nh_init+0x3d8/0x1580 [ 29.554673][ C2] ip6_route_info_create+0xf18/0x17d0 [ 29.554805][ C2] ip6_route_add+0x1c/0x140 [ 29.554937][ C2] addrconf_prefix_route+0x2a6/0x430 [ 29.555071][ C2] addrconf_permanent_addr+0x32f/0x670 [ 29.555202][ C2] addrconf_notify+0x749/0xd60 [ 29.555336][ C2] notifier_call_chain+0xcd/0x150 [ 29.555472][ C2] __dev_notify_flags+0xe6/0x250 [ 29.555606][ C2] dev_change_flags+0xec/0x160 [ 29.555738][ C2] do_setlink+0x7d6/0x21e0 [ 29.555882][ C2] __rtnl_newlink+0xaa7/0xd80 [ 29.556015][ C2] rtnl_newlink+0x63/0xa0 [ 29.556146][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.556276][ C2] netlink_rcv_skb+0x130/0x360 [ 29.556413][ C2] netlink_unicast+0x449/0x710 [ 29.556549][ C2] netlink_sendmsg+0x723/0xbe0 [ 29.556681][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 29.556814][ C2] ___sys_sendmsg+0xee/0x170 [ 29.556947][ C2] __sys_sendmsg+0xcd/0x170 [ 29.557082][ C2] do_syscall_64+0xc6/0x1e0 [ 29.557214][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.557380][ C2] [ 29.557446][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 29.557583][ C2] HARDIRQ-ON-W at: [ 29.557685][ C2] __lock_acquire+0x797/0x1570 [ 29.557859][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.558026][ C2] _raw_write_lock_bh+0x38/0x50 [ 29.558190][ C2] addrconf_permanent_addr+0x6e/0x670 [ 29.558356][ C2] addrconf_notify+0x749/0xd60 [ 29.558521][ C2] notifier_call_chain+0xcd/0x150 [ 29.558699][ C2] __dev_notify_flags+0xe6/0x250 [ 29.558865][ C2] dev_change_flags+0xec/0x160 [ 29.559029][ C2] do_setlink+0x7d6/0x21e0 [ 29.559202][ C2] __rtnl_newlink+0xaa7/0xd80 [ 29.559370][ C2] rtnl_newlink+0x63/0xa0 [ 29.559534][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.559700][ C2] netlink_rcv_skb+0x130/0x360 [ 29.559864][ C2] netlink_unicast+0x449/0x710 [ 29.560032][ C2] netlink_sendmsg+0x723/0xbe0 [ 29.560197][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 29.560364][ C2] ___sys_sendmsg+0xee/0x170 [ 29.560531][ C2] __sys_sendmsg+0xcd/0x170 [ 29.560698][ C2] do_syscall_64+0xc6/0x1e0 [ 29.560870][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.561070][ C2] HARDIRQ-ON-R at: [ 29.561169][ C2] __lock_acquire+0x797/0x1570 [ 29.561336][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.561502][ C2] _raw_read_lock_bh+0x44/0x80 [ 29.561668][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.561832][ C2] inet6_fill_link_af+0x5e/0xe0 [ 29.562000][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.562164][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.562330][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.562526][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 29.562692][ C2] register_netdevice+0x1177/0x1690 [ 29.562860][ C2] register_netdev+0x20/0x40 [ 29.563026][ C2] vti6_init_net+0x25d/0x380 [ 29.563194][ C2] ops_init+0x9b/0x560 [ 29.563326][ C2] register_pernet_operations+0x2db/0x710 [ 29.563523][ C2] register_pernet_device+0x2a/0x60 [ 29.563698][ C2] vti6_tunnel_init+0x18/0x110 [ 29.563864][ C2] do_one_initcall+0x8d/0x1e0 [ 29.564034][ C2] do_initcalls+0x1b2/0x3e0 [ 29.564198][ C2] kernel_init_freeable+0x232/0x310 [ 29.564362][ C2] kernel_init+0x20/0x200 [ 29.564530][ C2] ret_from_fork+0x31/0x70 [ 29.564696][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.564861][ C2] IN-SOFTIRQ-W at: [ 29.564961][ C2] __lock_acquire+0x797/0x1570 [ 29.565129][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.565295][ C2] _raw_write_lock+0x30/0x40 [ 29.565460][ C2] addrconf_rs_timer+0xa9/0x730 [ 29.565624][ C2] call_timer_fn+0x13b/0x230 [ 29.565789][ C2] __run_timers+0x545/0x810 [ 29.565952][ C2] run_timer_softirq+0xe8/0x1b0 [ 29.566126][ C2] __do_softirq+0x1f8/0x5df [ 29.566374][ C2] irq_exit_rcu+0x97/0xc0 [ 29.566539][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.566735][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.567008][ C2] default_idle+0xf/0x20 [ 29.567174][ C2] default_idle_call+0x6d/0xb0 [ 29.567339][ C2] cpuidle_idle_call+0x1f4/0x280 [ 29.567586][ C2] do_idle+0xf9/0x160 [ 29.567719][ C2] cpu_startup_entry+0x54/0x60 [ 29.567885][ C2] start_secondary+0x21c/0x2b0 [ 29.568051][ C2] common_startup_64+0x12c/0x138 [ 29.568291][ C2] INITIAL USE at: [ 29.568388][ C2] __lock_acquire+0x797/0x1570 [ 29.568556][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.568724][ C2] _raw_write_lock_bh+0x38/0x50 [ 29.568963][ C2] addrconf_permanent_addr+0x6e/0x670 [ 29.569135][ C2] addrconf_notify+0x749/0xd60 [ 29.569301][ C2] notifier_call_chain+0xcd/0x150 [ 29.569541][ C2] __dev_notify_flags+0xe6/0x250 [ 29.569709][ C2] dev_change_flags+0xec/0x160 [ 29.569872][ C2] do_setlink+0x7d6/0x21e0 [ 29.570186][ C2] __rtnl_newlink+0xaa7/0xd80 [ 29.570351][ C2] rtnl_newlink+0x63/0xa0 [ 29.570516][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.570680][ C2] netlink_rcv_skb+0x130/0x360 [ 29.570923][ C2] netlink_unicast+0x449/0x710 [ 29.571095][ C2] netlink_sendmsg+0x723/0xbe0 [ 29.571261][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 29.571501][ C2] ___sys_sendmsg+0xee/0x170 [ 29.571666][ C2] __sys_sendmsg+0xcd/0x170 [ 29.571829][ C2] do_syscall_64+0xc6/0x1e0 [ 29.571992][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.572262][ C2] INITIAL READ USE at: [ 29.572364][ C2] __lock_acquire+0x797/0x1570 [ 29.572527][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.572767][ C2] _raw_read_lock_bh+0x44/0x80 [ 29.572931][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.573126][ C2] inet6_fill_link_af+0x5e/0xe0 [ 29.573362][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.573528][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.573739][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.574010][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 29.574173][ C2] register_netdevice+0x1177/0x1690 [ 29.574369][ C2] register_netdev+0x20/0x40 [ 29.574532][ C2] vti6_init_net+0x25d/0x380 [ 29.574787][ C2] ops_init+0x9b/0x560 [ 29.574951][ C2] register_pernet_operations+0x2db/0x710 [ 29.575146][ C2] register_pernet_device+0x2a/0x60 [ 29.575344][ C2] vti6_tunnel_init+0x18/0x110 [ 29.575507][ C2] do_one_initcall+0x8d/0x1e0 [ 29.575673][ C2] do_initcalls+0x1b2/0x3e0 [ 29.575913][ C2] kernel_init_freeable+0x232/0x310 [ 29.576122][ C2] kernel_init+0x20/0x200 [ 29.576287][ C2] ret_from_fork+0x31/0x70 [ 29.576527][ C2] ret_from_fork_asm+0x1a/0x30 [ 29.576690][ C2] } [ 29.576757][ C2] ... key at: [] __key.37+0x0/0x40 [ 29.576953][ C2] ... acquired at: [ 29.577121][ C2] mark_lock+0x28d/0x3e0 [ 29.577251][ C2] mark_usage+0xd9/0x2a0 [ 29.577382][ C2] __lock_acquire+0x797/0x1570 [ 29.577511][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.577641][ C2] _raw_write_lock+0x30/0x40 [ 29.577847][ C2] addrconf_rs_timer+0xa9/0x730 [ 29.577975][ C2] call_timer_fn+0x13b/0x230 [ 29.578106][ C2] __run_timers+0x545/0x810 [ 29.578239][ C2] run_timer_softirq+0xe8/0x1b0 [ 29.578444][ C2] __do_softirq+0x1f8/0x5df [ 29.578574][ C2] irq_exit_rcu+0x97/0xc0 [ 29.578716][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.578879][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.579119][ C2] default_idle+0xf/0x20 [ 29.579252][ C2] default_idle_call+0x6d/0xb0 [ 29.579383][ C2] cpuidle_idle_call+0x1f4/0x280 [ 29.579517][ C2] do_idle+0xf9/0x160 [ 29.579708][ C2] cpu_startup_entry+0x54/0x60 [ 29.579839][ C2] start_secondary+0x21c/0x2b0 [ 29.579970][ C2] common_startup_64+0x12c/0x138 [ 29.580100][ C2] [ 29.580166][ C2] [ 29.580166][ C2] stack backtrace: [ 29.580329][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 29.580526][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 29.580896][ C2] Call Trace: [ 29.581002][ C2] [ 29.581071][ C2] dump_stack_lvl+0x82/0xd0 [ 29.581207][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 29.581371][ C2] ? kernel_text_address+0x17/0xe0 [ 29.581577][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 29.581740][ C2] ? __pfx_usage_skip+0x10/0x10 [ 29.581873][ C2] ? __pfx_usage_match+0x10/0x10 [ 29.582002][ C2] ? arch_stack_walk+0x8c/0xf0 [ 29.582209][ C2] mark_lock_irq+0x4cd/0xa10 [ 29.582338][ C2] ? common_startup_64+0x12c/0x138 [ 29.582468][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 29.582598][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 29.582803][ C2] ? save_trace+0x8f/0x5b0 [ 29.582933][ C2] mark_lock+0x28d/0x3e0 [ 29.583035][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 29.583164][ C2] mark_usage+0xd9/0x2a0 [ 29.583264][ C2] __lock_acquire+0x797/0x1570 [ 29.583471][ C2] ? __pfx_validate_chain+0x10/0x10 [ 29.583610][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.583746][ C2] lock_acquire.part.0+0xeb/0x330 [ 29.583876][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 29.584083][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.584216][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 29.584347][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 29.584475][ C2] ? lock_acquire+0x32/0xc0 [ 29.584685][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 29.584817][ C2] _raw_write_lock+0x30/0x40 [ 29.584949][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 29.585078][ C2] addrconf_rs_timer+0xa9/0x730 [ 29.585206][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.585338][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.585471][ C2] ? call_timer_fn+0xe8/0x230 [ 29.585602][ C2] ? lock_acquire+0x32/0xc0 [ 29.585732][ C2] ? call_timer_fn+0xe8/0x230 [ 29.585938][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.586068][ C2] call_timer_fn+0x13b/0x230 [ 29.586199][ C2] ? call_timer_fn+0xe8/0x230 [ 29.586330][ C2] ? call_timer_fn+0xe8/0x230 [ 29.586535][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 29.586668][ C2] ? mark_lock+0x38/0x3e0 [ 29.586770][ C2] __run_timers+0x545/0x810 [ 29.586901][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.587032][ C2] ? __pfx___run_timers+0x10/0x10 [ 29.587237][ C2] ? do_raw_spin_lock+0x131/0x270 [ 29.587367][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 29.587503][ C2] ? lock_acquire+0x32/0xc0 [ 29.587635][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 29.587849][ C2] run_timer_softirq+0xe8/0x1b0 [ 29.587991][ C2] __do_softirq+0x1f8/0x5df [ 29.588119][ C2] irq_exit_rcu+0x97/0xc0 [ 29.588215][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.588343][ C2] [ 29.588409][ C2] [ 29.588472][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.588628][ C2] RIP: 0010:default_idle+0xf/0x20 [ 29.588760][ 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 [ 29.589330][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 29.589499][ C2] RAX: 00000000000a53b1 RBX: 1ffff9200002bfc1 RCX: ffffffffa8331ea5 [ 29.589778][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa5aac1d4 [ 29.589972][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 29.590172][ C2] R10: ffff88802f7384e3 R11: 1ffff110003ab28c R12: 0000000000000000 [ 29.590446][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 29.590651][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 29.590777][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 29.590996][ C2] default_idle_call+0x6d/0xb0 [ 29.591125][ C2] cpuidle_idle_call+0x1f4/0x280 [ 29.591256][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 29.591386][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 29.591591][ C2] do_idle+0xf9/0x160 [ 29.591690][ C2] cpu_startup_entry+0x54/0x60 [ 29.591818][ C2] start_secondary+0x21c/0x2b0 [ 29.591947][ C2] ? __pfx_start_secondary+0x10/0x10 [ 29.592089][ C2] common_startup_64+0x12c/0x138 [ 29.592288][ C2]