[ 83.164678][ T861] veth0: renamed from veth-rt-1 [ 84.458917][ T869] veth0: renamed from veth-rt-2 [ 92.511926][ C2] [ 92.512180][ C2] ======================================================== [ 92.512618][ C2] WARNING: possible irq lock inversion dependency detected [ 92.512816][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 92.512948][ C2] -------------------------------------------------------- [ 92.513143][ C2] swapper/2/0 just changed the state of lock: [ 92.513303][ C2] ffff8880091e3d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 92.513540][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 92.513729][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 92.513733][ C2] [ 92.513733][ C2] [ 92.513733][ C2] and interrupts could create inverse lock ordering between them. [ 92.513733][ C2] [ 92.514204][ C2] [ 92.514204][ C2] other info that might help us debug this: [ 92.514392][ C2] Possible interrupt unsafe locking scenario: [ 92.514392][ C2] [ 92.514588][ C2] CPU0 CPU1 [ 92.514716][ C2] ---- ---- [ 92.514845][ C2] lock(&p->alloc_lock); [ 92.514945][ C2] local_irq_disable(); [ 92.515106][ C2] lock(&ndev->lock); [ 92.515267][ C2] lock(&p->alloc_lock); [ 92.515428][ C2] [ 92.515525][ C2] lock(&ndev->lock); [ 92.515625][ C2] [ 92.515625][ C2] *** DEADLOCK *** [ 92.515625][ C2] [ 92.515814][ C2] 1 lock held by swapper/2/0: [ 92.515946][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 92.516185][ C2] [ 92.516185][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 92.516408][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 92.516546][ C2] HARDIRQ-ON-W at: [ 92.516647][ C2] __lock_acquire+0x797/0x1570 [ 92.516817][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.516986][ C2] _raw_spin_lock+0x30/0x40 [ 92.517156][ C2] set_mems_allowed+0x1d/0x210 [ 92.517325][ C2] kernel_init_freeable+0x72/0x310 [ 92.517493][ C2] kernel_init+0x20/0x200 [ 92.517661][ C2] ret_from_fork+0x31/0x70 [ 92.517832][ C2] ret_from_fork_asm+0x1a/0x30 [ 92.518000][ C2] SOFTIRQ-ON-W at: [ 92.518098][ C2] __lock_acquire+0x797/0x1570 [ 92.518261][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.518424][ C2] _raw_spin_lock+0x30/0x40 [ 92.518587][ C2] set_mems_allowed+0x1d/0x210 [ 92.518752][ C2] kernel_init_freeable+0x72/0x310 [ 92.518920][ C2] kernel_init+0x20/0x200 [ 92.519084][ C2] ret_from_fork+0x31/0x70 [ 92.519249][ C2] ret_from_fork_asm+0x1a/0x30 [ 92.519414][ C2] INITIAL USE at: [ 92.519513][ C2] __lock_acquire+0x797/0x1570 [ 92.519679][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.519844][ C2] _raw_spin_lock+0x30/0x40 [ 92.520012][ C2] set_mems_allowed+0x1d/0x210 [ 92.520175][ C2] kernel_init_freeable+0x72/0x310 [ 92.520339][ C2] kernel_init+0x20/0x200 [ 92.520504][ C2] ret_from_fork+0x31/0x70 [ 92.520696][ C2] ret_from_fork_asm+0x1a/0x30 [ 92.520864][ C2] } [ 92.520936][ C2] ... key at: [] __key.388+0x0/0x40 [ 92.521141][ C2] ... acquired at: [ 92.521242][ C2] __lock_acquire+0xaf0/0x1570 [ 92.521379][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.521515][ C2] _raw_spin_lock+0x30/0x40 [ 92.521650][ C2] __get_task_comm+0x27/0x70 [ 92.521798][ C2] ref_tracker_alloc+0x2ee/0x490 [ 92.521933][ C2] netdev_get_by_index+0x5e/0x80 [ 92.522068][ C2] fib6_nh_init+0x3d8/0x1580 [ 92.522201][ C2] ip6_route_info_create+0xf18/0x17d0 [ 92.522331][ C2] ip6_route_add+0x1c/0x140 [ 92.522460][ C2] addrconf_prefix_route+0x2a6/0x430 [ 92.522593][ C2] addrconf_permanent_addr+0x32f/0x670 [ 92.522723][ C2] addrconf_notify+0x749/0xd60 [ 92.522853][ C2] notifier_call_chain+0xcd/0x150 [ 92.522985][ C2] __dev_notify_flags+0xe6/0x250 [ 92.523120][ C2] dev_change_flags+0xec/0x160 [ 92.523248][ C2] do_setlink+0x7d6/0x21e0 [ 92.523379][ C2] __rtnl_newlink+0xaa7/0xd80 [ 92.523511][ C2] rtnl_newlink+0x63/0xa0 [ 92.523641][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 92.523771][ C2] netlink_rcv_skb+0x130/0x360 [ 92.523908][ C2] netlink_unicast+0x449/0x710 [ 92.524041][ C2] netlink_sendmsg+0x723/0xbe0 [ 92.524172][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 92.524308][ C2] ___sys_sendmsg+0xee/0x170 [ 92.524442][ C2] __sys_sendmsg+0xcd/0x170 [ 92.524573][ C2] do_syscall_64+0xc6/0x1e0 [ 92.524705][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 92.524869][ C2] [ 92.524935][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 92.525071][ C2] HARDIRQ-ON-W at: [ 92.525169][ C2] __lock_acquire+0x797/0x1570 [ 92.525334][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.525501][ C2] _raw_write_lock_bh+0x38/0x50 [ 92.525666][ C2] addrconf_permanent_addr+0x6e/0x670 [ 92.525831][ C2] addrconf_notify+0x749/0xd60 [ 92.525994][ C2] notifier_call_chain+0xcd/0x150 [ 92.526159][ C2] __dev_notify_flags+0xe6/0x250 [ 92.526324][ C2] dev_change_flags+0xec/0x160 [ 92.526487][ C2] do_setlink+0x7d6/0x21e0 [ 92.526649][ C2] __rtnl_newlink+0xaa7/0xd80 [ 92.526814][ C2] rtnl_newlink+0x63/0xa0 [ 92.526977][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 92.527140][ C2] netlink_rcv_skb+0x130/0x360 [ 92.527306][ C2] netlink_unicast+0x449/0x710 [ 92.527471][ C2] netlink_sendmsg+0x723/0xbe0 [ 92.527635][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 92.527802][ C2] ___sys_sendmsg+0xee/0x170 [ 92.527970][ C2] __sys_sendmsg+0xcd/0x170 [ 92.528135][ C2] do_syscall_64+0xc6/0x1e0 [ 92.528299][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 92.528496][ C2] HARDIRQ-ON-R at: [ 92.528605][ C2] __lock_acquire+0x797/0x1570 [ 92.528769][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.528934][ C2] _raw_read_lock_bh+0x44/0x80 [ 92.529099][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 92.529263][ C2] inet6_fill_link_af+0x5e/0xe0 [ 92.529425][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 92.529593][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 92.529755][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 92.529949][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 92.530113][ C2] register_netdevice+0x1177/0x1690 [ 92.530276][ C2] register_netdev+0x20/0x40 [ 92.530437][ C2] vti6_init_net+0x25d/0x380 [ 92.530632][ C2] ops_init+0x9b/0x560 [ 92.530773][ C2] register_pernet_operations+0x2db/0x710 [ 92.530975][ C2] register_pernet_device+0x2a/0x60 [ 92.531142][ C2] vti6_tunnel_init+0x18/0x110 [ 92.531314][ C2] do_one_initcall+0x8d/0x1e0 [ 92.531483][ C2] do_initcalls+0x1b2/0x3e0 [ 92.531651][ C2] kernel_init_freeable+0x232/0x310 [ 92.531832][ C2] kernel_init+0x20/0x200 [ 92.531995][ C2] ret_from_fork+0x31/0x70 [ 92.532159][ C2] ret_from_fork_asm+0x1a/0x30 [ 92.532322][ C2] IN-SOFTIRQ-W at: [ 92.532500][ C2] __lock_acquire+0x797/0x1570 [ 92.532667][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.532832][ C2] _raw_write_lock+0x30/0x40 [ 92.532996][ C2] addrconf_rs_timer+0xa9/0x730 [ 92.533237][ C2] call_timer_fn+0x13b/0x230 [ 92.533401][ C2] __run_timers+0x545/0x810 [ 92.533563][ C2] timer_expire_remote+0x9b/0xe0 [ 92.533912][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 92.534076][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 92.534241][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 92.534403][ C2] __do_softirq+0x1f8/0x5df [ 92.534565][ C2] irq_exit_rcu+0x97/0xc0 [ 92.534730][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 92.534926][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 92.535121][ C2] default_idle+0xf/0x20 [ 92.535288][ C2] default_idle_call+0x6d/0xb0 [ 92.535451][ C2] cpuidle_idle_call+0x1f4/0x280 [ 92.535696][ C2] do_idle+0xf9/0x160 [ 92.535829][ C2] cpu_startup_entry+0x54/0x60 [ 92.535991][ C2] start_secondary+0x21c/0x2b0 [ 92.536155][ C2] common_startup_64+0x12c/0x138 [ 92.536398][ C2] INITIAL USE at: [ 92.536495][ C2] __lock_acquire+0x797/0x1570 [ 92.536657][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.536914][ C2] _raw_write_lock_bh+0x38/0x50 [ 92.537077][ C2] addrconf_permanent_addr+0x6e/0x670 [ 92.537240][ C2] addrconf_notify+0x749/0xd60 [ 92.537403][ C2] notifier_call_chain+0xcd/0x150 [ 92.537571][ C2] __dev_notify_flags+0xe6/0x250 [ 92.537736][ C2] dev_change_flags+0xec/0x160 [ 92.537899][ C2] do_setlink+0x7d6/0x21e0 [ 92.538061][ C2] __rtnl_newlink+0xaa7/0xd80 [ 92.538224][ C2] rtnl_newlink+0x63/0xa0 [ 92.538386][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 92.538552][ C2] netlink_rcv_skb+0x130/0x360 [ 92.538793][ C2] netlink_unicast+0x449/0x710 [ 92.538956][ C2] netlink_sendmsg+0x723/0xbe0 [ 92.539118][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 92.539358][ C2] ___sys_sendmsg+0xee/0x170 [ 92.539520][ C2] __sys_sendmsg+0xcd/0x170 [ 92.539685][ C2] do_syscall_64+0xc6/0x1e0 [ 92.539930][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 92.540124][ C2] INITIAL READ USE at: [ 92.540222][ C2] __lock_acquire+0x797/0x1570 [ 92.540385][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.540655][ C2] _raw_read_lock_bh+0x44/0x80 [ 92.540823][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 92.541025][ C2] inet6_fill_link_af+0x5e/0xe0 [ 92.541272][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 92.541440][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 92.541641][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 92.541944][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 92.542107][ C2] register_netdevice+0x1177/0x1690 [ 92.542305][ C2] register_netdev+0x20/0x40 [ 92.542466][ C2] vti6_init_net+0x25d/0x380 [ 92.542629][ C2] ops_init+0x9b/0x560 [ 92.542791][ C2] register_pernet_operations+0x2db/0x710 [ 92.542988][ C2] register_pernet_device+0x2a/0x60 [ 92.543182][ C2] vti6_tunnel_init+0x18/0x110 [ 92.543349][ C2] do_one_initcall+0x8d/0x1e0 [ 92.543512][ C2] do_initcalls+0x1b2/0x3e0 [ 92.543831][ C2] kernel_init_freeable+0x232/0x310 [ 92.544027][ C2] kernel_init+0x20/0x200 [ 92.544190][ C2] ret_from_fork+0x31/0x70 [ 92.544431][ C2] ret_from_fork_asm+0x1a/0x30 [ 92.544600][ C2] } [ 92.544666][ C2] ... key at: [] __key.37+0x0/0x40 [ 92.544860][ C2] ... acquired at: [ 92.545032][ C2] mark_lock+0x28d/0x3e0 [ 92.545162][ C2] mark_usage+0xd9/0x2a0 [ 92.545291][ C2] __lock_acquire+0x797/0x1570 [ 92.545421][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.545626][ C2] _raw_write_lock+0x30/0x40 [ 92.545759][ C2] addrconf_rs_timer+0xa9/0x730 [ 92.545890][ C2] call_timer_fn+0x13b/0x230 [ 92.546020][ C2] __run_timers+0x545/0x810 [ 92.546149][ C2] timer_expire_remote+0x9b/0xe0 [ 92.546356][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 92.546485][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 92.546614][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 92.546743][ C2] __do_softirq+0x1f8/0x5df [ 92.546972][ C2] irq_exit_rcu+0x97/0xc0 [ 92.547102][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 92.547263][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 92.547425][ C2] default_idle+0xf/0x20 [ 92.547555][ C2] default_idle_call+0x6d/0xb0 [ 92.547683][ C2] cpuidle_idle_call+0x1f4/0x280 [ 92.547813][ C2] do_idle+0xf9/0x160 [ 92.547912][ C2] cpu_startup_entry+0x54/0x60 [ 92.548043][ C2] start_secondary+0x21c/0x2b0 [ 92.548176][ C2] common_startup_64+0x12c/0x138 [ 92.548306][ C2] [ 92.548372][ C2] [ 92.548372][ C2] stack backtrace: [ 92.548532][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 92.548803][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 92.549091][ C2] Call Trace: [ 92.549278][ C2] [ 92.549347][ C2] dump_stack_lvl+0x82/0xd0 [ 92.549484][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 92.549645][ C2] ? kernel_text_address+0x17/0xe0 [ 92.549779][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 92.550016][ C2] ? __pfx_usage_skip+0x10/0x10 [ 92.550145][ C2] ? __pfx_usage_match+0x10/0x10 [ 92.550275][ C2] ? arch_stack_walk+0x8c/0xf0 [ 92.550406][ C2] mark_lock_irq+0x4cd/0xa10 [ 92.550644][ C2] ? common_startup_64+0x12c/0x138 [ 92.550778][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 92.550913][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 92.551049][ C2] ? save_trace+0x8f/0x5b0 [ 92.551261][ C2] mark_lock+0x28d/0x3e0 [ 92.551363][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 92.551496][ C2] mark_usage+0xd9/0x2a0 [ 92.551597][ C2] __lock_acquire+0x797/0x1570 [ 92.551736][ C2] ? __pfx_validate_chain+0x10/0x10 [ 92.551974][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 92.552105][ C2] lock_acquire.part.0+0xeb/0x330 [ 92.552234][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 92.552364][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 92.552495][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 92.552626][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 92.552754][ C2] ? lock_acquire+0x32/0xc0 [ 92.552888][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 92.553019][ C2] _raw_write_lock+0x30/0x40 [ 92.553150][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 92.553279][ C2] addrconf_rs_timer+0xa9/0x730 [ 92.553409][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 92.553540][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 92.553821][ C2] ? call_timer_fn+0xe8/0x230 [ 92.553951][ C2] ? lock_acquire+0x32/0xc0 [ 92.554083][ C2] ? call_timer_fn+0xe8/0x230 [ 92.554214][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 92.554421][ C2] call_timer_fn+0x13b/0x230 [ 92.554550][ C2] ? call_timer_fn+0xe8/0x230 [ 92.554678][ C2] ? call_timer_fn+0xe8/0x230 [ 92.554807][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 92.555011][ C2] ? mark_lock+0x38/0x3e0 [ 92.555112][ C2] __run_timers+0x545/0x810 [ 92.555241][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 92.555372][ C2] ? __pfx___run_timers+0x10/0x10 [ 92.555501][ C2] ? __lock_release+0x103/0x460 [ 92.555705][ C2] ? do_raw_spin_lock+0x131/0x270 [ 92.555834][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 92.555963][ C2] ? lock_acquire+0x32/0xc0 [ 92.556092][ C2] ? timer_expire_remote+0x93/0xe0 [ 92.556297][ C2] timer_expire_remote+0x9b/0xe0 [ 92.556429][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 92.556561][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 92.556724][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 92.556960][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 92.557089][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 92.557222][ C2] __do_softirq+0x1f8/0x5df [ 92.557353][ C2] irq_exit_rcu+0x97/0xc0 [ 92.557453][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 92.557582][ C2] [ 92.557658][ C2] [ 92.557724][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 92.557886][ C2] RIP: 0010:default_idle+0xf/0x20 [ 92.558023][ 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 [ 92.558480][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 92.558729][ C2] RAX: 0000000000361b17 RBX: 1ffff9200002bfc1 RCX: ffffffffb8b31ea5 [ 92.558925][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb62ac1d4 [ 92.559119][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 92.559392][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 92.559587][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 92.559789][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 92.559997][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 92.560127][ C2] default_idle_call+0x6d/0xb0 [ 92.560256][ C2] cpuidle_idle_call+0x1f4/0x280 [ 92.560386][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 92.560613][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 92.560748][ C2] do_idle+0xf9/0x160 [ 92.560849][ C2] cpu_startup_entry+0x54/0x60 [ 92.560983][ C2] start_secondary+0x21c/0x2b0 [ 92.561115][ C2] ? __pfx_start_secondary+0x10/0x10 [ 92.561328][ C2] common_startup_64+0x12c/0x138 [ 92.561463][ C2]