[ 24.918442][ T261] ip (261) used greatest stack depth: 24048 bytes left [ 33.576204][ C2] [ 33.576303][ C2] ======================================================== [ 33.576504][ C2] WARNING: possible irq lock inversion dependency detected [ 33.576698][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 33.576830][ C2] -------------------------------------------------------- [ 33.577024][ C2] swapper/2/0 just changed the state of lock: [ 33.577190][ C2] ffff888007e1a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.577430][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.577630][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 33.577634][ C2] [ 33.577634][ C2] [ 33.577634][ C2] and interrupts could create inverse lock ordering between them. [ 33.577634][ C2] [ 33.578110][ C2] [ 33.578110][ C2] other info that might help us debug this: [ 33.578297][ C2] Possible interrupt unsafe locking scenario: [ 33.578297][ C2] [ 33.578490][ C2] CPU0 CPU1 [ 33.578617][ C2] ---- ---- [ 33.578744][ C2] lock(&p->alloc_lock); [ 33.578844][ C2] local_irq_disable(); [ 33.579010][ C2] lock(&ndev->lock); [ 33.579169][ C2] lock(&p->alloc_lock); [ 33.579340][ C2] [ 33.579436][ C2] lock(&ndev->lock); [ 33.579545][ C2] [ 33.579545][ C2] *** DEADLOCK *** [ 33.579545][ C2] [ 33.579730][ C2] 1 lock held by swapper/2/0: [ 33.579859][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.580096][ C2] [ 33.580096][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 33.580317][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.580455][ C2] HARDIRQ-ON-W at: [ 33.580556][ C2] __lock_acquire+0x797/0x1570 [ 33.580729][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.580897][ C2] _raw_spin_lock+0x30/0x40 [ 33.581064][ C2] set_mems_allowed+0x1d/0x210 [ 33.581231][ C2] kernel_init_freeable+0x72/0x310 [ 33.581401][ C2] kernel_init+0x20/0x200 [ 33.581571][ C2] ret_from_fork+0x31/0x70 [ 33.581741][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.581905][ C2] SOFTIRQ-ON-W at: [ 33.582004][ C2] __lock_acquire+0x797/0x1570 [ 33.582169][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.582341][ C2] _raw_spin_lock+0x30/0x40 [ 33.582505][ C2] set_mems_allowed+0x1d/0x210 [ 33.582678][ C2] kernel_init_freeable+0x72/0x310 [ 33.582840][ C2] kernel_init+0x20/0x200 [ 33.583006][ C2] ret_from_fork+0x31/0x70 [ 33.583175][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.583337][ C2] INITIAL USE at: [ 33.583435][ C2] __lock_acquire+0x797/0x1570 [ 33.583603][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.583769][ C2] _raw_spin_lock+0x30/0x40 [ 33.583931][ C2] set_mems_allowed+0x1d/0x210 [ 33.584094][ C2] kernel_init_freeable+0x72/0x310 [ 33.584258][ C2] kernel_init+0x20/0x200 [ 33.584424][ C2] ret_from_fork+0x31/0x70 [ 33.584592][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.584760][ C2] } [ 33.584830][ C2] ... key at: [] __key.388+0x0/0x40 [ 33.585042][ C2] ... acquired at: [ 33.585141][ C2] __lock_acquire+0xaf0/0x1570 [ 33.585274][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.585405][ C2] _raw_spin_lock+0x30/0x40 [ 33.585535][ C2] __get_task_comm+0x27/0x70 [ 33.585669][ C2] ref_tracker_alloc+0x2ee/0x490 [ 33.585884][ C2] netdev_get_by_index+0x5e/0x80 [ 33.586016][ C2] fib6_nh_init+0x3d8/0x1580 [ 33.586156][ C2] ip6_route_info_create+0xf18/0x17d0 [ 33.586291][ C2] ip6_route_add+0x1c/0x140 [ 33.586501][ C2] addrconf_prefix_route+0x2a6/0x430 [ 33.586634][ C2] addrconf_permanent_addr+0x32f/0x670 [ 33.586764][ C2] addrconf_notify+0x749/0xd60 [ 33.586895][ C2] notifier_call_chain+0xcd/0x150 [ 33.587028][ C2] __dev_notify_flags+0xe6/0x250 [ 33.587162][ C2] dev_change_flags+0xec/0x160 [ 33.587290][ C2] do_setlink+0x7d6/0x21e0 [ 33.587420][ C2] __rtnl_newlink+0xaa7/0xd80 [ 33.587551][ C2] rtnl_newlink+0x63/0xa0 [ 33.587761][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.587889][ C2] netlink_rcv_skb+0x130/0x360 [ 33.588021][ C2] netlink_unicast+0x449/0x710 [ 33.588153][ C2] netlink_sendmsg+0x723/0xbe0 [ 33.588361][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 33.588498][ C2] ___sys_sendmsg+0xee/0x170 [ 33.588629][ C2] __sys_sendmsg+0xcd/0x170 [ 33.588758][ C2] do_syscall_64+0xc6/0x1e0 [ 33.588959][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.589121][ C2] [ 33.589186][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 33.589320][ C2] HARDIRQ-ON-W at: [ 33.589418][ C2] __lock_acquire+0x797/0x1570 [ 33.589659][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.589822][ C2] _raw_write_lock_bh+0x38/0x50 [ 33.589986][ C2] addrconf_permanent_addr+0x6e/0x670 [ 33.590238][ C2] addrconf_notify+0x749/0xd60 [ 33.590401][ C2] notifier_call_chain+0xcd/0x150 [ 33.590565][ C2] __dev_notify_flags+0xe6/0x250 [ 33.590729][ C2] dev_change_flags+0xec/0x160 [ 33.590964][ C2] do_setlink+0x7d6/0x21e0 [ 33.591126][ C2] __rtnl_newlink+0xaa7/0xd80 [ 33.591287][ C2] rtnl_newlink+0x63/0xa0 [ 33.591526][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.591688][ C2] netlink_rcv_skb+0x130/0x360 [ 33.591857][ C2] netlink_unicast+0x449/0x710 [ 33.592021][ C2] netlink_sendmsg+0x723/0xbe0 [ 33.592257][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 33.592418][ C2] ___sys_sendmsg+0xee/0x170 [ 33.592582][ C2] __sys_sendmsg+0xcd/0x170 [ 33.592821][ C2] do_syscall_64+0xc6/0x1e0 [ 33.592984][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.593182][ C2] HARDIRQ-ON-R at: [ 33.593280][ C2] __lock_acquire+0x797/0x1570 [ 33.593517][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.593680][ C2] _raw_read_lock_bh+0x44/0x80 [ 33.593842][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.594079][ C2] inet6_fill_link_af+0x5e/0xe0 [ 33.594241][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 33.594405][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.594641][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.594834][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 33.595006][ C2] register_netdevice+0x1177/0x1690 [ 33.595169][ C2] register_netdev+0x20/0x40 [ 33.595407][ C2] vti6_init_net+0x25d/0x380 [ 33.595575][ C2] ops_init+0x9b/0x560 [ 33.595709][ C2] register_pernet_operations+0x2db/0x710 [ 33.595977][ C2] register_pernet_device+0x2a/0x60 [ 33.596140][ C2] vti6_tunnel_init+0x18/0x110 [ 33.596305][ C2] do_one_initcall+0x8d/0x1e0 [ 33.596545][ C2] do_initcalls+0x1b2/0x3e0 [ 33.596720][ C2] kernel_init_freeable+0x232/0x310 [ 33.596883][ C2] kernel_init+0x20/0x200 [ 33.597046][ C2] ret_from_fork+0x31/0x70 [ 33.597289][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.597450][ C2] IN-SOFTIRQ-W at: [ 33.597548][ C2] __lock_acquire+0x797/0x1570 [ 33.597710][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.597873][ C2] _raw_write_lock+0x30/0x40 [ 33.598034][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.598195][ C2] call_timer_fn+0x13b/0x230 [ 33.598433][ C2] __run_timers+0x545/0x810 [ 33.598594][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.598755][ C2] __do_softirq+0x1f8/0x5df [ 33.599005][ C2] irq_exit_rcu+0x97/0xc0 [ 33.599169][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.599365][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.599633][ C2] default_idle+0xf/0x20 [ 33.599798][ C2] default_idle_call+0x6d/0xb0 [ 33.599965][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.600135][ C2] do_idle+0xf9/0x160 [ 33.600341][ C2] cpu_startup_entry+0x54/0x60 [ 33.600504][ C2] start_secondary+0x21c/0x2b0 [ 33.600667][ C2] common_startup_64+0x12c/0x138 [ 33.600979][ C2] INITIAL USE at: [ 33.601076][ C2] __lock_acquire+0x797/0x1570 [ 33.601239][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.601403][ C2] _raw_write_lock_bh+0x38/0x50 [ 33.601640][ C2] addrconf_permanent_addr+0x6e/0x670 [ 33.601802][ C2] addrconf_notify+0x749/0xd60 [ 33.601962][ C2] notifier_call_chain+0xcd/0x150 [ 33.602125][ C2] __dev_notify_flags+0xe6/0x250 [ 33.602373][ C2] dev_change_flags+0xec/0x160 [ 33.602534][ C2] do_setlink+0x7d6/0x21e0 [ 33.602696][ C2] __rtnl_newlink+0xaa7/0xd80 [ 33.602859][ C2] rtnl_newlink+0x63/0xa0 [ 33.603021][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.603181][ C2] netlink_rcv_skb+0x130/0x360 [ 33.603420][ C2] netlink_unicast+0x449/0x710 [ 33.603581][ C2] netlink_sendmsg+0x723/0xbe0 [ 33.603745][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 33.603909][ C2] ___sys_sendmsg+0xee/0x170 [ 33.604148][ C2] __sys_sendmsg+0xcd/0x170 [ 33.604317][ C2] do_syscall_64+0xc6/0x1e0 [ 33.604480][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.604752][ C2] INITIAL READ USE at: [ 33.604850][ C2] __lock_acquire+0x797/0x1570 [ 33.605035][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.605198][ C2] _raw_read_lock_bh+0x44/0x80 [ 33.605436][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.605629][ C2] inet6_fill_link_af+0x5e/0xe0 [ 33.605792][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 33.606033][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.606230][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.606423][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 33.606659][ C2] register_netdevice+0x1177/0x1690 [ 33.606852][ C2] register_netdev+0x20/0x40 [ 33.607020][ C2] vti6_init_net+0x25d/0x380 [ 33.607259][ C2] ops_init+0x9b/0x560 [ 33.607423][ C2] register_pernet_operations+0x2db/0x710 [ 33.607616][ C2] register_pernet_device+0x2a/0x60 [ 33.607810][ C2] vti6_tunnel_init+0x18/0x110 [ 33.607972][ C2] do_one_initcall+0x8d/0x1e0 [ 33.608133][ C2] do_initcalls+0x1b2/0x3e0 [ 33.608299][ C2] kernel_init_freeable+0x232/0x310 [ 33.608568][ C2] kernel_init+0x20/0x200 [ 33.608738][ C2] ret_from_fork+0x31/0x70 [ 33.608902][ C2] ret_from_fork_asm+0x1a/0x30 [ 33.609139][ C2] } [ 33.609204][ C2] ... key at: [] __key.37+0x0/0x40 [ 33.609396][ C2] ... acquired at: [ 33.609497][ C2] mark_lock+0x28d/0x3e0 [ 33.609698][ C2] mark_usage+0xd9/0x2a0 [ 33.609827][ C2] __lock_acquire+0x797/0x1570 [ 33.609957][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.610086][ C2] _raw_write_lock+0x30/0x40 [ 33.610288][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.610416][ C2] call_timer_fn+0x13b/0x230 [ 33.610545][ C2] __run_timers+0x545/0x810 [ 33.610679][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.610811][ C2] __do_softirq+0x1f8/0x5df [ 33.611085][ C2] irq_exit_rcu+0x97/0xc0 [ 33.611219][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.611380][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.611611][ C2] default_idle+0xf/0x20 [ 33.611740][ C2] default_idle_call+0x6d/0xb0 [ 33.611867][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.611995][ C2] do_idle+0xf9/0x160 [ 33.612092][ C2] cpu_startup_entry+0x54/0x60 [ 33.612299][ C2] start_secondary+0x21c/0x2b0 [ 33.612429][ C2] common_startup_64+0x12c/0x138 [ 33.612559][ C2] [ 33.612623][ C2] [ 33.612623][ C2] stack backtrace: [ 33.612781][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 33.612981][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.613269][ C2] Call Trace: [ 33.613452][ C2] [ 33.613519][ C2] dump_stack_lvl+0x82/0xd0 [ 33.613654][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.613814][ C2] ? kernel_text_address+0x17/0xe0 [ 33.613946][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.614178][ C2] ? __pfx_usage_skip+0x10/0x10 [ 33.614308][ C2] ? __pfx_usage_match+0x10/0x10 [ 33.614437][ C2] ? arch_stack_walk+0x8c/0xf0 [ 33.614572][ C2] mark_lock_irq+0x4cd/0xa10 [ 33.614775][ C2] ? common_startup_64+0x12c/0x138 [ 33.614904][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.615044][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 33.615178][ C2] ? save_trace+0x8f/0x5b0 [ 33.615381][ C2] mark_lock+0x28d/0x3e0 [ 33.615479][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 33.615609][ C2] mark_usage+0xd9/0x2a0 [ 33.615710][ C2] __lock_acquire+0x797/0x1570 [ 33.615841][ C2] ? __pfx_validate_chain+0x10/0x10 [ 33.616044][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.616173][ C2] lock_acquire.part.0+0xeb/0x330 [ 33.616302][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.616431][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.616632][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 33.616762][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.616892][ C2] ? lock_acquire+0x32/0xc0 [ 33.617020][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.617229][ C2] _raw_write_lock+0x30/0x40 [ 33.617357][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 33.617484][ C2] addrconf_rs_timer+0xa9/0x730 [ 33.617612][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.617741][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.617870][ C2] ? call_timer_fn+0xe8/0x230 [ 33.618004][ C2] ? lock_acquire+0x32/0xc0 [ 33.618133][ C2] ? call_timer_fn+0xe8/0x230 [ 33.618262][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.618463][ C2] call_timer_fn+0x13b/0x230 [ 33.618591][ C2] ? call_timer_fn+0xe8/0x230 [ 33.618720][ C2] ? call_timer_fn+0xe8/0x230 [ 33.618849][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 33.619049][ C2] ? mark_lock+0x38/0x3e0 [ 33.619150][ C2] __run_timers+0x545/0x810 [ 33.619279][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.619409][ C2] ? __pfx___run_timers+0x10/0x10 [ 33.619612][ C2] ? do_raw_spin_lock+0x131/0x270 [ 33.619740][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.619868][ C2] ? lock_acquire+0x32/0xc0 [ 33.620002][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 33.620133][ C2] run_timer_softirq+0xe8/0x1b0 [ 33.620336][ C2] __do_softirq+0x1f8/0x5df [ 33.620467][ C2] irq_exit_rcu+0x97/0xc0 [ 33.620566][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.620696][ C2] [ 33.620763][ C2] [ 33.620902][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.621062][ C2] RIP: 0010:default_idle+0xf/0x20 [ 33.621196][ 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 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 [ 33.621734][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 33.621900][ C2] RAX: 00000000000eab3d RBX: 1ffff9200002bfc1 RCX: ffffffffba332ea5 [ 33.622171][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb7aac1d4 [ 33.622363][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 33.622556][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 33.622751][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 33.622944][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.623073][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 33.623203][ C2] default_idle_call+0x6d/0xb0 [ 33.623403][ C2] cpuidle_idle_call+0x1f4/0x280 [ 33.623532][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.623663][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.623801][ C2] do_idle+0xf9/0x160 [ 33.623975][ C2] cpu_startup_entry+0x54/0x60 [ 33.624105][ C2] start_secondary+0x21c/0x2b0 [ 33.624240][ C2] ? __pfx_start_secondary+0x10/0x10 [ 33.624370][ C2] common_startup_64+0x12c/0x138 [ 33.624574][ C2]