[ 88.877881][ C2] [ 88.878008][ C2] ======================================================== [ 88.878213][ C2] WARNING: possible irq lock inversion dependency detected [ 88.878408][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 88.878537][ C2] -------------------------------------------------------- [ 88.878728][ C2] swapper/2/0 just changed the state of lock: [ 88.878896][ C2] ffff888008a8a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 88.879138][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 88.879331][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 88.879335][ C2] [ 88.879335][ C2] [ 88.879335][ C2] and interrupts could create inverse lock ordering between them. [ 88.879335][ C2] [ 88.879808][ C2] [ 88.879808][ C2] other info that might help us debug this: [ 88.879998][ C2] Possible interrupt unsafe locking scenario: [ 88.879998][ C2] [ 88.880199][ C2] CPU0 CPU1 [ 88.880333][ C2] ---- ---- [ 88.880465][ C2] lock(&p->alloc_lock); [ 88.880565][ C2] local_irq_disable(); [ 88.880725][ C2] lock(&ndev->lock); [ 88.880890][ C2] lock(&p->alloc_lock); [ 88.881050][ C2] [ 88.881146][ C2] lock(&ndev->lock); [ 88.881247][ C2] [ 88.881247][ C2] *** DEADLOCK *** [ 88.881247][ C2] [ 88.881435][ C2] 1 lock held by swapper/2/0: [ 88.881564][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 88.881802][ C2] [ 88.881802][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 88.882023][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 88.882160][ C2] HARDIRQ-ON-W at: [ 88.882260][ C2] __lock_acquire+0x797/0x1570 [ 88.882435][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.882601][ C2] _raw_spin_lock+0x30/0x40 [ 88.882772][ C2] set_mems_allowed+0x1d/0x210 [ 88.882940][ C2] kernel_init_freeable+0x72/0x310 [ 88.883110][ C2] kernel_init+0x20/0x200 [ 88.883276][ C2] ret_from_fork+0x31/0x70 [ 88.883447][ C2] ret_from_fork_asm+0x1a/0x30 [ 88.883614][ C2] SOFTIRQ-ON-W at: [ 88.883717][ C2] __lock_acquire+0x797/0x1570 [ 88.883882][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.884051][ C2] _raw_spin_lock+0x30/0x40 [ 88.884218][ C2] set_mems_allowed+0x1d/0x210 [ 88.884382][ C2] kernel_init_freeable+0x72/0x310 [ 88.884545][ C2] kernel_init+0x20/0x200 [ 88.884716][ C2] ret_from_fork+0x31/0x70 [ 88.884883][ C2] ret_from_fork_asm+0x1a/0x30 [ 88.885048][ C2] INITIAL USE at: [ 88.885149][ C2] __lock_acquire+0x797/0x1570 [ 88.885314][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.885479][ C2] _raw_spin_lock+0x30/0x40 [ 88.885644][ C2] set_mems_allowed+0x1d/0x210 [ 88.885812][ C2] kernel_init_freeable+0x72/0x310 [ 88.885974][ C2] kernel_init+0x20/0x200 [ 88.886138][ C2] ret_from_fork+0x31/0x70 [ 88.886303][ C2] ret_from_fork_asm+0x1a/0x30 [ 88.886465][ C2] } [ 88.886535][ C2] ... key at: [] __key.388+0x0/0x40 [ 88.886732][ C2] ... acquired at: [ 88.886832][ C2] __lock_acquire+0xaf0/0x1570 [ 88.886966][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.887096][ C2] _raw_spin_lock+0x30/0x40 [ 88.887227][ C2] __get_task_comm+0x27/0x70 [ 88.887363][ C2] ref_tracker_alloc+0x2ee/0x490 [ 88.887496][ C2] netdev_get_by_index+0x5e/0x80 [ 88.887636][ C2] fib6_nh_init+0x3d8/0x1580 [ 88.887770][ C2] ip6_route_info_create+0xf18/0x17d0 [ 88.887903][ C2] addrconf_f6i_alloc+0x315/0x560 [ 88.888034][ C2] addrconf_permanent_addr+0x1ed/0x670 [ 88.888166][ C2] addrconf_notify+0x749/0xd60 [ 88.888297][ C2] notifier_call_chain+0xcd/0x150 [ 88.888429][ C2] __dev_notify_flags+0xe6/0x250 [ 88.888564][ C2] dev_change_flags+0xec/0x160 [ 88.888695][ C2] do_setlink+0x7d6/0x21e0 [ 88.888829][ C2] __rtnl_newlink+0xaa7/0xd80 [ 88.888960][ C2] rtnl_newlink+0x63/0xa0 [ 88.889091][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 88.889221][ C2] netlink_rcv_skb+0x130/0x360 [ 88.889353][ C2] netlink_unicast+0x449/0x710 [ 88.889484][ C2] netlink_sendmsg+0x723/0xbe0 [ 88.889613][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 88.889746][ C2] ___sys_sendmsg+0xee/0x170 [ 88.889877][ C2] __sys_sendmsg+0xcd/0x170 [ 88.890010][ C2] do_syscall_64+0xc6/0x1e0 [ 88.890140][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 88.890305][ C2] [ 88.890372][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 88.890508][ C2] HARDIRQ-ON-W at: [ 88.890609][ C2] __lock_acquire+0x797/0x1570 [ 88.890775][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.890939][ C2] _raw_write_lock_bh+0x38/0x50 [ 88.891108][ C2] addrconf_permanent_addr+0x6e/0x670 [ 88.891274][ C2] addrconf_notify+0x749/0xd60 [ 88.891441][ C2] notifier_call_chain+0xcd/0x150 [ 88.891608][ C2] __dev_notify_flags+0xe6/0x250 [ 88.891770][ C2] dev_change_flags+0xec/0x160 [ 88.891933][ C2] do_setlink+0x7d6/0x21e0 [ 88.892097][ C2] __rtnl_newlink+0xaa7/0xd80 [ 88.892258][ C2] rtnl_newlink+0x63/0xa0 [ 88.892421][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 88.892585][ C2] netlink_rcv_skb+0x130/0x360 [ 88.892746][ C2] netlink_unicast+0x449/0x710 [ 88.892908][ C2] netlink_sendmsg+0x723/0xbe0 [ 88.893071][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 88.893238][ C2] ___sys_sendmsg+0xee/0x170 [ 88.893399][ C2] __sys_sendmsg+0xcd/0x170 [ 88.893564][ C2] do_syscall_64+0xc6/0x1e0 [ 88.893725][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 88.893917][ C2] HARDIRQ-ON-R at: [ 88.894017][ C2] __lock_acquire+0x797/0x1570 [ 88.894181][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.894346][ C2] _raw_read_lock_bh+0x44/0x80 [ 88.894510][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 88.894675][ C2] inet6_fill_link_af+0x5e/0xe0 [ 88.894839][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 88.895000][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 88.895161][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 88.895360][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 88.895521][ C2] register_netdevice+0x1177/0x1690 [ 88.895686][ C2] register_netdev+0x20/0x40 [ 88.895850][ C2] vti6_init_net+0x25d/0x380 [ 88.896013][ C2] ops_init+0x9b/0x560 [ 88.896143][ C2] register_pernet_operations+0x2db/0x710 [ 88.896338][ C2] register_pernet_device+0x2a/0x60 [ 88.896582][ C2] vti6_tunnel_init+0x18/0x110 [ 88.896746][ C2] do_one_initcall+0x8d/0x1e0 [ 88.896909][ C2] do_initcalls+0x1b2/0x3e0 [ 88.897146][ C2] kernel_init_freeable+0x232/0x310 [ 88.897307][ C2] kernel_init+0x20/0x200 [ 88.897472][ C2] ret_from_fork+0x31/0x70 [ 88.897720][ C2] ret_from_fork_asm+0x1a/0x30 [ 88.897881][ C2] IN-SOFTIRQ-W at: [ 88.897978][ C2] __lock_acquire+0x797/0x1570 [ 88.898140][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.898379][ C2] _raw_write_lock+0x30/0x40 [ 88.898543][ C2] addrconf_rs_timer+0xa9/0x730 [ 88.898705][ C2] call_timer_fn+0x13b/0x230 [ 88.898868][ C2] __run_timers+0x545/0x810 [ 88.899105][ C2] run_timer_softirq+0xe8/0x1b0 [ 88.899267][ C2] __do_softirq+0x1f8/0x5df [ 88.899431][ C2] irq_exit_rcu+0x97/0xc0 [ 88.899671][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 88.899866][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 88.900068][ C2] default_idle+0xf/0x20 [ 88.900383][ C2] default_idle_call+0x6d/0xb0 [ 88.900545][ C2] cpuidle_idle_call+0x1f4/0x280 [ 88.900707][ C2] do_idle+0xf9/0x160 [ 88.900837][ C2] cpu_startup_entry+0x54/0x60 [ 88.901075][ C2] start_secondary+0x21c/0x2b0 [ 88.901249][ C2] common_startup_64+0x12c/0x138 [ 88.901411][ C2] INITIAL USE at: [ 88.901584][ C2] __lock_acquire+0x797/0x1570 [ 88.901753][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.901914][ C2] _raw_write_lock_bh+0x38/0x50 [ 88.902076][ C2] addrconf_permanent_addr+0x6e/0x670 [ 88.902315][ C2] addrconf_notify+0x749/0xd60 [ 88.902480][ C2] notifier_call_chain+0xcd/0x150 [ 88.902642][ C2] __dev_notify_flags+0xe6/0x250 [ 88.902885][ C2] dev_change_flags+0xec/0x160 [ 88.903045][ C2] do_setlink+0x7d6/0x21e0 [ 88.903210][ C2] __rtnl_newlink+0xaa7/0xd80 [ 88.903371][ C2] rtnl_newlink+0x63/0xa0 [ 88.903536][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 88.903697][ C2] netlink_rcv_skb+0x130/0x360 [ 88.903859][ C2] netlink_unicast+0x449/0x710 [ 88.904099][ C2] netlink_sendmsg+0x723/0xbe0 [ 88.904260][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 88.904421][ C2] ___sys_sendmsg+0xee/0x170 [ 88.904661][ C2] __sys_sendmsg+0xcd/0x170 [ 88.904824][ C2] do_syscall_64+0xc6/0x1e0 [ 88.904987][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 88.905179][ C2] INITIAL READ USE at: [ 88.905350][ C2] __lock_acquire+0x797/0x1570 [ 88.905512][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.905674][ C2] _raw_read_lock_bh+0x44/0x80 [ 88.905920][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 88.906113][ C2] inet6_fill_link_af+0x5e/0xe0 [ 88.906275][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 88.906437][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 88.906706][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 88.906901][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 88.907066][ C2] register_netdevice+0x1177/0x1690 [ 88.907333][ C2] register_netdev+0x20/0x40 [ 88.907495][ C2] vti6_init_net+0x25d/0x380 [ 88.907666][ C2] ops_init+0x9b/0x560 [ 88.907903][ C2] register_pernet_operations+0x2db/0x710 [ 88.908097][ C2] register_pernet_device+0x2a/0x60 [ 88.908295][ C2] vti6_tunnel_init+0x18/0x110 [ 88.908457][ C2] do_one_initcall+0x8d/0x1e0 [ 88.908622][ C2] do_initcalls+0x1b2/0x3e0 [ 88.908784][ C2] kernel_init_freeable+0x232/0x310 [ 88.909054][ C2] kernel_init+0x20/0x200 [ 88.909216][ C2] ret_from_fork+0x31/0x70 [ 88.909381][ C2] ret_from_fork_asm+0x1a/0x30 [ 88.909621][ C2] } [ 88.909687][ C2] ... key at: [] __key.37+0x0/0x40 [ 88.909880][ C2] ... acquired at: [ 88.909975][ C2] mark_lock+0x28d/0x3e0 [ 88.910105][ C2] mark_usage+0xd9/0x2a0 [ 88.910381][ C2] __lock_acquire+0x797/0x1570 [ 88.910513][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.910643][ C2] _raw_write_lock+0x30/0x40 [ 88.910771][ C2] addrconf_rs_timer+0xa9/0x730 [ 88.910973][ C2] call_timer_fn+0x13b/0x230 [ 88.911104][ C2] __run_timers+0x545/0x810 [ 88.911233][ C2] run_timer_softirq+0xe8/0x1b0 [ 88.911363][ C2] __do_softirq+0x1f8/0x5df [ 88.911565][ C2] irq_exit_rcu+0x97/0xc0 [ 88.911694][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 88.911854][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 88.912017][ C2] default_idle+0xf/0x20 [ 88.912219][ C2] default_idle_call+0x6d/0xb0 [ 88.912350][ C2] cpuidle_idle_call+0x1f4/0x280 [ 88.912479][ C2] do_idle+0xf9/0x160 [ 88.912576][ C2] cpu_startup_entry+0x54/0x60 [ 88.912705][ C2] start_secondary+0x21c/0x2b0 [ 88.912910][ C2] common_startup_64+0x12c/0x138 [ 88.913039][ C2] [ 88.913106][ C2] [ 88.913106][ C2] stack backtrace: [ 88.913267][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 88.913462][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 88.913745][ C2] Call Trace: [ 88.913853][ C2] [ 88.913996][ C2] dump_stack_lvl+0x82/0xd0 [ 88.914133][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 88.914296][ C2] ? kernel_text_address+0x17/0xe0 [ 88.914428][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 88.914664][ C2] ? __pfx_usage_skip+0x10/0x10 [ 88.914793][ C2] ? __pfx_usage_match+0x10/0x10 [ 88.914921][ C2] ? arch_stack_walk+0x8c/0xf0 [ 88.915054][ C2] mark_lock_irq+0x4cd/0xa10 [ 88.915258][ C2] ? common_startup_64+0x12c/0x138 [ 88.915387][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 88.915518][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 88.915650][ C2] ? save_trace+0x8f/0x5b0 [ 88.915780][ C2] mark_lock+0x28d/0x3e0 [ 88.915961][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 88.916089][ C2] mark_usage+0xd9/0x2a0 [ 88.916186][ C2] __lock_acquire+0x797/0x1570 [ 88.916317][ C2] ? __pfx_validate_chain+0x10/0x10 [ 88.916447][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 88.916576][ C2] lock_acquire.part.0+0xeb/0x330 [ 88.916705][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 88.916836][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 88.916966][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 88.917094][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 88.917222][ C2] ? lock_acquire+0x32/0xc0 [ 88.917350][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 88.917478][ C2] _raw_write_lock+0x30/0x40 [ 88.917693][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 88.917822][ C2] addrconf_rs_timer+0xa9/0x730 [ 88.917950][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 88.918079][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 88.918280][ C2] ? call_timer_fn+0xe8/0x230 [ 88.918409][ C2] ? lock_acquire+0x32/0xc0 [ 88.918540][ C2] ? call_timer_fn+0xe8/0x230 [ 88.918668][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 88.918872][ C2] call_timer_fn+0x13b/0x230 [ 88.919003][ C2] ? call_timer_fn+0xe8/0x230 [ 88.919131][ C2] ? call_timer_fn+0xe8/0x230 [ 88.919259][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 88.919390][ C2] ? mark_lock+0x38/0x3e0 [ 88.919491][ C2] __run_timers+0x545/0x810 [ 88.919620][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 88.919749][ C2] ? __pfx___run_timers+0x10/0x10 [ 88.919879][ C2] ? do_raw_spin_lock+0x131/0x270 [ 88.920158][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 88.920286][ C2] ? lock_acquire+0x32/0xc0 [ 88.920416][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 88.920545][ C2] run_timer_softirq+0xe8/0x1b0 [ 88.920747][ C2] __do_softirq+0x1f8/0x5df [ 88.920878][ C2] irq_exit_rcu+0x97/0xc0 [ 88.920975][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 88.921103][ C2] [ 88.921171][ C2] [ 88.921238][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 88.921473][ C2] RIP: 0010:default_idle+0xf/0x20 [ 88.921606][ 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 d3 fb 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 [ 88.922146][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 88.922315][ C2] RAX: 00000000002d574d RBX: 1ffff9200002bfc1 RCX: ffffffffb0131ea5 [ 88.922509][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffad8ac1d4 [ 88.922777][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 88.922968][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 88.923163][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 88.923432][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 88.923563][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 88.923692][ C2] default_idle_call+0x6d/0xb0 [ 88.923895][ C2] cpuidle_idle_call+0x1f4/0x280 [ 88.924023][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 88.924154][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 88.924284][ C2] do_idle+0xf9/0x160 [ 88.924382][ C2] cpu_startup_entry+0x54/0x60 [ 88.924509][ C2] start_secondary+0x21c/0x2b0 [ 88.924640][ C2] ? __pfx_start_secondary+0x10/0x10 [ 88.924770][ C2] common_startup_64+0x12c/0x138 [ 88.924903][ C2]