[ 28.280195][ T267] ip (267) used greatest stack depth: 24064 bytes left [ 34.798292][ T301] ip (301) used greatest stack depth: 23504 bytes left [ 52.009622][ C3] [ 52.009845][ C3] ======================================================== [ 52.010075][ C3] WARNING: possible irq lock inversion dependency detected [ 52.010298][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 52.010452][ C3] -------------------------------------------------------- [ 52.010672][ C3] swapper/3/0 just changed the state of lock: [ 52.010858][ C3] ffff888006488d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 52.011136][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 52.011362][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 52.011366][ C3] [ 52.011366][ C3] [ 52.011366][ C3] and interrupts could create inverse lock ordering between them. [ 52.011366][ C3] [ 52.011916][ C3] [ 52.011916][ C3] other info that might help us debug this: [ 52.012139][ C3] Possible interrupt unsafe locking scenario: [ 52.012139][ C3] [ 52.012359][ C3] CPU0 CPU1 [ 52.012513][ C3] ---- ---- [ 52.012660][ C3] lock(&p->alloc_lock); [ 52.012777][ C3] local_irq_disable(); [ 52.012963][ C3] lock(&ndev->lock); [ 52.013157][ C3] lock(&p->alloc_lock); [ 52.013345][ C3] [ 52.013458][ C3] lock(&ndev->lock); [ 52.013575][ C3] [ 52.013575][ C3] *** DEADLOCK *** [ 52.013575][ C3] [ 52.013798][ C3] 1 lock held by swapper/3/0: [ 52.013948][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 52.014222][ C3] [ 52.014222][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 52.014504][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 52.014664][ C3] HARDIRQ-ON-W at: [ 52.014780][ C3] __lock_acquire+0x797/0x1570 [ 52.014977][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.015168][ C3] _raw_spin_lock+0x30/0x40 [ 52.015365][ C3] set_mems_allowed+0x1d/0x210 [ 52.015560][ C3] kernel_init_freeable+0x72/0x310 [ 52.015755][ C3] kernel_init+0x20/0x200 [ 52.015948][ C3] ret_from_fork+0x31/0x70 [ 52.016148][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.016337][ C3] SOFTIRQ-ON-W at: [ 52.016451][ C3] __lock_acquire+0x797/0x1570 [ 52.016641][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.016833][ C3] _raw_spin_lock+0x30/0x40 [ 52.017020][ C3] set_mems_allowed+0x1d/0x210 [ 52.017210][ C3] kernel_init_freeable+0x72/0x310 [ 52.017399][ C3] kernel_init+0x20/0x200 [ 52.017586][ C3] ret_from_fork+0x31/0x70 [ 52.017777][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.017964][ C3] INITIAL USE at: [ 52.018077][ C3] __lock_acquire+0x797/0x1570 [ 52.018263][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.018451][ C3] _raw_spin_lock+0x30/0x40 [ 52.018636][ C3] set_mems_allowed+0x1d/0x210 [ 52.018820][ C3] kernel_init_freeable+0x72/0x310 [ 52.019026][ C3] kernel_init+0x20/0x200 [ 52.019215][ C3] ret_from_fork+0x31/0x70 [ 52.019407][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.019597][ C3] } [ 52.019677][ C3] ... key at: [] __key.388+0x0/0x40 [ 52.019906][ C3] ... acquired at: [ 52.020024][ C3] __lock_acquire+0xaf0/0x1570 [ 52.020181][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.020332][ C3] _raw_spin_lock+0x30/0x40 [ 52.020486][ C3] __get_task_comm+0x27/0x70 [ 52.020639][ C3] ref_tracker_alloc+0x2ee/0x490 [ 52.020794][ C3] netdev_get_by_index+0x5e/0x80 [ 52.020950][ C3] fib6_nh_init+0x3d8/0x1580 [ 52.021105][ C3] ip6_route_info_create+0xf18/0x17d0 [ 52.021258][ C3] addrconf_f6i_alloc+0x265/0x560 [ 52.021412][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 52.021563][ C3] addrconf_join_anycast+0x1c0/0x220 [ 52.021713][ C3] dev_forward_change+0x2a6/0x7b0 [ 52.021862][ C3] addrconf_fixup_forwarding+0x152/0x460 [ 52.022047][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 52.022198][ C3] proc_sys_call_handler+0x403/0x5e0 [ 52.022352][ C3] vfs_write+0x9e5/0x10a0 [ 52.022505][ C3] ksys_write+0xf5/0x1e0 [ 52.022657][ C3] do_syscall_64+0xc6/0x1e0 [ 52.022809][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.023012][ C3] [ 52.023092][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 52.023252][ C3] HARDIRQ-ON-W at: [ 52.023364][ C3] __lock_acquire+0x797/0x1570 [ 52.023555][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.023747][ C3] _raw_write_lock_bh+0x38/0x50 [ 52.023937][ C3] addrconf_permanent_addr+0x6e/0x670 [ 52.024127][ C3] addrconf_notify+0x749/0xd60 [ 52.024319][ C3] notifier_call_chain+0xcd/0x150 [ 52.024538][ C3] __dev_notify_flags+0xe6/0x250 [ 52.024735][ C3] dev_change_flags+0xec/0x160 [ 52.024922][ C3] do_setlink+0x7d6/0x21e0 [ 52.025113][ C3] __rtnl_newlink+0xaa7/0xd80 [ 52.025303][ C3] rtnl_newlink+0x63/0xa0 [ 52.025498][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.025687][ C3] netlink_rcv_skb+0x130/0x360 [ 52.025880][ C3] netlink_unicast+0x449/0x710 [ 52.026070][ C3] netlink_sendmsg+0x723/0xbe0 [ 52.026260][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 52.026451][ C3] ___sys_sendmsg+0xee/0x170 [ 52.026638][ C3] __sys_sendmsg+0xcd/0x170 [ 52.026830][ C3] do_syscall_64+0xc6/0x1e0 [ 52.027018][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.027243][ C3] HARDIRQ-ON-R at: [ 52.027358][ C3] __lock_acquire+0x797/0x1570 [ 52.027549][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.027736][ C3] _raw_read_lock_bh+0x44/0x80 [ 52.027922][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 52.028114][ C3] inet6_fill_link_af+0x5e/0xe0 [ 52.028304][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 52.028493][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 52.028682][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 52.028910][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 52.029100][ C3] register_netdevice+0x1177/0x1690 [ 52.029293][ C3] register_netdev+0x20/0x40 [ 52.029483][ C3] vti6_init_net+0x25d/0x380 [ 52.029676][ C3] ops_init+0x9b/0x560 [ 52.029827][ C3] register_pernet_operations+0x2db/0x710 [ 52.030053][ C3] register_pernet_device+0x2a/0x60 [ 52.030243][ C3] vti6_tunnel_init+0x18/0x110 [ 52.030437][ C3] do_one_initcall+0x8d/0x1e0 [ 52.030626][ C3] do_initcalls+0x1b2/0x3e0 [ 52.030817][ C3] kernel_init_freeable+0x232/0x310 [ 52.031014][ C3] kernel_init+0x20/0x200 [ 52.031202][ C3] ret_from_fork+0x31/0x70 [ 52.031390][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.031579][ C3] IN-SOFTIRQ-W at: [ 52.031696][ C3] __lock_acquire+0x797/0x1570 [ 52.031888][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.032079][ C3] _raw_write_lock+0x30/0x40 [ 52.032275][ C3] addrconf_rs_timer+0xa9/0x730 [ 52.032461][ C3] call_timer_fn+0x13b/0x230 [ 52.032646][ C3] __run_timers+0x545/0x810 [ 52.032836][ C3] timer_expire_remote+0x9b/0xe0 [ 52.033039][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 52.033229][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 52.033421][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 52.033610][ C3] __do_softirq+0x1f8/0x5df [ 52.033801][ C3] irq_exit_rcu+0x97/0xc0 [ 52.033994][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.034226][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.034466][ C3] default_idle+0xf/0x20 [ 52.034659][ C3] default_idle_call+0x6d/0xb0 [ 52.034848][ C3] cpuidle_idle_call+0x1f4/0x280 [ 52.035037][ C3] do_idle+0xf9/0x160 [ 52.035188][ C3] cpu_startup_entry+0x54/0x60 [ 52.035380][ C3] start_secondary+0x21c/0x2b0 [ 52.035573][ C3] common_startup_64+0x12c/0x138 [ 52.035774][ C3] INITIAL USE at: [ 52.035885][ C3] __lock_acquire+0x797/0x1570 [ 52.036080][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.036261][ C3] _raw_write_lock_bh+0x38/0x50 [ 52.036450][ C3] addrconf_permanent_addr+0x6e/0x670 [ 52.036638][ C3] addrconf_notify+0x749/0xd60 [ 52.036823][ C3] notifier_call_chain+0xcd/0x150 [ 52.037026][ C3] __dev_notify_flags+0xe6/0x250 [ 52.037217][ C3] dev_change_flags+0xec/0x160 [ 52.037407][ C3] do_setlink+0x7d6/0x21e0 [ 52.037597][ C3] __rtnl_newlink+0xaa7/0xd80 [ 52.037790][ C3] rtnl_newlink+0x63/0xa0 [ 52.037981][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 52.038169][ C3] netlink_rcv_skb+0x130/0x360 [ 52.038360][ C3] netlink_unicast+0x449/0x710 [ 52.038554][ C3] netlink_sendmsg+0x723/0xbe0 [ 52.038742][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 52.038932][ C3] ___sys_sendmsg+0xee/0x170 [ 52.039120][ C3] __sys_sendmsg+0xcd/0x170 [ 52.039312][ C3] do_syscall_64+0xc6/0x1e0 [ 52.039498][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 52.039725][ C3] INITIAL READ USE at: [ 52.039839][ C3] __lock_acquire+0x797/0x1570 [ 52.040027][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.040227][ C3] _raw_read_lock_bh+0x44/0x80 [ 52.040418][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 52.040644][ C3] inet6_fill_link_af+0x5e/0xe0 [ 52.040831][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 52.041017][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 52.041327][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 52.041551][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 52.041739][ C3] register_netdevice+0x1177/0x1690 [ 52.042045][ C3] register_netdev+0x20/0x40 [ 52.042233][ C3] vti6_init_net+0x25d/0x380 [ 52.042421][ C3] ops_init+0x9b/0x560 [ 52.042692][ C3] register_pernet_operations+0x2db/0x710 [ 52.042920][ C3] register_pernet_device+0x2a/0x60 [ 52.043144][ C3] vti6_tunnel_init+0x18/0x110 [ 52.043489][ C3] do_one_initcall+0x8d/0x1e0 [ 52.043677][ C3] do_initcalls+0x1b2/0x3e0 [ 52.043865][ C3] kernel_init_freeable+0x232/0x310 [ 52.044091][ C3] kernel_init+0x20/0x200 [ 52.044361][ C3] ret_from_fork+0x31/0x70 [ 52.044576][ C3] ret_from_fork_asm+0x1a/0x30 [ 52.044766][ C3] } [ 52.044843][ C3] ... key at: [] __key.37+0x0/0x40 [ 52.045146][ C3] ... acquired at: [ 52.045259][ C3] mark_lock+0x28d/0x3e0 [ 52.045411][ C3] mark_usage+0xd9/0x2a0 [ 52.045565][ C3] __lock_acquire+0x797/0x1570 [ 52.045803][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.045953][ C3] _raw_write_lock+0x30/0x40 [ 52.046104][ C3] addrconf_rs_timer+0xa9/0x730 [ 52.046252][ C3] call_timer_fn+0x13b/0x230 [ 52.046479][ C3] __run_timers+0x545/0x810 [ 52.046626][ C3] timer_expire_remote+0x9b/0xe0 [ 52.046774][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 52.046927][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 52.047154][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 52.047303][ C3] __do_softirq+0x1f8/0x5df [ 52.047451][ C3] irq_exit_rcu+0x97/0xc0 [ 52.047600][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.047863][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.048051][ C3] default_idle+0xf/0x20 [ 52.048198][ C3] default_idle_call+0x6d/0xb0 [ 52.048350][ C3] cpuidle_idle_call+0x1f4/0x280 [ 52.048578][ C3] do_idle+0xf9/0x160 [ 52.048691][ C3] cpu_startup_entry+0x54/0x60 [ 52.048841][ C3] start_secondary+0x21c/0x2b0 [ 52.048992][ C3] common_startup_64+0x12c/0x138 [ 52.049143][ C3] [ 52.049295][ C3] [ 52.049295][ C3] stack backtrace: [ 52.049479][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 52.049705][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 52.050111][ C3] Call Trace: [ 52.050229][ C3] [ 52.050310][ C3] dump_stack_lvl+0x82/0xd0 [ 52.050467][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 52.050735][ C3] ? kernel_text_address+0x17/0xe0 [ 52.050888][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 52.051079][ C3] ? __pfx_usage_skip+0x10/0x10 [ 52.051228][ C3] ? __pfx_usage_match+0x10/0x10 [ 52.051453][ C3] ? arch_stack_walk+0x8c/0xf0 [ 52.051605][ C3] mark_lock_irq+0x4cd/0xa10 [ 52.051754][ C3] ? common_startup_64+0x12c/0x138 [ 52.051903][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 52.052128][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 52.052279][ C3] ? save_trace+0x8f/0x5b0 [ 52.052432][ C3] mark_lock+0x28d/0x3e0 [ 52.052545][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 52.052694][ C3] mark_usage+0xd9/0x2a0 [ 52.052884][ C3] __lock_acquire+0x797/0x1570 [ 52.053032][ C3] ? __pfx_validate_chain+0x10/0x10 [ 52.053181][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.053329][ C3] lock_acquire.part.0+0xeb/0x330 [ 52.053557][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 52.053710][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 52.053860][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 52.054009][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 52.054158][ C3] ? lock_acquire+0x32/0xc0 [ 52.054385][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 52.054551][ C3] _raw_write_lock+0x30/0x40 [ 52.054701][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 52.054847][ C3] addrconf_rs_timer+0xa9/0x730 [ 52.055152][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 52.055308][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.055457][ C3] ? call_timer_fn+0xe8/0x230 [ 52.055610][ C3] ? lock_acquire+0x32/0xc0 [ 52.055843][ C3] ? call_timer_fn+0xe8/0x230 [ 52.055992][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.056142][ C3] call_timer_fn+0x13b/0x230 [ 52.056291][ C3] ? call_timer_fn+0xe8/0x230 [ 52.056516][ C3] ? call_timer_fn+0xe8/0x230 [ 52.056668][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 52.056815][ C3] ? mark_lock+0x38/0x3e0 [ 52.056931][ C3] __run_timers+0x545/0x810 [ 52.057080][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 52.057307][ C3] ? __pfx___run_timers+0x10/0x10 [ 52.057455][ C3] ? __lock_release+0x103/0x460 [ 52.057602][ C3] ? do_raw_spin_lock+0x131/0x270 [ 52.057748][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 52.057972][ C3] ? lock_acquire+0x32/0xc0 [ 52.058125][ C3] ? timer_expire_remote+0x93/0xe0 [ 52.058274][ C3] timer_expire_remote+0x9b/0xe0 [ 52.058428][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 52.058656][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 52.058860][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 52.059012][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 52.059167][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 52.059397][ C3] __do_softirq+0x1f8/0x5df [ 52.059547][ C3] irq_exit_rcu+0x97/0xc0 [ 52.059659][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 52.059813][ C3] [ 52.059890][ C3] [ 52.059965][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 52.060226][ C3] RIP: 0010:default_idle+0xf/0x20 [ 52.060378][ 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 [ 52.060990][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000246 [ 52.061181][ C3] RAX: 000000000009e3ed RBX: 1ffff9200002dfc1 RCX: ffffffff88732ea5 [ 52.061408][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff85eac1d4 [ 52.061712][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 52.061941][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 52.062165][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 52.062466][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 52.062614][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 52.062764][ C3] default_idle_call+0x6d/0xb0 [ 52.062988][ C3] cpuidle_idle_call+0x1f4/0x280 [ 52.063142][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 52.063291][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 52.063440][ C3] do_idle+0xf9/0x160 [ 52.063553][ C3] cpu_startup_entry+0x54/0x60 [ 52.063778][ C3] start_secondary+0x21c/0x2b0 [ 52.063927][ C3] ? __pfx_start_secondary+0x10/0x10 [ 52.064075][ C3] common_startup_64+0x12c/0x138 [ 52.064225][ C3]