[ 25.322927][ T258] ip (258) used greatest stack depth: 23856 bytes left [ 28.877718][ T292] ip (292) used greatest stack depth: 23792 bytes left [ 36.904427][ C3] [ 36.904645][ C3] ======================================================== [ 36.904861][ C3] WARNING: possible irq lock inversion dependency detected [ 36.905067][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 36.905208][ C3] -------------------------------------------------------- [ 36.905420][ C3] swapper/3/0 just changed the state of lock: [ 36.905587][ C3] ffff888005bdd580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.905860][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.906066][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 36.906070][ C3] [ 36.906070][ C3] [ 36.906070][ C3] and interrupts could create inverse lock ordering between them. [ 36.906070][ C3] [ 36.906577][ C3] [ 36.906577][ C3] other info that might help us debug this: [ 36.906781][ C3] Possible interrupt unsafe locking scenario: [ 36.906781][ C3] [ 36.906983][ C3] CPU0 CPU1 [ 36.907129][ C3] ---- ---- [ 36.907262][ C3] lock(&p->alloc_lock); [ 36.907367][ C3] local_irq_disable(); [ 36.907532][ C3] lock(&ndev->lock); [ 36.907707][ C3] lock(&p->alloc_lock); [ 36.907886][ C3] <Interrupt> [ 36.907988][ C3] lock(&ndev->lock); [ 36.908092][ C3] [ 36.908092][ C3] *** DEADLOCK *** [ 36.908092][ C3] [ 36.908299][ C3] 1 lock held by swapper/3/0: [ 36.908439][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.908703][ C3] [ 36.908703][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 36.908936][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.909077][ C3] HARDIRQ-ON-W at: [ 36.909190][ C3] __lock_acquire+0x797/0x1570 [ 36.909368][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.909545][ C3] _raw_spin_lock+0x30/0x40 [ 36.909718][ C3] set_mems_allowed+0x1d/0x210 [ 36.909888][ C3] kernel_init_freeable+0x72/0x310 [ 36.910060][ C3] kernel_init+0x20/0x200 [ 36.910233][ C3] ret_from_fork+0x31/0x70 [ 36.910406][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.910582][ C3] SOFTIRQ-ON-W at: [ 36.910685][ C3] __lock_acquire+0x797/0x1570 [ 36.910857][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.911026][ C3] _raw_spin_lock+0x30/0x40 [ 36.911202][ C3] set_mems_allowed+0x1d/0x210 [ 36.911372][ C3] kernel_init_freeable+0x72/0x310 [ 36.911544][ C3] kernel_init+0x20/0x200 [ 36.911714][ C3] ret_from_fork+0x31/0x70 [ 36.911889][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.912060][ C3] INITIAL USE at: [ 36.912163][ C3] __lock_acquire+0x797/0x1570 [ 36.912334][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.912503][ C3] _raw_spin_lock+0x30/0x40 [ 36.912678][ C3] set_mems_allowed+0x1d/0x210 [ 36.912848][ C3] kernel_init_freeable+0x72/0x310 [ 36.913019][ C3] kernel_init+0x20/0x200 [ 36.913190][ C3] ret_from_fork+0x31/0x70 [ 36.913364][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.913537][ C3] } [ 36.913607][ C3] ... key at: [<ffffffff8f9ffd20>] __key.387+0x0/0x40 [ 36.913817][ C3] ... acquired at: [ 36.913918][ C3] __lock_acquire+0xaf0/0x1570 [ 36.914058][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.914197][ C3] _raw_spin_lock+0x30/0x40 [ 36.914333][ C3] __get_task_comm+0x27/0x70 [ 36.914474][ C3] ref_tracker_alloc+0x2ee/0x490 [ 36.914613][ C3] netdev_get_by_index+0x5e/0x80 [ 36.914757][ C3] fib6_nh_init+0x3d8/0x15b0 [ 36.914896][ C3] ip6_route_info_create+0xf18/0x17d0 [ 36.915033][ C3] addrconf_f6i_alloc+0x265/0x560 [ 36.915171][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.915310][ C3] addrconf_join_anycast+0x1c0/0x220 [ 36.915447][ C3] dev_forward_change+0x2a6/0x7b0 [ 36.915582][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 36.915752][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 36.915903][ C3] proc_sys_call_handler+0x403/0x5e0 [ 36.916041][ C3] vfs_write+0x9e5/0x10a0 [ 36.916179][ C3] ksys_write+0xf5/0x1e0 [ 36.916315][ C3] do_syscall_64+0xc6/0x1e0 [ 36.916455][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.916628][ C3] [ 36.916698][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 36.916837][ C3] HARDIRQ-ON-W at: [ 36.916945][ C3] __lock_acquire+0x797/0x1570 [ 36.917124][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.917296][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.917466][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.917750][ C3] addrconf_notify+0x749/0xd60 [ 36.917922][ C3] notifier_call_chain+0xcd/0x150 [ 36.918099][ C3] __dev_notify_flags+0xe6/0x250 [ 36.918270][ C3] dev_change_flags+0xec/0x160 [ 36.918442][ C3] do_setlink+0x7d6/0x21e0 [ 36.918616][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.918791][ C3] rtnl_newlink+0x63/0xa0 [ 36.918962][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.919132][ C3] netlink_rcv_skb+0x130/0x360 [ 36.919313][ C3] netlink_unicast+0x449/0x710 [ 36.919483][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.919657][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.919839][ C3] ___sys_sendmsg+0xee/0x170 [ 36.920009][ C3] __sys_sendmsg+0xcd/0x170 [ 36.920194][ C3] do_syscall_64+0xc6/0x1e0 [ 36.920365][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.920570][ C3] HARDIRQ-ON-R at: [ 36.920673][ C3] __lock_acquire+0x797/0x1570 [ 36.920848][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.921019][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.921188][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.921361][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.921537][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.921705][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.921875][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.922080][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.922250][ C3] register_netdevice+0x1177/0x1690 [ 36.922419][ C3] register_netdev+0x20/0x40 [ 36.922599][ C3] sit_init_net+0x250/0x4f0 [ 36.922773][ C3] ops_init+0x9b/0x560 [ 36.922911][ C3] register_pernet_operations+0x2db/0x710 [ 36.923118][ C3] register_pernet_device+0x2a/0x60 [ 36.923288][ C3] sit_init+0x23/0xe0 [ 36.923425][ C3] do_one_initcall+0x8d/0x1e0 [ 36.923597][ C3] do_initcalls+0x1b2/0x3e0 [ 36.923776][ C3] kernel_init_freeable+0x232/0x310 [ 36.923946][ C3] kernel_init+0x20/0x200 [ 36.924118][ C3] ret_from_fork+0x31/0x70 [ 36.924290][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.924463][ C3] IN-SOFTIRQ-W at: [ 36.924566][ C3] __lock_acquire+0x797/0x1570 [ 36.924738][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.924914][ C3] _raw_write_lock+0x30/0x40 [ 36.925085][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.925255][ C3] call_timer_fn+0x13b/0x230 [ 36.925429][ C3] __run_timers+0x545/0x810 [ 36.925598][ C3] timer_expire_remote+0x9b/0xe0 [ 36.925777][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.925960][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.926132][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.926301][ C3] __do_softirq+0x1f8/0x5df [ 36.926472][ C3] irq_exit_rcu+0x97/0xc0 [ 36.926645][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.926848][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.927057][ C3] default_idle+0xf/0x20 [ 36.927230][ C3] default_idle_call+0x6d/0xb0 [ 36.927399][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.927571][ C3] do_idle+0xf9/0x160 [ 36.927708][ C3] cpu_startup_entry+0x54/0x60 [ 36.927880][ C3] start_secondary+0x21c/0x2b0 [ 36.928057][ C3] common_startup_64+0x12c/0x138 [ 36.928230][ C3] INITIAL USE at: [ 36.928335][ C3] __lock_acquire+0x797/0x1570 [ 36.928505][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.928674][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.928844][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.929018][ C3] addrconf_notify+0x749/0xd60 [ 36.929194][ C3] notifier_call_chain+0xcd/0x150 [ 36.929366][ C3] __dev_notify_flags+0xe6/0x250 [ 36.929539][ C3] dev_change_flags+0xec/0x160 [ 36.929712][ C3] do_setlink+0x7d6/0x21e0 [ 36.929885][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.930055][ C3] rtnl_newlink+0x63/0xa0 [ 36.930233][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.930400][ C3] netlink_rcv_skb+0x130/0x360 [ 36.930573][ C3] netlink_unicast+0x449/0x710 [ 36.930747][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.930916][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.931086][ C3] ___sys_sendmsg+0xee/0x170 [ 36.931260][ C3] __sys_sendmsg+0xcd/0x170 [ 36.931437][ C3] do_syscall_64+0xc6/0x1e0 [ 36.931609][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.931812][ C3] INITIAL READ USE at: [ 36.931915][ C3] __lock_acquire+0x797/0x1570 [ 36.932084][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.932256][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.932432][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.932635][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.932804][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.932975][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.933265][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.933470][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.933643][ C3] register_netdevice+0x1177/0x1690 [ 36.933929][ C3] register_netdev+0x20/0x40 [ 36.934098][ C3] sit_init_net+0x250/0x4f0 [ 36.934271][ C3] ops_init+0x9b/0x560 [ 36.934523][ C3] register_pernet_operations+0x2db/0x710 [ 36.934725][ C3] register_pernet_device+0x2a/0x60 [ 36.934938][ C3] sit_init+0x23/0xe0 [ 36.935272][ C3] do_one_initcall+0x8d/0x1e0 [ 36.935443][ C3] do_initcalls+0x1b2/0x3e0 [ 36.935615][ C3] kernel_init_freeable+0x232/0x310 [ 36.935907][ C3] kernel_init+0x20/0x200 [ 36.936079][ C3] ret_from_fork+0x31/0x70 [ 36.936255][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.936425][ C3] } [ 36.936576][ C3] ... key at: [<ffffffff90a58300>] __key.37+0x0/0x40 [ 36.936783][ C3] ... acquired at: [ 36.936884][ C3] mark_lock+0x28d/0x3e0 [ 36.937022][ C3] mark_usage+0xd9/0x2a0 [ 36.937238][ C3] __lock_acquire+0x797/0x1570 [ 36.937374][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.937519][ C3] _raw_write_lock+0x30/0x40 [ 36.937656][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.937874][ C3] call_timer_fn+0x13b/0x230 [ 36.938010][ C3] __run_timers+0x545/0x810 [ 36.938147][ C3] timer_expire_remote+0x9b/0xe0 [ 36.938283][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.938421][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.938633][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.938772][ C3] __do_softirq+0x1f8/0x5df [ 36.938908][ C3] irq_exit_rcu+0x97/0xc0 [ 36.939045][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.939296][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.939481][ C3] default_idle+0xf/0x20 [ 36.939617][ C3] default_idle_call+0x6d/0xb0 [ 36.939754][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.939970][ C3] do_idle+0xf9/0x160 [ 36.940075][ C3] cpu_startup_entry+0x54/0x60 [ 36.940212][ C3] start_secondary+0x21c/0x2b0 [ 36.940351][ C3] common_startup_64+0x12c/0x138 [ 36.940565][ C3] [ 36.940633][ C3] [ 36.940633][ C3] stack backtrace: [ 36.940800][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 36.941004][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.941386][ C3] Call Trace: [ 36.941490][ C3] <IRQ> [ 36.941562][ C3] dump_stack_lvl+0x82/0xd0 [ 36.941701][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.941951][ C3] ? kernel_text_address+0x17/0xe0 [ 36.942091][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.942261][ C3] ? __pfx_usage_skip+0x10/0x10 [ 36.942398][ C3] ? __pfx_usage_match+0x10/0x10 [ 36.942617][ C3] ? arch_stack_walk+0x8c/0xf0 [ 36.942756][ C3] mark_lock_irq+0x4cd/0xa10 [ 36.942896][ C3] ? common_startup_64+0x12c/0x138 [ 36.943031][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.943247][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.943386][ C3] ? save_trace+0x8f/0x5b0 [ 36.943524][ C3] mark_lock+0x28d/0x3e0 [ 36.943627][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.943845][ C3] mark_usage+0xd9/0x2a0 [ 36.943949][ C3] __lock_acquire+0x797/0x1570 [ 36.944086][ C3] ? __pfx_validate_chain+0x10/0x10 [ 36.944222][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.944357][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.944571][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.944708][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.944844][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 36.944984][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.945197][ C3] ? lock_acquire+0x32/0xc0 [ 36.945332][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.945467][ C3] _raw_write_lock+0x30/0x40 [ 36.945602][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.945899][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.946035][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.946173][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.946308][ C3] ? call_timer_fn+0xe8/0x230 [ 36.946453][ C3] ? lock_acquire+0x32/0xc0 [ 36.946667][ C3] ? call_timer_fn+0xe8/0x230 [ 36.946804][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.946937][ C3] call_timer_fn+0x13b/0x230 [ 36.947071][ C3] ? call_timer_fn+0xe8/0x230 [ 36.947289][ C3] ? call_timer_fn+0xe8/0x230 [ 36.947425][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 36.947560][ C3] ? mark_lock+0x38/0x3e0 [ 36.947665][ C3] __run_timers+0x545/0x810 [ 36.947887][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.948025][ C3] ? __pfx___run_timers+0x10/0x10 [ 36.948161][ C3] ? __lock_release+0x103/0x460 [ 36.948297][ C3] ? do_raw_spin_lock+0x131/0x270 [ 36.948432][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.948646][ C3] ? lock_acquire+0x32/0xc0 [ 36.948786][ C3] ? timer_expire_remote+0x93/0xe0 [ 36.948923][ C3] timer_expire_remote+0x9b/0xe0 [ 36.949063][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.949278][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 36.949449][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.949587][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.949728][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 36.949979][ C3] __do_softirq+0x1f8/0x5df [ 36.950117][ C3] irq_exit_rcu+0x97/0xc0 [ 36.950220][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.950373][ C3] </IRQ> [ 36.950443][ C3] <TASK> [ 36.950591][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.950759][ C3] RIP: 0010:default_idle+0xf/0x20 [ 36.950900][ 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 a3 30 35 00 fb f4 <fa> c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 36.951481][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 36.951656][ C3] RAX: 000000000009553b RBX: 1ffff9200002dfc1 RCX: ffffffff8cf0e9d5 [ 36.951939][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8a8aa4a4 [ 36.952141][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 36.952344][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 36.952632][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 36.952837][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.952973][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 36.953110][ C3] default_idle_call+0x6d/0xb0 [ 36.953325][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.953461][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.953597][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.953739][ C3] do_idle+0xf9/0x160 [ 36.953924][ C3] cpu_startup_entry+0x54/0x60 [ 36.954061][ C3] start_secondary+0x21c/0x2b0 [ 36.954197][ C3] ? __pfx_start_secondary+0x10/0x10 [ 36.954335][ C3] common_startup_64+0x12c/0x138 [ 36.954474][ C3] </TASK>