[ 25.229352][ T262] veth0: renamed from veth-rt-1 [ 26.474359][ T270] veth0: renamed from veth-rt-2 [ 35.142961][ C3] [ 35.143061][ C3] ======================================================== [ 35.143268][ C3] WARNING: possible irq lock inversion dependency detected [ 35.143467][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 35.143601][ C3] -------------------------------------------------------- [ 35.143793][ C3] swapper/3/0 just changed the state of lock: [ 35.143958][ C3] ffff888004e33d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.144204][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.144401][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 35.144405][ C3] [ 35.144405][ C3] [ 35.144405][ C3] and interrupts could create inverse lock ordering between them. [ 35.144405][ C3] [ 35.144878][ C3] [ 35.144878][ C3] other info that might help us debug this: [ 35.145066][ C3] Possible interrupt unsafe locking scenario: [ 35.145066][ C3] [ 35.145263][ C3] CPU0 CPU1 [ 35.145393][ C3] ---- ---- [ 35.145526][ C3] lock(&p->alloc_lock); [ 35.145627][ C3] local_irq_disable(); [ 35.145791][ C3] lock(&ndev->lock); [ 35.145954][ C3] lock(&p->alloc_lock); [ 35.146115][ C3] [ 35.146217][ C3] lock(&ndev->lock); [ 35.146317][ C3] [ 35.146317][ C3] *** DEADLOCK *** [ 35.146317][ C3] [ 35.146508][ C3] 1 lock held by swapper/3/0: [ 35.146639][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.146877][ C3] [ 35.146877][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 35.147100][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.147239][ C3] HARDIRQ-ON-W at: [ 35.147340][ C3] __lock_acquire+0x797/0x1570 [ 35.147514][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.147679][ C3] _raw_spin_lock+0x30/0x40 [ 35.147847][ C3] set_mems_allowed+0x1d/0x210 [ 35.148013][ C3] kernel_init_freeable+0x72/0x310 [ 35.148183][ C3] kernel_init+0x20/0x200 [ 35.148351][ C3] ret_from_fork+0x31/0x70 [ 35.148518][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.148684][ C3] SOFTIRQ-ON-W at: [ 35.148783][ C3] __lock_acquire+0x797/0x1570 [ 35.148948][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.149116][ C3] _raw_spin_lock+0x30/0x40 [ 35.149283][ C3] set_mems_allowed+0x1d/0x210 [ 35.149447][ C3] kernel_init_freeable+0x72/0x310 [ 35.149612][ C3] kernel_init+0x20/0x200 [ 35.149778][ C3] ret_from_fork+0x31/0x70 [ 35.149954][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.150119][ C3] INITIAL USE at: [ 35.150220][ C3] __lock_acquire+0x797/0x1570 [ 35.150389][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.150555][ C3] _raw_spin_lock+0x30/0x40 [ 35.150718][ C3] set_mems_allowed+0x1d/0x210 [ 35.150884][ C3] kernel_init_freeable+0x72/0x310 [ 35.151127][ C3] kernel_init+0x20/0x200 [ 35.151294][ C3] ret_from_fork+0x31/0x70 [ 35.151458][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.151697][ C3] } [ 35.151765][ C3] ... key at: [] __key.388+0x0/0x40 [ 35.151962][ C3] ... acquired at: [ 35.152060][ C3] __lock_acquire+0xaf0/0x1570 [ 35.152340][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.152474][ C3] _raw_spin_lock+0x30/0x40 [ 35.152604][ C3] __get_task_comm+0x27/0x70 [ 35.152745][ C3] ref_tracker_alloc+0x2ee/0x490 [ 35.152878][ C3] netdev_get_by_index+0x5e/0x80 [ 35.153086][ C3] fib6_nh_init+0x3d8/0x1580 [ 35.153220][ C3] ip6_route_info_create+0xf18/0x17d0 [ 35.153351][ C3] ip6_route_add+0x1c/0x140 [ 35.153481][ C3] addrconf_prefix_route+0x2a6/0x430 [ 35.153691][ C3] addrconf_permanent_addr+0x32f/0x670 [ 35.153823][ C3] addrconf_notify+0x749/0xd60 [ 35.153955][ C3] notifier_call_chain+0xcd/0x150 [ 35.154086][ C3] __dev_notify_flags+0xe6/0x250 [ 35.154291][ C3] dev_change_flags+0xec/0x160 [ 35.154427][ C3] do_setlink+0x7d6/0x21e0 [ 35.154559][ C3] __rtnl_newlink+0xaa7/0xd80 [ 35.154690][ C3] rtnl_newlink+0x63/0xa0 [ 35.154899][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.155032][ C3] netlink_rcv_skb+0x130/0x360 [ 35.155165][ C3] netlink_unicast+0x449/0x710 [ 35.155296][ C3] netlink_sendmsg+0x723/0xbe0 [ 35.155428][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 35.155559][ C3] ___sys_sendmsg+0xee/0x170 [ 35.155689][ C3] __sys_sendmsg+0xcd/0x170 [ 35.155819][ C3] do_syscall_64+0xc6/0x1e0 [ 35.155950][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.156191][ C3] [ 35.156258][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 35.156394][ C3] HARDIRQ-ON-W at: [ 35.156493][ C3] __lock_acquire+0x797/0x1570 [ 35.156735][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.156900][ C3] _raw_write_lock_bh+0x38/0x50 [ 35.157063][ C3] addrconf_permanent_addr+0x6e/0x670 [ 35.157229][ C3] addrconf_notify+0x749/0xd60 [ 35.157474][ C3] notifier_call_chain+0xcd/0x150 [ 35.157637][ C3] __dev_notify_flags+0xe6/0x250 [ 35.157801][ C3] dev_change_flags+0xec/0x160 [ 35.158041][ C3] do_setlink+0x7d6/0x21e0 [ 35.158206][ C3] __rtnl_newlink+0xaa7/0xd80 [ 35.158368][ C3] rtnl_newlink+0x63/0xa0 [ 35.158533][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.158773][ C3] netlink_rcv_skb+0x130/0x360 [ 35.158937][ C3] netlink_unicast+0x449/0x710 [ 35.159100][ C3] netlink_sendmsg+0x723/0xbe0 [ 35.159342][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 35.159506][ C3] ___sys_sendmsg+0xee/0x170 [ 35.159671][ C3] __sys_sendmsg+0xcd/0x170 [ 35.159944][ C3] do_syscall_64+0xc6/0x1e0 [ 35.160107][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.160302][ C3] HARDIRQ-ON-R at: [ 35.160401][ C3] __lock_acquire+0x797/0x1570 [ 35.160568][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.160733][ C3] _raw_read_lock_bh+0x44/0x80 [ 35.160898][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.161144][ C3] inet6_fill_link_af+0x5e/0xe0 [ 35.161307][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 35.161471][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.161636][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.161911][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 35.162080][ C3] register_netdevice+0x1177/0x1690 [ 35.162244][ C3] register_netdev+0x20/0x40 [ 35.162560][ C3] vti6_init_net+0x25d/0x380 [ 35.162726][ C3] ops_init+0x9b/0x560 [ 35.162861][ C3] register_pernet_operations+0x2db/0x710 [ 35.163136][ C3] register_pernet_device+0x2a/0x60 [ 35.163299][ C3] vti6_tunnel_init+0x18/0x110 [ 35.163469][ C3] do_one_initcall+0x8d/0x1e0 [ 35.163637][ C3] do_initcalls+0x1b2/0x3e0 [ 35.163878][ C3] kernel_init_freeable+0x232/0x310 [ 35.164044][ C3] kernel_init+0x20/0x200 [ 35.164208][ C3] ret_from_fork+0x31/0x70 [ 35.164450][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.164618][ C3] IN-SOFTIRQ-W at: [ 35.164717][ C3] __lock_acquire+0x797/0x1570 [ 35.164886][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.165127][ C3] _raw_write_lock+0x30/0x40 [ 35.165293][ C3] addrconf_rs_timer+0xa9/0x730 [ 35.165457][ C3] call_timer_fn+0x13b/0x230 [ 35.165700][ C3] __run_timers+0x545/0x810 [ 35.165871][ C3] run_timer_softirq+0xe8/0x1b0 [ 35.166034][ C3] __do_softirq+0x1f8/0x5df [ 35.166200][ C3] irq_exit_rcu+0x97/0xc0 [ 35.166442][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.166642][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.166837][ C3] default_idle+0xf/0x20 [ 35.167081][ C3] default_idle_call+0x6d/0xb0 [ 35.167244][ C3] cpuidle_idle_call+0x1f4/0x280 [ 35.167408][ C3] do_idle+0xf9/0x160 [ 35.167615][ C3] cpu_startup_entry+0x54/0x60 [ 35.167780][ C3] start_secondary+0x21c/0x2b0 [ 35.167945][ C3] common_startup_64+0x12c/0x138 [ 35.168111][ C3] INITIAL USE at: [ 35.168288][ C3] __lock_acquire+0x797/0x1570 [ 35.168453][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.168616][ C3] _raw_write_lock_bh+0x38/0x50 [ 35.168782][ C3] addrconf_permanent_addr+0x6e/0x670 [ 35.169028][ C3] addrconf_notify+0x749/0xd60 [ 35.169190][ C3] notifier_call_chain+0xcd/0x150 [ 35.169355][ C3] __dev_notify_flags+0xe6/0x250 [ 35.169525][ C3] dev_change_flags+0xec/0x160 [ 35.169689][ C3] do_setlink+0x7d6/0x21e0 [ 35.169860][ C3] __rtnl_newlink+0xaa7/0xd80 [ 35.170103][ C3] rtnl_newlink+0x63/0xa0 [ 35.170266][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.170430][ C3] netlink_rcv_skb+0x130/0x360 [ 35.170598][ C3] netlink_unicast+0x449/0x710 [ 35.170838][ C3] netlink_sendmsg+0x723/0xbe0 [ 35.171003][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 35.171167][ C3] ___sys_sendmsg+0xee/0x170 [ 35.171406][ C3] __sys_sendmsg+0xcd/0x170 [ 35.171571][ C3] do_syscall_64+0xc6/0x1e0 [ 35.171735][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.172010][ C3] INITIAL READ USE at: [ 35.172109][ C3] __lock_acquire+0x797/0x1570 [ 35.172274][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.172440][ C3] _raw_read_lock_bh+0x44/0x80 [ 35.172756][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.172954][ C3] inet6_fill_link_af+0x5e/0xe0 [ 35.173123][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 35.173362][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.173558][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.173755][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 35.173996][ C3] register_netdevice+0x1177/0x1690 [ 35.174194][ C3] register_netdev+0x20/0x40 [ 35.174360][ C3] vti6_init_net+0x25d/0x380 [ 35.174526][ C3] ops_init+0x9b/0x560 [ 35.174766][ C3] register_pernet_operations+0x2db/0x710 [ 35.174961][ C3] register_pernet_device+0x2a/0x60 [ 35.175155][ C3] vti6_tunnel_init+0x18/0x110 [ 35.175397][ C3] do_one_initcall+0x8d/0x1e0 [ 35.175561][ C3] do_initcalls+0x1b2/0x3e0 [ 35.175725][ C3] kernel_init_freeable+0x232/0x310 [ 35.176007][ C3] kernel_init+0x20/0x200 [ 35.176170][ C3] ret_from_fork+0x31/0x70 [ 35.176334][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.176502][ C3] } [ 35.176568][ C3] ... key at: [] __key.37+0x0/0x40 [ 35.176764][ C3] ... acquired at: [ 35.176861][ C3] mark_lock+0x28d/0x3e0 [ 35.176994][ C3] mark_usage+0xd9/0x2a0 [ 35.177201][ C3] __lock_acquire+0x797/0x1570 [ 35.177333][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.177463][ C3] _raw_write_lock+0x30/0x40 [ 35.177594][ C3] addrconf_rs_timer+0xa9/0x730 [ 35.177804][ C3] call_timer_fn+0x13b/0x230 [ 35.177936][ C3] __run_timers+0x545/0x810 [ 35.178065][ C3] run_timer_softirq+0xe8/0x1b0 [ 35.178194][ C3] __do_softirq+0x1f8/0x5df [ 35.178403][ C3] irq_exit_rcu+0x97/0xc0 [ 35.178532][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.178697][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.178858][ C3] default_idle+0xf/0x20 [ 35.179064][ C3] default_idle_call+0x6d/0xb0 [ 35.179197][ C3] cpuidle_idle_call+0x1f4/0x280 [ 35.179329][ C3] do_idle+0xf9/0x160 [ 35.179429][ C3] cpu_startup_entry+0x54/0x60 [ 35.179634][ C3] start_secondary+0x21c/0x2b0 [ 35.179766][ C3] common_startup_64+0x12c/0x138 [ 35.179906][ C3] [ 35.179971][ C3] [ 35.179971][ C3] stack backtrace: [ 35.180133][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 35.180407][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.180695][ C3] Call Trace: [ 35.180800][ C3] [ 35.180953][ C3] dump_stack_lvl+0x82/0xd0 [ 35.181090][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.181258][ C3] ? kernel_text_address+0x17/0xe0 [ 35.181392][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.181559][ C3] ? __pfx_usage_skip+0x10/0x10 [ 35.181688][ C3] ? __pfx_usage_match+0x10/0x10 [ 35.181819][ C3] ? arch_stack_walk+0x8c/0xf0 [ 35.181953][ C3] mark_lock_irq+0x4cd/0xa10 [ 35.182160][ C3] ? common_startup_64+0x12c/0x138 [ 35.182291][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.182422][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 35.182551][ C3] ? __pfx___lock_release+0x10/0x10 [ 35.182832][ C3] ? __lock_unpin_lock+0x137/0x2b0 [ 35.182962][ C3] ? save_trace+0x8f/0x5b0 [ 35.183094][ C3] mark_lock+0x28d/0x3e0 [ 35.183195][ C3] mark_usage+0xd9/0x2a0 [ 35.183293][ C3] __lock_acquire+0x797/0x1570 [ 35.183500][ C3] ? hlock_class+0x4e/0x130 [ 35.183630][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.183759][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.183894][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 35.184099][ C3] ? ct_nmi_exit+0x85/0x100 [ 35.184229][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.184360][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 35.184489][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 35.184618][ C3] ? lock_acquire+0x32/0xc0 [ 35.184822][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 35.184953][ C3] _raw_write_lock+0x30/0x40 [ 35.185083][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 35.185216][ C3] addrconf_rs_timer+0xa9/0x730 [ 35.185421][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.185552][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.185682][ C3] ? call_timer_fn+0xe8/0x230 [ 35.185812][ C3] ? lock_acquire+0x32/0xc0 [ 35.186016][ C3] ? call_timer_fn+0xe8/0x230 [ 35.186146][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.186275][ C3] call_timer_fn+0x13b/0x230 [ 35.186407][ C3] ? call_timer_fn+0xe8/0x230 [ 35.186611][ C3] ? call_timer_fn+0xe8/0x230 [ 35.186742][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 35.186873][ C3] ? mark_lock+0x38/0x3e0 [ 35.186974][ C3] __run_timers+0x545/0x810 [ 35.187102][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.187307][ C3] ? __pfx___run_timers+0x10/0x10 [ 35.187437][ C3] ? do_raw_spin_lock+0x131/0x270 [ 35.187566][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.187700][ C3] ? lock_acquire+0x32/0xc0 [ 35.187903][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 35.188033][ C3] run_timer_softirq+0xe8/0x1b0 [ 35.188164][ C3] __do_softirq+0x1f8/0x5df [ 35.188295][ C3] irq_exit_rcu+0x97/0xc0 [ 35.188395][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.188527][ C3] [ 35.188599][ C3] [ 35.188664][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.188826][ C3] RIP: 0010:default_idle+0xf/0x20 [ 35.188963][ 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 d3 eb 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 [ 35.189501][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000246 [ 35.189745][ C3] RAX: 00000000000826c3 RBX: 1ffff9200002dfc1 RCX: ffffffffab132ea5 [ 35.189948][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa88ac1d4 [ 35.190144][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 35.190414][ C3] R10: ffff8880361b84e3 R11: ffff8880361bde40 R12: 0000000000000000 [ 35.190610][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 35.190805][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.191014][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 35.191144][ C3] default_idle_call+0x6d/0xb0 [ 35.191272][ C3] cpuidle_idle_call+0x1f4/0x280 [ 35.191404][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.191608][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.191739][ C3] do_idle+0xf9/0x160 [ 35.191838][ C3] cpu_startup_entry+0x54/0x60 [ 35.191967][ C3] start_secondary+0x21c/0x2b0 [ 35.192099][ C3] ? __pfx_start_secondary+0x10/0x10 [ 35.192305][ C3] common_startup_64+0x12c/0x138 [ 35.192437][ C3]