[ 31.772470][ T291] ip (291) used greatest stack depth: 22992 bytes left [ 32.615774][ C2] [ 32.615878][ C2] ======================================================== [ 32.616080][ C2] WARNING: possible irq lock inversion dependency detected [ 32.616283][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 32.616422][ C2] -------------------------------------------------------- [ 32.616629][ C2] swapper/2/0 just changed the state of lock: [ 32.616813][ C2] ffff88801d250d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.617061][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.617257][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 32.617261][ C2] [ 32.617261][ C2] [ 32.617261][ C2] and interrupts could create inverse lock ordering between them. [ 32.617261][ C2] [ 32.617744][ C2] [ 32.617744][ C2] other info that might help us debug this: [ 32.617941][ C2] Possible interrupt unsafe locking scenario: [ 32.617941][ C2] [ 32.618142][ C2] CPU0 CPU1 [ 32.618276][ C2] ---- ---- [ 32.618409][ C2] lock(&p->alloc_lock); [ 32.618514][ C2] local_irq_disable(); [ 32.618683][ C2] lock(&ndev->lock); [ 32.618855][ C2] lock(&p->alloc_lock); [ 32.619024][ C2] [ 32.619124][ C2] lock(&ndev->lock); [ 32.619227][ C2] [ 32.619227][ C2] *** DEADLOCK *** [ 32.619227][ C2] [ 32.619421][ C2] 1 lock held by swapper/2/0: [ 32.619556][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.619804][ C2] [ 32.619804][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 32.620035][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.620176][ C2] HARDIRQ-ON-W at: [ 32.620280][ C2] __lock_acquire+0x797/0x1570 [ 32.620463][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.620635][ C2] _raw_spin_lock+0x30/0x40 [ 32.620812][ C2] set_mems_allowed+0x1d/0x210 [ 32.620982][ C2] kernel_init_freeable+0x72/0x310 [ 32.621155][ C2] kernel_init+0x20/0x200 [ 32.621327][ C2] ret_from_fork+0x31/0x70 [ 32.621502][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.621672][ C2] SOFTIRQ-ON-W at: [ 32.621774][ C2] __lock_acquire+0x797/0x1570 [ 32.621946][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.622115][ C2] _raw_spin_lock+0x30/0x40 [ 32.622285][ C2] set_mems_allowed+0x1d/0x210 [ 32.622455][ C2] kernel_init_freeable+0x72/0x310 [ 32.622625][ C2] kernel_init+0x20/0x200 [ 32.622793][ C2] ret_from_fork+0x31/0x70 [ 32.622964][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.623135][ C2] INITIAL USE at: [ 32.623236][ C2] __lock_acquire+0x797/0x1570 [ 32.623404][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.623574][ C2] _raw_spin_lock+0x30/0x40 [ 32.623741][ C2] set_mems_allowed+0x1d/0x210 [ 32.623910][ C2] kernel_init_freeable+0x72/0x310 [ 32.624079][ C2] kernel_init+0x20/0x200 [ 32.624251][ C2] ret_from_fork+0x31/0x70 [ 32.624425][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.624593][ C2] } [ 32.624664][ C2] ... key at: [] __key.387+0x0/0x40 [ 32.624866][ C2] ... acquired at: [ 32.624973][ C2] __lock_acquire+0xaf0/0x1570 [ 32.625110][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.625246][ C2] _raw_spin_lock+0x30/0x40 [ 32.625382][ C2] __get_task_comm+0x27/0x70 [ 32.625520][ C2] ref_tracker_alloc+0x2ee/0x490 [ 32.625658][ C2] netdev_get_by_index+0x5e/0x80 [ 32.625796][ C2] fib6_nh_init+0x3d8/0x15b0 [ 32.625933][ C2] ip6_route_info_create+0xf18/0x17d0 [ 32.626073][ C2] ip6_route_add+0x1c/0x140 [ 32.626210][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 32.626349][ C2] addrconf_permanent_addr+0x32f/0x670 [ 32.626486][ C2] addrconf_notify+0x749/0xd60 [ 32.626622][ C2] notifier_call_chain+0xcd/0x150 [ 32.626763][ C2] __dev_notify_flags+0xe6/0x250 [ 32.626901][ C2] dev_change_flags+0xec/0x160 [ 32.627035][ C2] do_setlink+0x7d6/0x21e0 [ 32.627175][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.627312][ C2] rtnl_newlink+0x63/0xa0 [ 32.627448][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.627582][ C2] netlink_rcv_skb+0x130/0x360 [ 32.627719][ C2] netlink_unicast+0x449/0x710 [ 32.627854][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.627988][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.628124][ C2] ___sys_sendmsg+0xee/0x170 [ 32.628261][ C2] __sys_sendmsg+0xcd/0x170 [ 32.628397][ C2] do_syscall_64+0xc6/0x1e0 [ 32.628536][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.628709][ C2] [ 32.628778][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 32.628919][ C2] HARDIRQ-ON-W at: [ 32.629021][ C2] __lock_acquire+0x797/0x1570 [ 32.629192][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.629361][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.629534][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.629701][ C2] addrconf_notify+0x749/0xd60 [ 32.629870][ C2] notifier_call_chain+0xcd/0x150 [ 32.630038][ C2] __dev_notify_flags+0xe6/0x250 [ 32.630205][ C2] dev_change_flags+0xec/0x160 [ 32.630374][ C2] do_setlink+0x7d6/0x21e0 [ 32.630548][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.630717][ C2] rtnl_newlink+0x63/0xa0 [ 32.630888][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.631058][ C2] netlink_rcv_skb+0x130/0x360 [ 32.631230][ C2] netlink_unicast+0x449/0x710 [ 32.631401][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.631570][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.631751][ C2] ___sys_sendmsg+0xee/0x170 [ 32.631921][ C2] __sys_sendmsg+0xcd/0x170 [ 32.632090][ C2] do_syscall_64+0xc6/0x1e0 [ 32.632260][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.632465][ C2] HARDIRQ-ON-R at: [ 32.632567][ C2] __lock_acquire+0x797/0x1570 [ 32.632739][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.632911][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.633080][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.633250][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.633418][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.633588][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.633761][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.633964][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.634134][ C2] register_netdevice+0x1177/0x1690 [ 32.634305][ C2] register_netdev+0x20/0x40 [ 32.634476][ C2] sit_init_net+0x250/0x4f0 [ 32.634648][ C2] ops_init+0x9b/0x560 [ 32.634787][ C2] register_pernet_operations+0x2db/0x710 [ 32.634992][ C2] register_pernet_device+0x2a/0x60 [ 32.635162][ C2] sit_init+0x23/0xe0 [ 32.635302][ C2] do_one_initcall+0x8d/0x1e0 [ 32.635472][ C2] do_initcalls+0x1b2/0x3e0 [ 32.635641][ C2] kernel_init_freeable+0x232/0x310 [ 32.635811][ C2] kernel_init+0x20/0x200 [ 32.635983][ C2] ret_from_fork+0x31/0x70 [ 32.636154][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.636325][ C2] IN-SOFTIRQ-W at: [ 32.636429][ C2] __lock_acquire+0x797/0x1570 [ 32.636600][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.636775][ C2] _raw_write_lock+0x30/0x40 [ 32.636951][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.637124][ C2] call_timer_fn+0x13b/0x230 [ 32.637294][ C2] __run_timers+0x545/0x810 [ 32.637463][ C2] timer_expire_remote+0x9b/0xe0 [ 32.637635][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.637806][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.637977][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.638151][ C2] __do_softirq+0x1f8/0x5df [ 32.638319][ C2] irq_exit_rcu+0x97/0xc0 [ 32.638489][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.638694][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.638899][ C2] default_idle+0xf/0x20 [ 32.639067][ C2] default_idle_call+0x6d/0xb0 [ 32.639238][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.639411][ C2] do_idle+0xf9/0x160 [ 32.639547][ C2] cpu_startup_entry+0x54/0x60 [ 32.639715][ C2] start_secondary+0x21c/0x2b0 [ 32.639885][ C2] common_startup_64+0x12c/0x138 [ 32.640054][ C2] INITIAL USE at: [ 32.640155][ C2] __lock_acquire+0x797/0x1570 [ 32.640326][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.640497][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.640665][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.640834][ C2] addrconf_notify+0x749/0xd60 [ 32.641003][ C2] notifier_call_chain+0xcd/0x150 [ 32.641252][ C2] __dev_notify_flags+0xe6/0x250 [ 32.641424][ C2] dev_change_flags+0xec/0x160 [ 32.641593][ C2] do_setlink+0x7d6/0x21e0 [ 32.641848][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.642016][ C2] rtnl_newlink+0x63/0xa0 [ 32.642185][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.642354][ C2] netlink_rcv_skb+0x130/0x360 [ 32.642521][ C2] netlink_unicast+0x449/0x710 [ 32.642693][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.642864][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.643115][ C2] ___sys_sendmsg+0xee/0x170 [ 32.643285][ C2] __sys_sendmsg+0xcd/0x170 [ 32.643456][ C2] do_syscall_64+0xc6/0x1e0 [ 32.643707][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.643910][ C2] INITIAL READ USE at: [ 32.644015][ C2] __lock_acquire+0x797/0x1570 [ 32.644185][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.644437][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.644608][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.644809][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.645056][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.645227][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.645429][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.645712][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.645880][ C2] register_netdevice+0x1177/0x1690 [ 32.646080][ C2] register_netdev+0x20/0x40 [ 32.646329][ C2] sit_init_net+0x250/0x4f0 [ 32.646498][ C2] ops_init+0x9b/0x560 [ 32.646666][ C2] register_pernet_operations+0x2db/0x710 [ 32.646953][ C2] register_pernet_device+0x2a/0x60 [ 32.647156][ C2] sit_init+0x23/0xe0 [ 32.647327][ C2] do_one_initcall+0x8d/0x1e0 [ 32.647497][ C2] do_initcalls+0x1b2/0x3e0 [ 32.647746][ C2] kernel_init_freeable+0x232/0x310 [ 32.647948][ C2] kernel_init+0x20/0x200 [ 32.648114][ C2] ret_from_fork+0x31/0x70 [ 32.648364][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.648532][ C2] } [ 32.648601][ C2] ... key at: [] __key.36+0x0/0x40 [ 32.648805][ C2] ... acquired at: [ 32.649058][ C2] mark_lock+0x28d/0x3e0 [ 32.649195][ C2] mark_usage+0xd9/0x2a0 [ 32.649329][ C2] __lock_acquire+0x797/0x1570 [ 32.649462][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.649678][ C2] _raw_write_lock+0x30/0x40 [ 32.649812][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.649946][ C2] call_timer_fn+0x13b/0x230 [ 32.650078][ C2] __run_timers+0x545/0x810 [ 32.650295][ C2] timer_expire_remote+0x9b/0xe0 [ 32.650430][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.650563][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.650697][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.650831][ C2] __do_softirq+0x1f8/0x5df [ 32.651042][ C2] irq_exit_rcu+0x97/0xc0 [ 32.651176][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.651346][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.651591][ C2] default_idle+0xf/0x20 [ 32.651727][ C2] default_idle_call+0x6d/0xb0 [ 32.651861][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.651997][ C2] do_idle+0xf9/0x160 [ 32.652099][ C2] cpu_startup_entry+0x54/0x60 [ 32.652313][ C2] start_secondary+0x21c/0x2b0 [ 32.652448][ C2] common_startup_64+0x12c/0x138 [ 32.652583][ C2] [ 32.652652][ C2] [ 32.652652][ C2] stack backtrace: [ 32.652895][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.653098][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.653392][ C2] Call Trace: [ 32.653580][ C2] [ 32.653652][ C2] dump_stack_lvl+0x82/0xd0 [ 32.653794][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.653965][ C2] ? kernel_text_address+0x17/0xe0 [ 32.654103][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.654348][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.654482][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.654616][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.654752][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.654967][ C2] ? common_startup_64+0x12c/0x138 [ 32.655103][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.655242][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.655381][ C2] ? save_trace+0x8f/0x5b0 [ 32.655597][ C2] mark_lock+0x28d/0x3e0 [ 32.655700][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.655835][ C2] mark_usage+0xd9/0x2a0 [ 32.655937][ C2] __lock_acquire+0x797/0x1570 [ 32.656073][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.656287][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.656423][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.656560][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.656695][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.656911][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.657045][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.657180][ C2] ? lock_acquire+0x32/0xc0 [ 32.657314][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.657529][ C2] _raw_write_lock+0x30/0x40 [ 32.657666][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.657798][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.657930][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.658144][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.658279][ C2] ? call_timer_fn+0xe8/0x230 [ 32.658411][ C2] ? lock_acquire+0x32/0xc0 [ 32.658545][ C2] ? call_timer_fn+0xe8/0x230 [ 32.658679][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.658895][ C2] call_timer_fn+0x13b/0x230 [ 32.659027][ C2] ? call_timer_fn+0xe8/0x230 [ 32.659159][ C2] ? call_timer_fn+0xe8/0x230 [ 32.659293][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.659503][ C2] ? mark_lock+0x38/0x3e0 [ 32.659607][ C2] __run_timers+0x545/0x810 [ 32.659739][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.659874][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.660085][ C2] ? __lock_release+0x103/0x460 [ 32.660222][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.660355][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.660487][ C2] ? lock_acquire+0x32/0xc0 [ 32.660621][ C2] ? timer_expire_remote+0x93/0xe0 [ 32.660838][ C2] timer_expire_remote+0x9b/0xe0 [ 32.660972][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.661106][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 32.661273][ C2] ? timerqueue_del+0x68/0x120 [ 32.661411][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.661545][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.661679][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.661811][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 32.662022][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.662157][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 32.662323][ C2] __do_softirq+0x1f8/0x5df [ 32.662462][ C2] irq_exit_rcu+0x97/0xc0 [ 32.662642][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.662776][ C2] [ 32.662847][ C2] [ 32.662915][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.663082][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.663308][ 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.663785][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 32.664037][ C2] RAX: 00000000000e8795 RBX: 1ffff9200002bfc1 RCX: ffffffff957a48b5 [ 32.664241][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff930aa4a4 [ 32.664442][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 32.664724][ C2] R10: ffff8880361384e3 R11: 1ffff110003a928c R12: 0000000000000000 [ 32.664926][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.665129][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.665342][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.665479][ C2] default_idle_call+0x6d/0xb0 [ 32.665612][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.665745][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.665965][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.666101][ C2] do_idle+0xf9/0x160 [ 32.666205][ C2] cpu_startup_entry+0x54/0x60 [ 32.666340][ C2] start_secondary+0x21c/0x2b0 [ 32.666551][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.666688][ C2] common_startup_64+0x12c/0x138 [ 32.666830][ C2]