[ 24.856587][ T266] ip (266) used greatest stack depth: 23200 bytes left [ 31.000809][ C1] [ 31.000914][ C1] ======================================================== [ 31.001148][ C1] WARNING: possible irq lock inversion dependency detected [ 31.001367][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 31.001520][ C1] -------------------------------------------------------- [ 31.001737][ C1] swapper/1/0 just changed the state of lock: [ 31.001924][ C1] ffff888005fa2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.002201][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.002423][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 31.002428][ C1] [ 31.002428][ C1] [ 31.002428][ C1] and interrupts could create inverse lock ordering between them. [ 31.002428][ C1] [ 31.002966][ C1] [ 31.002966][ C1] other info that might help us debug this: [ 31.003190][ C1] Possible interrupt unsafe locking scenario: [ 31.003190][ C1] [ 31.003415][ C1] CPU0 CPU1 [ 31.003572][ C1] ---- ---- [ 31.003718][ C1] lock(&p->alloc_lock); [ 31.003838][ C1] local_irq_disable(); [ 31.004019][ C1] lock(&ndev->lock); [ 31.004209][ C1] lock(&p->alloc_lock); [ 31.004397][ C1] [ 31.004510][ C1] lock(&ndev->lock); [ 31.004627][ C1] [ 31.004627][ C1] *** DEADLOCK *** [ 31.004627][ C1] [ 31.004845][ C1] 1 lock held by swapper/1/0: [ 31.004994][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.005274][ C1] [ 31.005274][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 31.005524][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.005684][ C1] HARDIRQ-ON-W at: [ 31.005805][ C1] __lock_acquire+0x797/0x1570 [ 31.005999][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.006206][ C1] _raw_spin_lock+0x30/0x40 [ 31.006396][ C1] set_mems_allowed+0x1d/0x210 [ 31.006586][ C1] kernel_init_freeable+0x72/0x310 [ 31.006774][ C1] kernel_init+0x20/0x200 [ 31.006967][ C1] ret_from_fork+0x31/0x70 [ 31.007166][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.007353][ C1] SOFTIRQ-ON-W at: [ 31.007467][ C1] __lock_acquire+0x797/0x1570 [ 31.007655][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.007842][ C1] _raw_spin_lock+0x30/0x40 [ 31.008033][ C1] set_mems_allowed+0x1d/0x210 [ 31.008222][ C1] kernel_init_freeable+0x72/0x310 [ 31.008408][ C1] kernel_init+0x20/0x200 [ 31.008589][ C1] ret_from_fork+0x31/0x70 [ 31.008774][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.008959][ C1] INITIAL USE at: [ 31.009074][ C1] __lock_acquire+0x797/0x1570 [ 31.009264][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.009449][ C1] _raw_spin_lock+0x30/0x40 [ 31.009635][ C1] set_mems_allowed+0x1d/0x210 [ 31.009820][ C1] kernel_init_freeable+0x72/0x310 [ 31.010005][ C1] kernel_init+0x20/0x200 [ 31.010195][ C1] ret_from_fork+0x31/0x70 [ 31.010386][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.010575][ C1] } [ 31.010653][ C1] ... key at: [] __key.388+0x0/0x40 [ 31.010877][ C1] ... acquired at: [ 31.010988][ C1] __lock_acquire+0xaf0/0x1570 [ 31.011145][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.011295][ C1] _raw_spin_lock+0x30/0x40 [ 31.011450][ C1] __get_task_comm+0x27/0x70 [ 31.011608][ C1] ref_tracker_alloc+0x2ee/0x490 [ 31.011757][ C1] netdev_get_by_index+0x5e/0x80 [ 31.011904][ C1] fib6_nh_init+0x3d8/0x1580 [ 31.012053][ C1] ip6_route_info_create+0xf18/0x17d0 [ 31.012206][ C1] ip6_route_add+0x1c/0x140 [ 31.012357][ C1] addrconf_prefix_route+0x2a6/0x430 [ 31.012509][ C1] addrconf_permanent_addr+0x32f/0x670 [ 31.012662][ C1] addrconf_notify+0x749/0xd60 [ 31.012816][ C1] notifier_call_chain+0xcd/0x150 [ 31.012966][ C1] __dev_notify_flags+0xe6/0x250 [ 31.013119][ C1] dev_change_flags+0xec/0x160 [ 31.013268][ C1] do_setlink+0x7d6/0x21e0 [ 31.013416][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.013567][ C1] rtnl_newlink+0x63/0xa0 [ 31.013718][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.013864][ C1] netlink_rcv_skb+0x130/0x360 [ 31.014017][ C1] netlink_unicast+0x449/0x710 [ 31.014174][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.014324][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.014475][ C1] ___sys_sendmsg+0xee/0x170 [ 31.014624][ C1] __sys_sendmsg+0xcd/0x170 [ 31.014776][ C1] do_syscall_64+0xc6/0x1e0 [ 31.014926][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.015115][ C1] [ 31.015189][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 31.015347][ C1] HARDIRQ-ON-W at: [ 31.015461][ C1] __lock_acquire+0x797/0x1570 [ 31.015646][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.015832][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.016022][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.016213][ C1] addrconf_notify+0x749/0xd60 [ 31.016400][ C1] notifier_call_chain+0xcd/0x150 [ 31.016589][ C1] __dev_notify_flags+0xe6/0x250 [ 31.016779][ C1] dev_change_flags+0xec/0x160 [ 31.016965][ C1] do_setlink+0x7d6/0x21e0 [ 31.017154][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.017345][ C1] rtnl_newlink+0x63/0xa0 [ 31.017531][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.017717][ C1] netlink_rcv_skb+0x130/0x360 [ 31.017904][ C1] netlink_unicast+0x449/0x710 [ 31.018096][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.018289][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.018478][ C1] ___sys_sendmsg+0xee/0x170 [ 31.018671][ C1] __sys_sendmsg+0xcd/0x170 [ 31.018863][ C1] do_syscall_64+0xc6/0x1e0 [ 31.019051][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.019288][ C1] HARDIRQ-ON-R at: [ 31.019400][ C1] __lock_acquire+0x797/0x1570 [ 31.019586][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.019773][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.019965][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.020161][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.020354][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.020543][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.020730][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.020956][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.021145][ C1] register_netdevice+0x1177/0x1690 [ 31.021338][ C1] register_netdev+0x20/0x40 [ 31.021530][ C1] vti6_init_net+0x25d/0x380 [ 31.021720][ C1] ops_init+0x9b/0x560 [ 31.021873][ C1] register_pernet_operations+0x2db/0x710 [ 31.022101][ C1] register_pernet_device+0x2a/0x60 [ 31.022291][ C1] vti6_tunnel_init+0x18/0x110 [ 31.022480][ C1] do_one_initcall+0x8d/0x1e0 [ 31.022753][ C1] do_initcalls+0x1b2/0x3e0 [ 31.022943][ C1] kernel_init_freeable+0x232/0x310 [ 31.023134][ C1] kernel_init+0x20/0x200 [ 31.023435][ C1] ret_from_fork+0x31/0x70 [ 31.023624][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.023808][ C1] IN-SOFTIRQ-W at: [ 31.023920][ C1] __lock_acquire+0x797/0x1570 [ 31.024193][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.024384][ C1] _raw_write_lock+0x30/0x40 [ 31.024575][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.024848][ C1] call_timer_fn+0x13b/0x230 [ 31.025037][ C1] __run_timers+0x545/0x810 [ 31.025231][ C1] timer_expire_remote+0x9b/0xe0 [ 31.025418][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.025607][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.025799][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.025984][ C1] __do_softirq+0x1f8/0x5df [ 31.026340][ C1] irq_exit_rcu+0x97/0xc0 [ 31.026531][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.026764][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.027075][ C1] default_idle+0xf/0x20 [ 31.027262][ C1] default_idle_call+0x6d/0xb0 [ 31.027452][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.027721][ C1] do_idle+0xf9/0x160 [ 31.027872][ C1] cpu_startup_entry+0x54/0x60 [ 31.028060][ C1] start_secondary+0x21c/0x2b0 [ 31.028255][ C1] common_startup_64+0x12c/0x138 [ 31.028522][ C1] INITIAL USE at: [ 31.028636][ C1] __lock_acquire+0x797/0x1570 [ 31.028827][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.029015][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.029284][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.029479][ C1] addrconf_notify+0x749/0xd60 [ 31.029663][ C1] notifier_call_chain+0xcd/0x150 [ 31.029930][ C1] __dev_notify_flags+0xe6/0x250 [ 31.030122][ C1] dev_change_flags+0xec/0x160 [ 31.030308][ C1] do_setlink+0x7d6/0x21e0 [ 31.030496][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.030765][ C1] rtnl_newlink+0x63/0xa0 [ 31.030954][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.031144][ C1] netlink_rcv_skb+0x130/0x360 [ 31.031409][ C1] netlink_unicast+0x449/0x710 [ 31.031604][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.031791][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.032056][ C1] ___sys_sendmsg+0xee/0x170 [ 31.032247][ C1] __sys_sendmsg+0xcd/0x170 [ 31.032434][ C1] do_syscall_64+0xc6/0x1e0 [ 31.032622][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.032932][ C1] INITIAL READ USE at: [ 31.033046][ C1] __lock_acquire+0x797/0x1570 [ 31.033232][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.033417][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.033606][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.033829][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.034012][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.034281][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.034508][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.034732][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.035002][ C1] register_netdevice+0x1177/0x1690 [ 31.035235][ C1] register_netdev+0x20/0x40 [ 31.035426][ C1] vti6_init_net+0x25d/0x380 [ 31.035617][ C1] ops_init+0x9b/0x560 [ 31.035803][ C1] register_pernet_operations+0x2db/0x710 [ 31.036031][ C1] register_pernet_device+0x2a/0x60 [ 31.036339][ C1] vti6_tunnel_init+0x18/0x110 [ 31.036527][ C1] do_one_initcall+0x8d/0x1e0 [ 31.036709][ C1] do_initcalls+0x1b2/0x3e0 [ 31.036975][ C1] kernel_init_freeable+0x232/0x310 [ 31.037196][ C1] kernel_init+0x20/0x200 [ 31.037388][ C1] ret_from_fork+0x31/0x70 [ 31.037734][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.037921][ C1] } [ 31.037997][ C1] ... key at: [] __key.37+0x0/0x40 [ 31.038222][ C1] ... acquired at: [ 31.038331][ C1] mark_lock+0x28d/0x3e0 [ 31.038559][ C1] mark_usage+0xd9/0x2a0 [ 31.038708][ C1] __lock_acquire+0x797/0x1570 [ 31.038859][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.039007][ C1] _raw_write_lock+0x30/0x40 [ 31.039232][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.039380][ C1] call_timer_fn+0x13b/0x230 [ 31.039530][ C1] __run_timers+0x545/0x810 [ 31.039683][ C1] timer_expire_remote+0x9b/0xe0 [ 31.039909][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.040056][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.040210][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.040356][ C1] __do_softirq+0x1f8/0x5df [ 31.040582][ C1] irq_exit_rcu+0x97/0xc0 [ 31.040731][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.040914][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.041097][ C1] default_idle+0xf/0x20 [ 31.041322][ C1] default_idle_call+0x6d/0xb0 [ 31.041474][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.041638][ C1] do_idle+0xf9/0x160 [ 31.041751][ C1] cpu_startup_entry+0x54/0x60 [ 31.041899][ C1] start_secondary+0x21c/0x2b0 [ 31.042127][ C1] common_startup_64+0x12c/0x138 [ 31.042279][ C1] [ 31.042353][ C1] [ 31.042353][ C1] stack backtrace: [ 31.042536][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 31.042845][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.043182][ C1] Call Trace: [ 31.043299][ C1] [ 31.043376][ C1] dump_stack_lvl+0x82/0xd0 [ 31.043527][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.043709][ C1] ? kernel_text_address+0x17/0xe0 [ 31.043862][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.044126][ C1] ? __pfx_usage_skip+0x10/0x10 [ 31.044279][ C1] ? __pfx_usage_match+0x10/0x10 [ 31.044426][ C1] ? arch_stack_walk+0x8c/0xf0 [ 31.044576][ C1] mark_lock_irq+0x4cd/0xa10 [ 31.044805][ C1] ? common_startup_64+0x12c/0x138 [ 31.044958][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.045110][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.045260][ C1] ? save_trace+0x8f/0x5b0 [ 31.045409][ C1] mark_lock+0x28d/0x3e0 [ 31.045523][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.045672][ C1] mark_usage+0xd9/0x2a0 [ 31.045786][ C1] __lock_acquire+0x797/0x1570 [ 31.045934][ C1] ? __pfx_validate_chain+0x10/0x10 [ 31.046164][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.046312][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.046459][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.046605][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.046758][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 31.046985][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.047132][ C1] ? lock_acquire+0x32/0xc0 [ 31.047279][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.047430][ C1] _raw_write_lock+0x30/0x40 [ 31.047657][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.047805][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.047954][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.048105][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.048334][ C1] ? call_timer_fn+0xe8/0x230 [ 31.048482][ C1] ? lock_acquire+0x32/0xc0 [ 31.048627][ C1] ? call_timer_fn+0xe8/0x230 [ 31.048778][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.049081][ C1] call_timer_fn+0x13b/0x230 [ 31.049229][ C1] ? call_timer_fn+0xe8/0x230 [ 31.049381][ C1] ? call_timer_fn+0xe8/0x230 [ 31.049528][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 31.049681][ C1] ? mark_lock+0x38/0x3e0 [ 31.049887][ C1] __run_timers+0x545/0x810 [ 31.050032][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.050187][ C1] ? __pfx___run_timers+0x10/0x10 [ 31.050333][ C1] ? __lock_release+0x103/0x460 [ 31.050481][ C1] ? do_raw_spin_lock+0x131/0x270 [ 31.050627][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.050774][ C1] ? lock_acquire+0x32/0xc0 [ 31.050920][ C1] ? timer_expire_remote+0x93/0xe0 [ 31.051156][ C1] timer_expire_remote+0x9b/0xe0 [ 31.051302][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.051453][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.051641][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.051866][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.052013][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.052166][ C1] __do_softirq+0x1f8/0x5df [ 31.052318][ C1] irq_exit_rcu+0x97/0xc0 [ 31.052430][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.052671][ C1] [ 31.052754][ C1] [ 31.052837][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.053030][ C1] RIP: 0010:default_idle+0xf/0x20 [ 31.053198][ 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 [ 31.053829][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 31.054116][ C1] RAX: 00000000000740b3 RBX: 1ffff92000029fc1 RCX: ffffffffa2f32ea5 [ 31.054355][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa06ac1d4 [ 31.054593][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 31.054914][ C1] R10: ffff8880360b84e3 R11: ffff8880360bde40 R12: 0000000000000000 [ 31.055152][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 31.055505][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.055732][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 31.055880][ C1] default_idle_call+0x6d/0xb0 [ 31.056027][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.056172][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.056321][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.056547][ C1] do_idle+0xf9/0x160 [ 31.056659][ C1] cpu_startup_entry+0x54/0x60 [ 31.056806][ C1] start_secondary+0x21c/0x2b0 [ 31.056953][ C1] ? __pfx_start_secondary+0x10/0x10 [ 31.057177][ C1] common_startup_64+0x12c/0x138 [ 31.057325][ C1]