[ 25.707626][ T256] ip (256) used greatest stack depth: 23328 bytes left [ 30.933334][ T295] netem: version 1.3 [ 32.870849][ C2] [ 32.871067][ C2] ======================================================== [ 32.871297][ C2] WARNING: possible irq lock inversion dependency detected [ 32.871512][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 32.871654][ C2] -------------------------------------------------------- [ 32.871870][ C2] swapper/2/0 just changed the state of lock: [ 32.872048][ C2] ffff8880061a5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.872312][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.872526][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 32.872530][ C2] [ 32.872530][ C2] [ 32.872530][ C2] and interrupts could create inverse lock ordering between them. [ 32.872530][ C2] [ 32.873054][ C2] [ 32.873054][ C2] other info that might help us debug this: [ 32.873264][ C2] Possible interrupt unsafe locking scenario: [ 32.873264][ C2] [ 32.873481][ C2] CPU0 CPU1 [ 32.873627][ C2] ---- ---- [ 32.873778][ C2] lock(&p->alloc_lock); [ 32.873894][ C2] local_irq_disable(); [ 32.874073][ C2] lock(&ndev->lock); [ 32.874255][ C2] lock(&p->alloc_lock); [ 32.874435][ C2] [ 32.874542][ C2] lock(&ndev->lock); [ 32.874652][ C2] [ 32.874652][ C2] *** DEADLOCK *** [ 32.874652][ C2] [ 32.874862][ C2] 1 lock held by swapper/2/0: [ 32.875010][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.875280][ C2] [ 32.875280][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 32.875530][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.875701][ C2] HARDIRQ-ON-W at: [ 32.875809][ C2] __lock_acquire+0x797/0x1570 [ 32.875991][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.876177][ C2] _raw_spin_lock+0x30/0x40 [ 32.876359][ C2] set_mems_allowed+0x1d/0x210 [ 32.876540][ C2] kernel_init_freeable+0x72/0x310 [ 32.876722][ C2] kernel_init+0x20/0x200 [ 32.876905][ C2] ret_from_fork+0x31/0x70 [ 32.877089][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.877271][ C2] SOFTIRQ-ON-W at: [ 32.877379][ C2] __lock_acquire+0x797/0x1570 [ 32.877560][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.877738][ C2] _raw_spin_lock+0x30/0x40 [ 32.877921][ C2] set_mems_allowed+0x1d/0x210 [ 32.878101][ C2] kernel_init_freeable+0x72/0x310 [ 32.878279][ C2] kernel_init+0x20/0x200 [ 32.878461][ C2] ret_from_fork+0x31/0x70 [ 32.878638][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.878820][ C2] INITIAL USE at: [ 32.878927][ C2] __lock_acquire+0x797/0x1570 [ 32.879105][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.879283][ C2] _raw_spin_lock+0x30/0x40 [ 32.879468][ C2] set_mems_allowed+0x1d/0x210 [ 32.879647][ C2] kernel_init_freeable+0x72/0x310 [ 32.879828][ C2] kernel_init+0x20/0x200 [ 32.880007][ C2] ret_from_fork+0x31/0x70 [ 32.880186][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.880364][ C2] } [ 32.880437][ C2] ... key at: [] __key.387+0x0/0x40 [ 32.880657][ C2] ... acquired at: [ 32.880764][ C2] __lock_acquire+0xaf0/0x1570 [ 32.880911][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.881055][ C2] _raw_spin_lock+0x30/0x40 [ 32.881199][ C2] __get_task_comm+0x27/0x70 [ 32.881344][ C2] ref_tracker_alloc+0x2ee/0x490 [ 32.881488][ C2] netdev_get_by_index+0x5e/0x80 [ 32.881636][ C2] fib6_nh_init+0x3d8/0x15b0 [ 32.881784][ C2] ip6_route_info_create+0xf18/0x17d0 [ 32.881928][ C2] ip6_route_add+0x1c/0x140 [ 32.882072][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 32.882216][ C2] addrconf_permanent_addr+0x32f/0x670 [ 32.882358][ C2] addrconf_notify+0x749/0xd60 [ 32.882504][ C2] notifier_call_chain+0xcd/0x150 [ 32.882647][ C2] __dev_notify_flags+0xe6/0x250 [ 32.882793][ C2] dev_change_flags+0xec/0x160 [ 32.882935][ C2] do_setlink+0x7d6/0x21e0 [ 32.883081][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.883225][ C2] rtnl_newlink+0x63/0xa0 [ 32.883370][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.883513][ C2] netlink_rcv_skb+0x130/0x360 [ 32.883659][ C2] netlink_unicast+0x449/0x710 [ 32.883801][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.883944][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.884091][ C2] ___sys_sendmsg+0xee/0x170 [ 32.884239][ C2] __sys_sendmsg+0xcd/0x170 [ 32.884382][ C2] do_syscall_64+0xc6/0x1e0 [ 32.884528][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.884707][ C2] [ 32.884779][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 32.884933][ C2] HARDIRQ-ON-W at: [ 32.885039][ C2] __lock_acquire+0x797/0x1570 [ 32.885221][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.885402][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.885581][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.885765][ C2] addrconf_notify+0x749/0xd60 [ 32.885943][ C2] notifier_call_chain+0xcd/0x150 [ 32.886125][ C2] __dev_notify_flags+0xe6/0x250 [ 32.886303][ C2] dev_change_flags+0xec/0x160 [ 32.886488][ C2] do_setlink+0x7d6/0x21e0 [ 32.886668][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.886851][ C2] rtnl_newlink+0x63/0xa0 [ 32.887037][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.887217][ C2] netlink_rcv_skb+0x130/0x360 [ 32.887399][ C2] netlink_unicast+0x449/0x710 [ 32.887577][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.887759][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.887941][ C2] ___sys_sendmsg+0xee/0x170 [ 32.888123][ C2] __sys_sendmsg+0xcd/0x170 [ 32.888303][ C2] do_syscall_64+0xc6/0x1e0 [ 32.888483][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.888701][ C2] HARDIRQ-ON-R at: [ 32.888810][ C2] __lock_acquire+0x797/0x1570 [ 32.888991][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.889169][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.889347][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.889523][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.889701][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.889880][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.890064][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.890276][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.890456][ C2] register_netdevice+0x1177/0x1690 [ 32.890636][ C2] register_netdev+0x20/0x40 [ 32.890813][ C2] sit_init_net+0x250/0x4f0 [ 32.890993][ C2] ops_init+0x9b/0x560 [ 32.891139][ C2] register_pernet_operations+0x2db/0x710 [ 32.891352][ C2] register_pernet_device+0x2a/0x60 [ 32.891533][ C2] sit_init+0x23/0xe0 [ 32.891677][ C2] do_one_initcall+0x8d/0x1e0 [ 32.891855][ C2] do_initcalls+0x1b2/0x3e0 [ 32.892031][ C2] kernel_init_freeable+0x232/0x310 [ 32.892213][ C2] kernel_init+0x20/0x200 [ 32.892397][ C2] ret_from_fork+0x31/0x70 [ 32.892574][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.892751][ C2] IN-SOFTIRQ-W at: [ 32.892860][ C2] __lock_acquire+0x797/0x1570 [ 32.893036][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.893213][ C2] _raw_write_lock+0x30/0x40 [ 32.893399][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.893579][ C2] call_timer_fn+0x13b/0x230 [ 32.893759][ C2] __run_timers+0x545/0x810 [ 32.893938][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.894119][ C2] __do_softirq+0x1f8/0x5df [ 32.894300][ C2] irq_exit_rcu+0x97/0xc0 [ 32.894480][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.894698][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.894913][ C2] default_idle+0xf/0x20 [ 32.895096][ C2] default_idle_call+0x6d/0xb0 [ 32.895277][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.895456][ C2] do_idle+0xf9/0x160 [ 32.895604][ C2] cpu_startup_entry+0x54/0x60 [ 32.895790][ C2] start_secondary+0x21c/0x2b0 [ 32.895973][ C2] common_startup_64+0x12c/0x138 [ 32.896152][ C2] INITIAL USE at: [ 32.896259][ C2] __lock_acquire+0x797/0x1570 [ 32.896441][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.896620][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.896799][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.896982][ C2] addrconf_notify+0x749/0xd60 [ 32.897161][ C2] notifier_call_chain+0xcd/0x150 [ 32.897341][ C2] __dev_notify_flags+0xe6/0x250 [ 32.897520][ C2] dev_change_flags+0xec/0x160 [ 32.897696][ C2] do_setlink+0x7d6/0x21e0 [ 32.897878][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.898061][ C2] rtnl_newlink+0x63/0xa0 [ 32.898241][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.898420][ C2] netlink_rcv_skb+0x130/0x360 [ 32.898600][ C2] netlink_unicast+0x449/0x710 [ 32.898780][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.898959][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.899138][ C2] ___sys_sendmsg+0xee/0x170 [ 32.899319][ C2] __sys_sendmsg+0xcd/0x170 [ 32.899498][ C2] do_syscall_64+0xc6/0x1e0 [ 32.899683][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.899898][ C2] INITIAL READ USE at: [ 32.900006][ C2] __lock_acquire+0x797/0x1570 [ 32.900188][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.900372][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.900553][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.900766][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.900947][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.901125][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.901338][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.901632][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.901808][ C2] register_netdevice+0x1177/0x1690 [ 32.902021][ C2] register_netdev+0x20/0x40 [ 32.902275][ C2] sit_init_net+0x250/0x4f0 [ 32.902452][ C2] ops_init+0x9b/0x560 [ 32.902629][ C2] register_pernet_operations+0x2db/0x710 [ 32.902922][ C2] register_pernet_device+0x2a/0x60 [ 32.903132][ C2] sit_init+0x23/0xe0 [ 32.903309][ C2] do_one_initcall+0x8d/0x1e0 [ 32.903637][ C2] do_initcalls+0x1b2/0x3e0 [ 32.903814][ C2] kernel_init_freeable+0x232/0x310 [ 32.904025][ C2] kernel_init+0x20/0x200 [ 32.904204][ C2] ret_from_fork+0x31/0x70 [ 32.904455][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.904639][ C2] } [ 32.904713][ C2] ... key at: [] __key.36+0x0/0x40 [ 32.904998][ C2] ... acquired at: [ 32.905104][ C2] mark_lock+0x28d/0x3e0 [ 32.905251][ C2] mark_usage+0xd9/0x2a0 [ 32.905398][ C2] __lock_acquire+0x797/0x1570 [ 32.905544][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.905767][ C2] _raw_write_lock+0x30/0x40 [ 32.905911][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.906053][ C2] call_timer_fn+0x13b/0x230 [ 32.906195][ C2] __run_timers+0x545/0x810 [ 32.906410][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.906554][ C2] __do_softirq+0x1f8/0x5df [ 32.906695][ C2] irq_exit_rcu+0x97/0xc0 [ 32.906842][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.907090][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.907266][ C2] default_idle+0xf/0x20 [ 32.907409][ C2] default_idle_call+0x6d/0xb0 [ 32.907552][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.907768][ C2] do_idle+0xf9/0x160 [ 32.907875][ C2] cpu_startup_entry+0x54/0x60 [ 32.908016][ C2] start_secondary+0x21c/0x2b0 [ 32.908158][ C2] common_startup_64+0x12c/0x138 [ 32.908302][ C2] [ 32.908448][ C2] [ 32.908448][ C2] stack backtrace: [ 32.908623][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.908836][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.909224][ C2] Call Trace: [ 32.909333][ C2] [ 32.909408][ C2] dump_stack_lvl+0x82/0xd0 [ 32.909560][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.909816][ C2] ? kernel_text_address+0x17/0xe0 [ 32.909959][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.910134][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.910274][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.910414][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.910558][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.910700][ C2] ? common_startup_64+0x12c/0x138 [ 32.910847][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.911064][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.911207][ C2] ? save_trace+0x8f/0x5b0 [ 32.911350][ C2] mark_lock+0x28d/0x3e0 [ 32.911459][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.911598][ C2] mark_usage+0xd9/0x2a0 [ 32.911787][ C2] __lock_acquire+0x797/0x1570 [ 32.911929][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.912072][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.912212][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.912426][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.912573][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.912716][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.912858][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.912998][ C2] ? lock_acquire+0x32/0xc0 [ 32.913211][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.913357][ C2] _raw_write_lock+0x30/0x40 [ 32.913502][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.913642][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.913857][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.914002][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.914144][ C2] ? call_timer_fn+0xe8/0x230 [ 32.914285][ C2] ? lock_acquire+0x32/0xc0 [ 32.914575][ C2] ? call_timer_fn+0xe8/0x230 [ 32.914721][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.914863][ C2] call_timer_fn+0x13b/0x230 [ 32.915005][ C2] ? call_timer_fn+0xe8/0x230 [ 32.915220][ C2] ? call_timer_fn+0xe8/0x230 [ 32.915363][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.915507][ C2] ? mark_lock+0x38/0x3e0 [ 32.915621][ C2] __run_timers+0x545/0x810 [ 32.915762][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.915979][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.916123][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.916263][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.916403][ C2] ? lock_acquire+0x32/0xc0 [ 32.916618][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 32.916759][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.916899][ C2] __do_softirq+0x1f8/0x5df [ 32.917041][ C2] irq_exit_rcu+0x97/0xc0 [ 32.917149][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.917365][ C2] [ 32.917440][ C2] [ 32.917514][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.917690][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.917840][ 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 c3 d1 2b 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 32.918426][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 32.918688][ C2] RAX: 00000000000e56f3 RBX: 1ffff9200002bfc1 RCX: ffffffff97ba48b5 [ 32.918900][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff954aa4a4 [ 32.919115][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f2709c [ 32.919402][ C2] R10: ffff88802f9384e3 R11: ffff88802f92d9b0 R12: 0000000000000000 [ 32.919617][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.919835][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.920053][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.920197][ C2] default_idle_call+0x6d/0xb0 [ 32.920340][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.920483][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.920703][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.920846][ C2] do_idle+0xf9/0x160 [ 32.920958][ C2] cpu_startup_entry+0x54/0x60 [ 32.921101][ C2] start_secondary+0x21c/0x2b0 [ 32.921243][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.921458][ C2] common_startup_64+0x12c/0x138 [ 32.921604][ C2]