[ 29.417338][ C3] [ 29.417437][ C3] ======================================================== [ 29.417629][ C3] WARNING: possible irq lock inversion dependency detected [ 29.417824][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 29.417958][ C3] -------------------------------------------------------- [ 29.418152][ C3] swapper/3/0 just changed the state of lock: [ 29.418328][ C3] ffff8880081b6d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.418575][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.418768][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 29.418772][ C3] [ 29.418772][ C3] [ 29.418772][ C3] and interrupts could create inverse lock ordering between them. [ 29.418772][ C3] [ 29.419243][ C3] [ 29.419243][ C3] other info that might help us debug this: [ 29.419434][ C3] Possible interrupt unsafe locking scenario: [ 29.419434][ C3] [ 29.419635][ C3] CPU0 CPU1 [ 29.419766][ C3] ---- ---- [ 29.419894][ C3] lock(&p->alloc_lock); [ 29.419993][ C3] local_irq_disable(); [ 29.420154][ C3] lock(&ndev->lock); [ 29.420317][ C3] lock(&p->alloc_lock); [ 29.420477][ C3] [ 29.420575][ C3] lock(&ndev->lock); [ 29.420679][ C3] [ 29.420679][ C3] *** DEADLOCK *** [ 29.420679][ C3] [ 29.420873][ C3] 1 lock held by swapper/3/0: [ 29.421004][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.421243][ C3] [ 29.421243][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 29.421469][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.421606][ C3] HARDIRQ-ON-W at: [ 29.421709][ C3] __lock_acquire+0x797/0x1570 [ 29.421886][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.422054][ C3] _raw_spin_lock+0x30/0x40 [ 29.422222][ C3] set_mems_allowed+0x1d/0x210 [ 29.422388][ C3] kernel_init_freeable+0x72/0x310 [ 29.422554][ C3] kernel_init+0x20/0x200 [ 29.422721][ C3] ret_from_fork+0x31/0x70 [ 29.422887][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.423055][ C3] SOFTIRQ-ON-W at: [ 29.423154][ C3] __lock_acquire+0x797/0x1570 [ 29.423322][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.423491][ C3] _raw_spin_lock+0x30/0x40 [ 29.423667][ C3] set_mems_allowed+0x1d/0x210 [ 29.423831][ C3] kernel_init_freeable+0x72/0x310 [ 29.424005][ C3] kernel_init+0x20/0x200 [ 29.424174][ C3] ret_from_fork+0x31/0x70 [ 29.424343][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.424509][ C3] INITIAL USE at: [ 29.424605][ C3] __lock_acquire+0x797/0x1570 [ 29.424777][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.424944][ C3] _raw_spin_lock+0x30/0x40 [ 29.425109][ C3] set_mems_allowed+0x1d/0x210 [ 29.425274][ C3] kernel_init_freeable+0x72/0x310 [ 29.425438][ C3] kernel_init+0x20/0x200 [ 29.425601][ C3] ret_from_fork+0x31/0x70 [ 29.425766][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.425933][ C3] } [ 29.426003][ C3] ... key at: [] __key.388+0x0/0x40 [ 29.426199][ C3] ... acquired at: [ 29.426299][ C3] __lock_acquire+0xaf0/0x1570 [ 29.426435][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.426565][ C3] _raw_spin_lock+0x30/0x40 [ 29.426697][ C3] __get_task_comm+0x27/0x70 [ 29.426830][ C3] ref_tracker_alloc+0x2ee/0x490 [ 29.426963][ C3] netdev_get_by_index+0x5e/0x80 [ 29.427095][ C3] fib6_nh_init+0x3d8/0x1580 [ 29.427227][ C3] ip6_route_info_create+0xf18/0x17d0 [ 29.427357][ C3] addrconf_f6i_alloc+0x265/0x560 [ 29.427488][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 29.427621][ C3] addrconf_join_anycast+0x1c0/0x220 [ 29.427751][ C3] dev_forward_change+0x2a6/0x7b0 [ 29.427882][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 29.428047][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 29.428178][ C3] proc_sys_call_handler+0x403/0x5e0 [ 29.428309][ C3] vfs_write+0x9e5/0x10a0 [ 29.428441][ C3] ksys_write+0xf5/0x1e0 [ 29.428571][ C3] do_syscall_64+0xc6/0x1e0 [ 29.428703][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.428867][ C3] [ 29.428933][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 29.429068][ C3] HARDIRQ-ON-W at: [ 29.429168][ C3] __lock_acquire+0x797/0x1570 [ 29.429335][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.429499][ C3] _raw_write_lock_bh+0x38/0x50 [ 29.429664][ C3] addrconf_permanent_addr+0x6e/0x670 [ 29.429830][ C3] addrconf_notify+0x749/0xd60 [ 29.429995][ C3] notifier_call_chain+0xcd/0x150 [ 29.430161][ C3] __dev_notify_flags+0xe6/0x250 [ 29.430327][ C3] dev_change_flags+0xec/0x160 [ 29.430491][ C3] do_setlink+0x7d6/0x21e0 [ 29.430655][ C3] __rtnl_newlink+0xaa7/0xd80 [ 29.430819][ C3] rtnl_newlink+0x63/0xa0 [ 29.430985][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.431151][ C3] netlink_rcv_skb+0x130/0x360 [ 29.431317][ C3] netlink_unicast+0x449/0x710 [ 29.431488][ C3] netlink_sendmsg+0x723/0xbe0 [ 29.431653][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 29.431819][ C3] ___sys_sendmsg+0xee/0x170 [ 29.431985][ C3] __sys_sendmsg+0xcd/0x170 [ 29.432150][ C3] do_syscall_64+0xc6/0x1e0 [ 29.432316][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.432512][ C3] HARDIRQ-ON-R at: [ 29.432612][ C3] __lock_acquire+0x797/0x1570 [ 29.432776][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.432942][ C3] _raw_read_lock_bh+0x44/0x80 [ 29.433106][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.433271][ C3] inet6_fill_link_af+0x5e/0xe0 [ 29.433443][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.433606][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.433773][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.433969][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 29.434132][ C3] register_netdevice+0x1177/0x1690 [ 29.434377][ C3] register_netdev+0x20/0x40 [ 29.434552][ C3] vti6_init_net+0x25d/0x380 [ 29.434721][ C3] ops_init+0x9b/0x560 [ 29.434857][ C3] register_pernet_operations+0x2db/0x710 [ 29.435053][ C3] register_pernet_device+0x2a/0x60 [ 29.435217][ C3] vti6_tunnel_init+0x18/0x110 [ 29.435382][ C3] do_one_initcall+0x8d/0x1e0 [ 29.435626][ C3] do_initcalls+0x1b2/0x3e0 [ 29.435791][ C3] kernel_init_freeable+0x232/0x310 [ 29.435956][ C3] kernel_init+0x20/0x200 [ 29.436121][ C3] ret_from_fork+0x31/0x70 [ 29.436361][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.436526][ C3] IN-SOFTIRQ-W at: [ 29.436631][ C3] __lock_acquire+0x797/0x1570 [ 29.436873][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.437037][ C3] _raw_write_lock+0x30/0x40 [ 29.437200][ C3] addrconf_rs_timer+0xa9/0x730 [ 29.437362][ C3] call_timer_fn+0x13b/0x230 [ 29.437603][ C3] __run_timers+0x545/0x810 [ 29.437766][ C3] run_timer_softirq+0xe8/0x1b0 [ 29.437933][ C3] __do_softirq+0x1f8/0x5df [ 29.438171][ C3] irq_exit_rcu+0x97/0xc0 [ 29.438334][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.438532][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.438809][ C3] default_idle+0xf/0x20 [ 29.438971][ C3] default_idle_call+0x6d/0xb0 [ 29.439134][ C3] cpuidle_idle_call+0x1f4/0x280 [ 29.439298][ C3] do_idle+0xf9/0x160 [ 29.439505][ C3] cpu_startup_entry+0x54/0x60 [ 29.439668][ C3] start_secondary+0x21c/0x2b0 [ 29.439834][ C3] common_startup_64+0x12c/0x138 [ 29.440072][ C3] INITIAL USE at: [ 29.440169][ C3] __lock_acquire+0x797/0x1570 [ 29.440332][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.440499][ C3] _raw_write_lock_bh+0x38/0x50 [ 29.440735][ C3] addrconf_permanent_addr+0x6e/0x670 [ 29.440898][ C3] addrconf_notify+0x749/0xd60 [ 29.441061][ C3] notifier_call_chain+0xcd/0x150 [ 29.441300][ C3] __dev_notify_flags+0xe6/0x250 [ 29.441466][ C3] dev_change_flags+0xec/0x160 [ 29.441631][ C3] do_setlink+0x7d6/0x21e0 [ 29.441793][ C3] __rtnl_newlink+0xaa7/0xd80 [ 29.441956][ C3] rtnl_newlink+0x63/0xa0 [ 29.442119][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.442284][ C3] netlink_rcv_skb+0x130/0x360 [ 29.442451][ C3] netlink_unicast+0x449/0x710 [ 29.442615][ C3] netlink_sendmsg+0x723/0xbe0 [ 29.442778][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 29.442942][ C3] ___sys_sendmsg+0xee/0x170 [ 29.443182][ C3] __sys_sendmsg+0xcd/0x170 [ 29.443345][ C3] do_syscall_64+0xc6/0x1e0 [ 29.443511][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.443779][ C3] INITIAL READ USE at: [ 29.443879][ C3] __lock_acquire+0x797/0x1570 [ 29.444044][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.444207][ C3] _raw_read_lock_bh+0x44/0x80 [ 29.444448][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.444642][ C3] inet6_fill_link_af+0x5e/0xe0 [ 29.444816][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.444983][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.445176][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.445370][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 29.445607][ C3] register_netdevice+0x1177/0x1690 [ 29.445802][ C3] register_netdev+0x20/0x40 [ 29.445964][ C3] vti6_init_net+0x25d/0x380 [ 29.446205][ C3] ops_init+0x9b/0x560 [ 29.446368][ C3] register_pernet_operations+0x2db/0x710 [ 29.446562][ C3] register_pernet_device+0x2a/0x60 [ 29.446831][ C3] vti6_tunnel_init+0x18/0x110 [ 29.446993][ C3] do_one_initcall+0x8d/0x1e0 [ 29.447155][ C3] do_initcalls+0x1b2/0x3e0 [ 29.447394][ C3] kernel_init_freeable+0x232/0x310 [ 29.447589][ C3] kernel_init+0x20/0x200 [ 29.447752][ C3] ret_from_fork+0x31/0x70 [ 29.447915][ C3] ret_from_fork_asm+0x1a/0x30 [ 29.448152][ C3] } [ 29.448217][ C3] ... key at: [] __key.37+0x0/0x40 [ 29.448412][ C3] ... acquired at: [ 29.448509][ C3] mark_lock+0x28d/0x3e0 [ 29.448715][ C3] mark_usage+0xd9/0x2a0 [ 29.448844][ C3] __lock_acquire+0x797/0x1570 [ 29.448974][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.449104][ C3] _raw_write_lock+0x30/0x40 [ 29.449307][ C3] addrconf_rs_timer+0xa9/0x730 [ 29.449444][ C3] call_timer_fn+0x13b/0x230 [ 29.449573][ C3] __run_timers+0x545/0x810 [ 29.449706][ C3] run_timer_softirq+0xe8/0x1b0 [ 29.449909][ C3] __do_softirq+0x1f8/0x5df [ 29.450039][ C3] irq_exit_rcu+0x97/0xc0 [ 29.450168][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.450333][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.450566][ C3] default_idle+0xf/0x20 [ 29.450695][ C3] default_idle_call+0x6d/0xb0 [ 29.450824][ C3] cpuidle_idle_call+0x1f4/0x280 [ 29.450954][ C3] do_idle+0xf9/0x160 [ 29.451052][ C3] cpu_startup_entry+0x54/0x60 [ 29.451254][ C3] start_secondary+0x21c/0x2b0 [ 29.451390][ C3] common_startup_64+0x12c/0x138 [ 29.451519][ C3] [ 29.451584][ C3] [ 29.451584][ C3] stack backtrace: [ 29.451813][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 29.452006][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 29.452294][ C3] Call Trace: [ 29.452468][ C3] [ 29.452536][ C3] dump_stack_lvl+0x82/0xd0 [ 29.452669][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 29.452829][ C3] ? kernel_text_address+0x17/0xe0 [ 29.453034][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 29.453199][ C3] ? __pfx_usage_skip+0x10/0x10 [ 29.453330][ C3] ? __pfx_usage_match+0x10/0x10 [ 29.453458][ C3] ? arch_stack_walk+0x8c/0xf0 [ 29.453661][ C3] mark_lock_irq+0x4cd/0xa10 [ 29.453791][ C3] ? common_startup_64+0x12c/0x138 [ 29.453919][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 29.454054][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 29.454185][ C3] ? save_trace+0x8f/0x5b0 [ 29.454389][ C3] mark_lock+0x28d/0x3e0 [ 29.454487][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 29.454619][ C3] mark_usage+0xd9/0x2a0 [ 29.454722][ C3] __lock_acquire+0x797/0x1570 [ 29.454853][ C3] ? __pfx_validate_chain+0x10/0x10 [ 29.454983][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.455111][ C3] lock_acquire.part.0+0xeb/0x330 [ 29.455240][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 29.455371][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.455573][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 29.455704][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 29.455834][ C3] ? lock_acquire+0x32/0xc0 [ 29.455970][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 29.456171][ C3] _raw_write_lock+0x30/0x40 [ 29.456299][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 29.456430][ C3] addrconf_rs_timer+0xa9/0x730 [ 29.456558][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.456762][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.456892][ C3] ? call_timer_fn+0xe8/0x230 [ 29.457020][ C3] ? lock_acquire+0x32/0xc0 [ 29.457148][ C3] ? call_timer_fn+0xe8/0x230 [ 29.457363][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.457491][ C3] call_timer_fn+0x13b/0x230 [ 29.457620][ C3] ? call_timer_fn+0xe8/0x230 [ 29.457750][ C3] ? call_timer_fn+0xe8/0x230 [ 29.457878][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 29.458007][ C3] ? mark_lock+0x38/0x3e0 [ 29.458111][ C3] __run_timers+0x545/0x810 [ 29.458239][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.458378][ C3] ? __pfx___run_timers+0x10/0x10 [ 29.458511][ C3] ? do_raw_spin_lock+0x131/0x270 [ 29.458640][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 29.458767][ C3] ? lock_acquire+0x32/0xc0 [ 29.458896][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 29.459099][ C3] run_timer_softirq+0xe8/0x1b0 [ 29.459230][ C3] __do_softirq+0x1f8/0x5df [ 29.459363][ C3] irq_exit_rcu+0x97/0xc0 [ 29.459461][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.459598][ C3] [ 29.459736][ C3] [ 29.459801][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.459961][ C3] RIP: 0010:default_idle+0xf/0x20 [ 29.460095][ 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 eb 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.460641][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000246 [ 29.460807][ C3] RAX: 0000000000073135 RBX: 1ffff9200002dfc1 RCX: ffffffff9bf32ea5 [ 29.461002][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff996ac1d4 [ 29.461198][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 29.461397][ C3] R10: ffff8880361b84e3 R11: ffff8880361bde40 R12: 0000000000000000 [ 29.461590][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 29.461783][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 29.461912][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 29.462117][ C3] default_idle_call+0x6d/0xb0 [ 29.462246][ C3] cpuidle_idle_call+0x1f4/0x280 [ 29.462375][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 29.462509][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 29.462639][ C3] do_idle+0xf9/0x160 [ 29.462809][ C3] cpu_startup_entry+0x54/0x60 [ 29.462939][ C3] start_secondary+0x21c/0x2b0 [ 29.463069][ C3] ? __pfx_start_secondary+0x10/0x10 [ 29.463199][ C3] common_startup_64+0x12c/0x138 [ 29.463408][ C3]