[ 23.374103][ T244] ip (244) used greatest stack depth: 23200 bytes left [ 24.343379][ T262] veth0: renamed from veth-rt-1 [ 25.709765][ T271] veth0: renamed from veth-rt-2 [ 35.113474][ C1] [ 35.113575][ C1] ======================================================== [ 35.113767][ C1] WARNING: possible irq lock inversion dependency detected [ 35.113958][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 35.114096][ C1] -------------------------------------------------------- [ 35.114287][ C1] swapper/1/0 just changed the state of lock: [ 35.114448][ C1] ffff888005b8bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.114695][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.114885][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 35.114889][ C1] [ 35.114889][ C1] [ 35.114889][ C1] and interrupts could create inverse lock ordering between them. [ 35.114889][ C1] [ 35.115357][ C1] [ 35.115357][ C1] other info that might help us debug this: [ 35.115543][ C1] Possible interrupt unsafe locking scenario: [ 35.115543][ C1] [ 35.115741][ C1] CPU0 CPU1 [ 35.115876][ C1] ---- ---- [ 35.116005][ C1] lock(&p->alloc_lock); [ 35.116105][ C1] local_irq_disable(); [ 35.116267][ C1] lock(&ndev->lock); [ 35.116432][ C1] lock(&p->alloc_lock); [ 35.116594][ C1] [ 35.116696][ C1] lock(&ndev->lock); [ 35.116801][ C1] [ 35.116801][ C1] *** DEADLOCK *** [ 35.116801][ C1] [ 35.116987][ C1] 1 lock held by swapper/1/0: [ 35.117121][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.117356][ C1] [ 35.117356][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 35.117583][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.117723][ C1] HARDIRQ-ON-W at: [ 35.117817][ C1] __lock_acquire+0x797/0x1570 [ 35.117990][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.118157][ C1] _raw_spin_lock+0x30/0x40 [ 35.118324][ C1] set_mems_allowed+0x1d/0x210 [ 35.118490][ C1] kernel_init_freeable+0x72/0x310 [ 35.118659][ C1] kernel_init+0x20/0x200 [ 35.118825][ C1] ret_from_fork+0x31/0x70 [ 35.118987][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.119159][ C1] SOFTIRQ-ON-W at: [ 35.119257][ C1] __lock_acquire+0x797/0x1570 [ 35.119421][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.119586][ C1] _raw_spin_lock+0x30/0x40 [ 35.119756][ C1] set_mems_allowed+0x1d/0x210 [ 35.119921][ C1] kernel_init_freeable+0x72/0x310 [ 35.120083][ C1] kernel_init+0x20/0x200 [ 35.120244][ C1] ret_from_fork+0x31/0x70 [ 35.120409][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.120575][ C1] INITIAL USE at: [ 35.120674][ C1] __lock_acquire+0x797/0x1570 [ 35.120839][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.121003][ C1] _raw_spin_lock+0x30/0x40 [ 35.121168][ C1] set_mems_allowed+0x1d/0x210 [ 35.121335][ C1] kernel_init_freeable+0x72/0x310 [ 35.121499][ C1] kernel_init+0x20/0x200 [ 35.121660][ C1] ret_from_fork+0x31/0x70 [ 35.121822][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.121985][ C1] } [ 35.122053][ C1] ... key at: [] __key.388+0x0/0x40 [ 35.122251][ C1] ... acquired at: [ 35.122352][ C1] __lock_acquire+0xaf0/0x1570 [ 35.122493][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.122623][ C1] _raw_spin_lock+0x30/0x40 [ 35.122753][ C1] __get_task_comm+0x27/0x70 [ 35.122883][ C1] ref_tracker_alloc+0x2ee/0x490 [ 35.123012][ C1] netdev_get_by_index+0x5e/0x80 [ 35.123141][ C1] fib6_nh_init+0x3d8/0x1580 [ 35.123273][ C1] ip6_route_info_create+0xf18/0x17d0 [ 35.123401][ C1] ip6_route_add+0x1c/0x140 [ 35.123531][ C1] addrconf_prefix_route+0x2a6/0x430 [ 35.123664][ C1] addrconf_permanent_addr+0x32f/0x670 [ 35.123795][ C1] addrconf_notify+0x749/0xd60 [ 35.123929][ C1] notifier_call_chain+0xcd/0x150 [ 35.124060][ C1] __dev_notify_flags+0xe6/0x250 [ 35.124194][ C1] dev_change_flags+0xec/0x160 [ 35.124323][ C1] do_setlink+0x7d6/0x21e0 [ 35.124464][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.124594][ C1] rtnl_newlink+0x63/0xa0 [ 35.124733][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.124861][ C1] netlink_rcv_skb+0x130/0x360 [ 35.124994][ C1] netlink_unicast+0x449/0x710 [ 35.125124][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.125257][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.125391][ C1] ___sys_sendmsg+0xee/0x170 [ 35.125520][ C1] __sys_sendmsg+0xcd/0x170 [ 35.125649][ C1] do_syscall_64+0xc6/0x1e0 [ 35.125778][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.125941][ C1] [ 35.126007][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 35.126142][ C1] HARDIRQ-ON-W at: [ 35.126244][ C1] __lock_acquire+0x797/0x1570 [ 35.126418][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.126665][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.126826][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.126994][ C1] addrconf_notify+0x749/0xd60 [ 35.127237][ C1] notifier_call_chain+0xcd/0x150 [ 35.127403][ C1] __dev_notify_flags+0xe6/0x250 [ 35.127572][ C1] dev_change_flags+0xec/0x160 [ 35.127818][ C1] do_setlink+0x7d6/0x21e0 [ 35.127981][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.128148][ C1] rtnl_newlink+0x63/0xa0 [ 35.128311][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.128552][ C1] netlink_rcv_skb+0x130/0x360 [ 35.128719][ C1] netlink_unicast+0x449/0x710 [ 35.128880][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.129121][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.129287][ C1] ___sys_sendmsg+0xee/0x170 [ 35.129450][ C1] __sys_sendmsg+0xcd/0x170 [ 35.129695][ C1] do_syscall_64+0xc6/0x1e0 [ 35.129859][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.130061][ C1] HARDIRQ-ON-R at: [ 35.130165][ C1] __lock_acquire+0x797/0x1570 [ 35.130411][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.130577][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.130743][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.130986][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.131149][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 35.131312][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.131476][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.131753][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.131918][ C1] register_netdevice+0x1177/0x1690 [ 35.132080][ C1] register_netdev+0x20/0x40 [ 35.132327][ C1] vti6_init_net+0x25d/0x380 [ 35.132491][ C1] ops_init+0x9b/0x560 [ 35.132620][ C1] register_pernet_operations+0x2db/0x710 [ 35.132818][ C1] register_pernet_device+0x2a/0x60 [ 35.133150][ C1] vti6_tunnel_init+0x18/0x110 [ 35.133313][ C1] do_one_initcall+0x8d/0x1e0 [ 35.133476][ C1] do_initcalls+0x1b2/0x3e0 [ 35.133723][ C1] kernel_init_freeable+0x232/0x310 [ 35.133888][ C1] kernel_init+0x20/0x200 [ 35.134055][ C1] ret_from_fork+0x31/0x70 [ 35.134298][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.134461][ C1] IN-SOFTIRQ-W at: [ 35.134560][ C1] __lock_acquire+0x797/0x1570 [ 35.134732][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.134973][ C1] _raw_write_lock+0x30/0x40 [ 35.135142][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.135384][ C1] call_timer_fn+0x13b/0x230 [ 35.135554][ C1] __run_timers+0x545/0x810 [ 35.135792][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.135955][ C1] __do_softirq+0x1f8/0x5df [ 35.136127][ C1] irq_exit_rcu+0x97/0xc0 [ 35.136369][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.136652][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.136848][ C1] default_idle+0xf/0x20 [ 35.137007][ C1] default_idle_call+0x6d/0xb0 [ 35.137171][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.137339][ C1] do_idle+0xf9/0x160 [ 35.137474][ C1] cpu_startup_entry+0x54/0x60 [ 35.137637][ C1] start_secondary+0x21c/0x2b0 [ 35.137807][ C1] common_startup_64+0x12c/0x138 [ 35.137969][ C1] INITIAL USE at: [ 35.138213][ C1] __lock_acquire+0x797/0x1570 [ 35.138381][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.138545][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.138715][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.138956][ C1] addrconf_notify+0x749/0xd60 [ 35.139118][ C1] notifier_call_chain+0xcd/0x150 [ 35.139279][ C1] __dev_notify_flags+0xe6/0x250 [ 35.139527][ C1] dev_change_flags+0xec/0x160 [ 35.139688][ C1] do_setlink+0x7d6/0x21e0 [ 35.139848][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.140014][ C1] rtnl_newlink+0x63/0xa0 [ 35.140176][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.140337][ C1] netlink_rcv_skb+0x130/0x360 [ 35.140500][ C1] netlink_unicast+0x449/0x710 [ 35.140663][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.140825][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.140988][ C1] ___sys_sendmsg+0xee/0x170 [ 35.141159][ C1] __sys_sendmsg+0xcd/0x170 [ 35.141325][ C1] do_syscall_64+0xc6/0x1e0 [ 35.141489][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.141682][ C1] INITIAL READ USE at: [ 35.141860][ C1] __lock_acquire+0x797/0x1570 [ 35.142025][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.142188][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.142426][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.142621][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.142784][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 35.142950][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.143144][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.143347][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.143511][ C1] register_netdevice+0x1177/0x1690 [ 35.143709][ C1] register_netdev+0x20/0x40 [ 35.143874][ C1] vti6_init_net+0x25d/0x380 [ 35.144117][ C1] ops_init+0x9b/0x560 [ 35.144280][ C1] register_pernet_operations+0x2db/0x710 [ 35.144473][ C1] register_pernet_device+0x2a/0x60 [ 35.144755][ C1] vti6_tunnel_init+0x18/0x110 [ 35.144998][ C1] do_one_initcall+0x8d/0x1e0 [ 35.145160][ C1] do_initcalls+0x1b2/0x3e0 [ 35.145325][ C1] kernel_init_freeable+0x232/0x310 [ 35.145677][ C1] kernel_init+0x20/0x200 [ 35.145837][ C1] ret_from_fork+0x31/0x70 [ 35.146002][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.146244][ C1] } [ 35.146310][ C1] ... key at: [] __key.37+0x0/0x40 [ 35.146504][ C1] ... acquired at: [ 35.146601][ C1] mark_lock+0x28d/0x3e0 [ 35.146731][ C1] mark_usage+0xd9/0x2a0 [ 35.146943][ C1] __lock_acquire+0x797/0x1570 [ 35.147079][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.147210][ C1] _raw_write_lock+0x30/0x40 [ 35.147337][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.147551][ C1] call_timer_fn+0x13b/0x230 [ 35.147680][ C1] __run_timers+0x545/0x810 [ 35.147809][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.147942][ C1] __do_softirq+0x1f8/0x5df [ 35.148075][ C1] irq_exit_rcu+0x97/0xc0 [ 35.148203][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.148366][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.148530][ C1] default_idle+0xf/0x20 [ 35.148735][ C1] default_idle_call+0x6d/0xb0 [ 35.148867][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.149000][ C1] do_idle+0xf9/0x160 [ 35.149099][ C1] cpu_startup_entry+0x54/0x60 [ 35.149229][ C1] start_secondary+0x21c/0x2b0 [ 35.149434][ C1] common_startup_64+0x12c/0x138 [ 35.149565][ C1] [ 35.149629][ C1] [ 35.149629][ C1] stack backtrace: [ 35.149786][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 35.150061][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.150355][ C1] Call Trace: [ 35.150461][ C1] [ 35.150684][ C1] dump_stack_lvl+0x82/0xd0 [ 35.150818][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.150994][ C1] ? kernel_text_address+0x17/0xe0 [ 35.151129][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.151369][ C1] ? __pfx_usage_skip+0x10/0x10 [ 35.151499][ C1] ? __pfx_usage_match+0x10/0x10 [ 35.151704][ C1] ? arch_stack_walk+0x8c/0xf0 [ 35.151836][ C1] mark_lock_irq+0x4cd/0xa10 [ 35.151964][ C1] ? common_startup_64+0x12c/0x138 [ 35.152093][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.152304][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.152437][ C1] ? save_trace+0x8f/0x5b0 [ 35.152566][ C1] mark_lock+0x28d/0x3e0 [ 35.152665][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.152800][ C1] mark_usage+0xd9/0x2a0 [ 35.152900][ C1] __lock_acquire+0x797/0x1570 [ 35.153110][ C1] ? __pfx_validate_chain+0x10/0x10 [ 35.153244][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.153371][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.153576][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.153706][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.153839][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 35.154049][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.154179][ C1] ? lock_acquire+0x32/0xc0 [ 35.154310][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.154438][ C1] _raw_write_lock+0x30/0x40 [ 35.154648][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.154864][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.154996][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.155128][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.155259][ C1] ? call_timer_fn+0xe8/0x230 [ 35.155386][ C1] ? lock_acquire+0x32/0xc0 [ 35.155514][ C1] ? call_timer_fn+0xe8/0x230 [ 35.155642][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.155844][ C1] call_timer_fn+0x13b/0x230 [ 35.155973][ C1] ? call_timer_fn+0xe8/0x230 [ 35.156104][ C1] ? call_timer_fn+0xe8/0x230 [ 35.156240][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 35.156369][ C1] ? mark_lock+0x38/0x3e0 [ 35.156559][ C1] __run_timers+0x545/0x810 [ 35.156689][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.156818][ C1] ? __pfx___run_timers+0x10/0x10 [ 35.156947][ C1] ? do_raw_spin_lock+0x131/0x270 [ 35.157075][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.157203][ C1] ? lock_acquire+0x32/0xc0 [ 35.157331][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 35.157460][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.157589][ C1] __do_softirq+0x1f8/0x5df [ 35.157718][ C1] irq_exit_rcu+0x97/0xc0 [ 35.157815][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.157944][ C1] [ 35.158010][ C1] [ 35.158075][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.158236][ C1] RIP: 0010:default_idle+0xf/0x20 [ 35.158370][ C1] 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.158909][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 35.159074][ C1] RAX: 000000000008d27d RBX: 1ffff92000029fc1 RCX: ffffffff86b32ea5 [ 35.159265][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff842ac1d4 [ 35.159547][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 35.159741][ C1] R10: ffff8880360b84e3 R11: ffff8880360bde40 R12: 0000000000000000 [ 35.159938][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 35.160290][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.160420][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 35.160548][ C1] default_idle_call+0x6d/0xb0 [ 35.160756][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.160887][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.161018][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.161155][ C1] do_idle+0xf9/0x160 [ 35.161253][ C1] cpu_startup_entry+0x54/0x60 [ 35.161461][ C1] start_secondary+0x21c/0x2b0 [ 35.161591][ C1] ? __pfx_start_secondary+0x10/0x10 [ 35.161726][ C1] common_startup_64+0x12c/0x138 [ 35.161859][ C1]