[ 25.457834][ T260] ip (260) used greatest stack depth: 23584 bytes left [ 37.188261][ C2] [ 37.188438][ C2] ======================================================== [ 37.188647][ C2] WARNING: possible irq lock inversion dependency detected [ 37.188870][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 37.189014][ C2] -------------------------------------------------------- [ 37.189209][ C2] swapper/2/0 just changed the state of lock: [ 37.189370][ C2] ffff88800281ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 37.189617][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 37.189808][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 37.189812][ C2] [ 37.189812][ C2] [ 37.189812][ C2] and interrupts could create inverse lock ordering between them. [ 37.189812][ C2] [ 37.190305][ C2] [ 37.190305][ C2] other info that might help us debug this: [ 37.190494][ C2] Possible interrupt unsafe locking scenario: [ 37.190494][ C2] [ 37.190687][ C2] CPU0 CPU1 [ 37.190820][ C2] ---- ---- [ 37.190950][ C2] lock(&p->alloc_lock); [ 37.191057][ C2] local_irq_disable(); [ 37.191222][ C2] lock(&ndev->lock); [ 37.191388][ C2] lock(&p->alloc_lock); [ 37.191550][ C2] [ 37.191651][ C2] lock(&ndev->lock); [ 37.191752][ C2] [ 37.191752][ C2] *** DEADLOCK *** [ 37.191752][ C2] [ 37.191949][ C2] 1 lock held by swapper/2/0: [ 37.192080][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 37.192326][ C2] [ 37.192326][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 37.192549][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 37.192702][ C2] HARDIRQ-ON-W at: [ 37.192804][ C2] __lock_acquire+0x797/0x1570 [ 37.192979][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.193145][ C2] _raw_spin_lock+0x30/0x40 [ 37.193315][ C2] set_mems_allowed+0x1d/0x210 [ 37.193482][ C2] kernel_init_freeable+0x72/0x310 [ 37.193650][ C2] kernel_init+0x20/0x200 [ 37.193817][ C2] ret_from_fork+0x31/0x70 [ 37.193990][ C2] ret_from_fork_asm+0x1a/0x30 [ 37.194154][ C2] SOFTIRQ-ON-W at: [ 37.194259][ C2] __lock_acquire+0x797/0x1570 [ 37.194443][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.194612][ C2] _raw_spin_lock+0x30/0x40 [ 37.194809][ C2] set_mems_allowed+0x1d/0x210 [ 37.194986][ C2] kernel_init_freeable+0x72/0x310 [ 37.195213][ C2] kernel_init+0x20/0x200 [ 37.195385][ C2] ret_from_fork+0x31/0x70 [ 37.195575][ C2] ret_from_fork_asm+0x1a/0x30 [ 37.195740][ C2] INITIAL USE at: [ 37.195859][ C2] __lock_acquire+0x797/0x1570 [ 37.196030][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.196209][ C2] _raw_spin_lock+0x30/0x40 [ 37.196381][ C2] set_mems_allowed+0x1d/0x210 [ 37.196544][ C2] kernel_init_freeable+0x72/0x310 [ 37.196715][ C2] kernel_init+0x20/0x200 [ 37.196879][ C2] ret_from_fork+0x31/0x70 [ 37.197048][ C2] ret_from_fork_asm+0x1a/0x30 [ 37.197336][ C2] } [ 37.197409][ C2] ... key at: [] __key.387+0x0/0x40 [ 37.197610][ C2] ... acquired at: [ 37.197710][ C2] __lock_acquire+0xaf0/0x1570 [ 37.197845][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.197978][ C2] _raw_spin_lock+0x30/0x40 [ 37.198109][ C2] __get_task_comm+0x27/0x70 [ 37.198244][ C2] ref_tracker_alloc+0x2ee/0x490 [ 37.198381][ C2] netdev_get_by_index+0x5e/0x80 [ 37.198517][ C2] fib6_nh_init+0x3d8/0x15b0 [ 37.198651][ C2] ip6_route_info_create+0xf18/0x17d0 [ 37.198781][ C2] addrconf_f6i_alloc+0x265/0x560 [ 37.198910][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 37.199066][ C2] addrconf_join_anycast+0x1c0/0x220 [ 37.199203][ C2] dev_forward_change+0x2a6/0x7b0 [ 37.199345][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 37.199532][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 37.199676][ C2] proc_sys_call_handler+0x403/0x5e0 [ 37.199817][ C2] vfs_write+0x9e5/0x10a0 [ 37.199960][ C2] ksys_write+0xf5/0x1e0 [ 37.200102][ C2] do_syscall_64+0xc6/0x1e0 [ 37.200253][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.200425][ C2] [ 37.200492][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 37.200653][ C2] HARDIRQ-ON-W at: [ 37.200759][ C2] __lock_acquire+0x797/0x1570 [ 37.200943][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.201125][ C2] _raw_write_lock_bh+0x38/0x50 [ 37.201309][ C2] addrconf_permanent_addr+0x6e/0x670 [ 37.201474][ C2] addrconf_notify+0x749/0xd60 [ 37.201660][ C2] notifier_call_chain+0xcd/0x150 [ 37.201831][ C2] __dev_notify_flags+0xe6/0x250 [ 37.201999][ C2] dev_change_flags+0xec/0x160 [ 37.202190][ C2] do_setlink+0x7d6/0x21e0 [ 37.202392][ C2] __rtnl_newlink+0xaa7/0xd80 [ 37.202574][ C2] rtnl_newlink+0x63/0xa0 [ 37.202782][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.202951][ C2] netlink_rcv_skb+0x130/0x360 [ 37.203136][ C2] netlink_unicast+0x449/0x710 [ 37.203300][ C2] netlink_sendmsg+0x723/0xbe0 [ 37.203467][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 37.203638][ C2] ___sys_sendmsg+0xee/0x170 [ 37.203804][ C2] __sys_sendmsg+0xcd/0x170 [ 37.204002][ C2] do_syscall_64+0xc6/0x1e0 [ 37.204182][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.204382][ C2] HARDIRQ-ON-R at: [ 37.204481][ C2] __lock_acquire+0x797/0x1570 [ 37.204653][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.204826][ C2] _raw_read_lock_bh+0x44/0x80 [ 37.205019][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.205193][ C2] inet6_fill_link_af+0x5e/0xe0 [ 37.205375][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.205547][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.205711][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.205944][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 37.206109][ C2] register_netdevice+0x1177/0x1690 [ 37.206295][ C2] register_netdev+0x20/0x40 [ 37.206468][ C2] sit_init_net+0x250/0x4f0 [ 37.206647][ C2] ops_init+0x9b/0x560 [ 37.206779][ C2] register_pernet_operations+0x2db/0x710 [ 37.207022][ C2] register_pernet_device+0x2a/0x60 [ 37.207207][ C2] sit_init+0x23/0xe0 [ 37.207355][ C2] do_one_initcall+0x8d/0x1e0 [ 37.207537][ C2] do_initcalls+0x1b2/0x3e0 [ 37.207708][ C2] kernel_init_freeable+0x232/0x310 [ 37.207903][ C2] kernel_init+0x20/0x200 [ 37.208074][ C2] ret_from_fork+0x31/0x70 [ 37.208270][ C2] ret_from_fork_asm+0x1a/0x30 [ 37.208437][ C2] IN-SOFTIRQ-W at: [ 37.208536][ C2] __lock_acquire+0x797/0x1570 [ 37.208705][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.208870][ C2] _raw_write_lock+0x30/0x40 [ 37.209036][ C2] addrconf_rs_timer+0xa9/0x730 [ 37.209220][ C2] call_timer_fn+0x13b/0x230 [ 37.209412][ C2] __run_timers+0x545/0x810 [ 37.209587][ C2] run_timer_softirq+0xe8/0x1b0 [ 37.209770][ C2] __do_softirq+0x1f8/0x5df [ 37.209957][ C2] irq_exit_rcu+0x97/0xc0 [ 37.210138][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.210339][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.210560][ C2] default_idle+0xf/0x20 [ 37.210747][ C2] default_idle_call+0x6d/0xb0 [ 37.210918][ C2] cpuidle_idle_call+0x1f4/0x280 [ 37.211085][ C2] do_idle+0xf9/0x160 [ 37.211226][ C2] cpu_startup_entry+0x54/0x60 [ 37.211391][ C2] start_secondary+0x21c/0x2b0 [ 37.211557][ C2] common_startup_64+0x12c/0x138 [ 37.211723][ C2] INITIAL USE at: [ 37.211825][ C2] __lock_acquire+0x797/0x1570 [ 37.211995][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.212160][ C2] _raw_write_lock_bh+0x38/0x50 [ 37.212329][ C2] addrconf_permanent_addr+0x6e/0x670 [ 37.212493][ C2] addrconf_notify+0x749/0xd60 [ 37.212682][ C2] notifier_call_chain+0xcd/0x150 [ 37.212850][ C2] __dev_notify_flags+0xe6/0x250 [ 37.213020][ C2] dev_change_flags+0xec/0x160 [ 37.213182][ C2] do_setlink+0x7d6/0x21e0 [ 37.213348][ C2] __rtnl_newlink+0xaa7/0xd80 [ 37.213518][ C2] rtnl_newlink+0x63/0xa0 [ 37.213685][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.213848][ C2] netlink_rcv_skb+0x130/0x360 [ 37.214013][ C2] netlink_unicast+0x449/0x710 [ 37.214186][ C2] netlink_sendmsg+0x723/0xbe0 [ 37.214349][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 37.214513][ C2] ___sys_sendmsg+0xee/0x170 [ 37.214679][ C2] __sys_sendmsg+0xcd/0x170 [ 37.214843][ C2] do_syscall_64+0xc6/0x1e0 [ 37.215007][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.215209][ C2] INITIAL READ USE at: [ 37.215315][ C2] __lock_acquire+0x797/0x1570 [ 37.215480][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.215644][ C2] _raw_read_lock_bh+0x44/0x80 [ 37.215811][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.216009][ C2] inet6_fill_link_af+0x5e/0xe0 [ 37.216185][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.216366][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.216561][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.216756][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 37.216955][ C2] register_netdevice+0x1177/0x1690 [ 37.217264][ C2] register_netdev+0x20/0x40 [ 37.217432][ C2] sit_init_net+0x250/0x4f0 [ 37.217607][ C2] ops_init+0x9b/0x560 [ 37.217887][ C2] register_pernet_operations+0x2db/0x710 [ 37.218090][ C2] register_pernet_device+0x2a/0x60 [ 37.218308][ C2] sit_init+0x23/0xe0 [ 37.218564][ C2] do_one_initcall+0x8d/0x1e0 [ 37.218761][ C2] do_initcalls+0x1b2/0x3e0 [ 37.218939][ C2] kernel_init_freeable+0x232/0x310 [ 37.219241][ C2] kernel_init+0x20/0x200 [ 37.219423][ C2] ret_from_fork+0x31/0x70 [ 37.219623][ C2] ret_from_fork_asm+0x1a/0x30 [ 37.219869][ C2] } [ 37.219954][ C2] ... key at: [] __key.37+0x0/0x40 [ 37.220165][ C2] ... acquired at: [ 37.220267][ C2] mark_lock+0x28d/0x3e0 [ 37.220400][ C2] mark_usage+0xd9/0x2a0 [ 37.220609][ C2] __lock_acquire+0x797/0x1570 [ 37.220741][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.220903][ C2] _raw_write_lock+0x30/0x40 [ 37.221039][ C2] addrconf_rs_timer+0xa9/0x730 [ 37.221270][ C2] call_timer_fn+0x13b/0x230 [ 37.221408][ C2] __run_timers+0x545/0x810 [ 37.221559][ C2] run_timer_softirq+0xe8/0x1b0 [ 37.221709][ C2] __do_softirq+0x1f8/0x5df [ 37.221920][ C2] irq_exit_rcu+0x97/0xc0 [ 37.222075][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.222249][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.222422][ C2] default_idle+0xf/0x20 [ 37.222681][ C2] default_idle_call+0x6d/0xb0 [ 37.222814][ C2] cpuidle_idle_call+0x1f4/0x280 [ 37.222970][ C2] do_idle+0xf9/0x160 [ 37.223069][ C2] cpu_startup_entry+0x54/0x60 [ 37.223208][ C2] start_secondary+0x21c/0x2b0 [ 37.223427][ C2] common_startup_64+0x12c/0x138 [ 37.223580][ C2] [ 37.223646][ C2] [ 37.223646][ C2] stack backtrace: [ 37.223816][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 37.224120][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 37.224433][ C2] Call Trace: [ 37.224534][ C2] [ 37.224777][ C2] dump_stack_lvl+0x82/0xd0 [ 37.224925][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 37.225119][ C2] ? kernel_text_address+0x17/0xe0 [ 37.225258][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 37.225517][ C2] ? __pfx_usage_skip+0x10/0x10 [ 37.225674][ C2] ? __pfx_usage_match+0x10/0x10 [ 37.225807][ C2] ? arch_stack_walk+0x8c/0xf0 [ 37.225958][ C2] mark_lock_irq+0x4cd/0xa10 [ 37.226173][ C2] ? common_startup_64+0x12c/0x138 [ 37.226322][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 37.226464][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 37.226620][ C2] ? save_trace+0x8f/0x5b0 [ 37.226752][ C2] mark_lock+0x28d/0x3e0 [ 37.226958][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 37.227097][ C2] mark_usage+0xd9/0x2a0 [ 37.227196][ C2] __lock_acquire+0x797/0x1570 [ 37.227375][ C2] ? __pfx_validate_chain+0x10/0x10 [ 37.227607][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.227739][ C2] lock_acquire.part.0+0xeb/0x330 [ 37.227898][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 37.228031][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.228180][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 37.228387][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 37.228518][ C2] ? lock_acquire+0x32/0xc0 [ 37.228664][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 37.228796][ C2] _raw_write_lock+0x30/0x40 [ 37.229033][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 37.229163][ C2] addrconf_rs_timer+0xa9/0x730 [ 37.229295][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.229449][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.229676][ C2] ? call_timer_fn+0xe8/0x230 [ 37.229809][ C2] ? lock_acquire+0x32/0xc0 [ 37.229961][ C2] ? call_timer_fn+0xe8/0x230 [ 37.230104][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.230329][ C2] call_timer_fn+0x13b/0x230 [ 37.230483][ C2] ? call_timer_fn+0xe8/0x230 [ 37.230615][ C2] ? call_timer_fn+0xe8/0x230 [ 37.230747][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 37.230880][ C2] ? mark_lock+0x38/0x3e0 [ 37.231061][ C2] __run_timers+0x545/0x810 [ 37.231192][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.231328][ C2] ? __pfx___run_timers+0x10/0x10 [ 37.231462][ C2] ? do_raw_spin_lock+0x131/0x270 [ 37.231670][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 37.231800][ C2] ? lock_acquire+0x32/0xc0 [ 37.231929][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 37.232060][ C2] run_timer_softirq+0xe8/0x1b0 [ 37.232275][ C2] __do_softirq+0x1f8/0x5df [ 37.232407][ C2] irq_exit_rcu+0x97/0xc0 [ 37.232508][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.232650][ C2] [ 37.232718][ C2] [ 37.232786][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.233028][ C2] RIP: 0010:default_idle+0xf/0x20 [ 37.233168][ 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 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 [ 37.233718][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 37.233895][ C2] RAX: 00000000000f79b1 RBX: 1ffff9200002bfc1 RCX: ffffffffbb10e9d5 [ 37.234091][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb8aaa4a4 [ 37.234364][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 37.234560][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 37.234759][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 37.235034][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 37.235165][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 37.235304][ C2] default_idle_call+0x6d/0xb0 [ 37.235583][ C2] cpuidle_idle_call+0x1f4/0x280 [ 37.235718][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 37.235848][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 37.235995][ C2] do_idle+0xf9/0x160 [ 37.236096][ C2] cpu_startup_entry+0x54/0x60 [ 37.236339][ C2] start_secondary+0x21c/0x2b0 [ 37.236469][ C2] ? __pfx_start_secondary+0x10/0x10 [ 37.236602][ C2] common_startup_64+0x12c/0x138 [ 37.236736][ C2]