[ 24.818691][ T258] ip (258) used greatest stack depth: 23040 bytes left [ 36.042932][ C1] [ 36.043094][ C1] ======================================================== [ 36.043361][ C1] WARNING: possible irq lock inversion dependency detected [ 36.043608][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 36.043781][ C1] -------------------------------------------------------- [ 36.044053][ C1] swapper/1/0 just changed the state of lock: [ 36.044255][ C1] ffff888002906d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.044539][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.044803][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 36.044807][ C1] [ 36.044807][ C1] [ 36.044807][ C1] and interrupts could create inverse lock ordering between them. [ 36.044807][ C1] [ 36.045407][ C1] [ 36.045407][ C1] other info that might help us debug this: [ 36.045639][ C1] Possible interrupt unsafe locking scenario: [ 36.045639][ C1] [ 36.045868][ C1] CPU0 CPU1 [ 36.046025][ C1] ---- ---- [ 36.046200][ C1] lock(&p->alloc_lock); [ 36.046322][ C1] local_irq_disable(); [ 36.046516][ C1] lock(&ndev->lock); [ 36.046736][ C1] lock(&p->alloc_lock); [ 36.046933][ C1] [ 36.047074][ C1] lock(&ndev->lock); [ 36.047191][ C1] [ 36.047191][ C1] *** DEADLOCK *** [ 36.047191][ C1] [ 36.047446][ C1] 1 lock held by swapper/1/0: [ 36.047629][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.047945][ C1] [ 36.047945][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 36.048237][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.048402][ C1] HARDIRQ-ON-W at: [ 36.048536][ C1] __lock_acquire+0x797/0x1570 [ 36.048766][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.048964][ C1] _raw_spin_lock+0x30/0x40 [ 36.049191][ C1] set_mems_allowed+0x1d/0x210 [ 36.049393][ C1] kernel_init_freeable+0x72/0x310 [ 36.049627][ C1] kernel_init+0x20/0x200 [ 36.049848][ C1] ret_from_fork+0x31/0x70 [ 36.050049][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.050262][ C1] SOFTIRQ-ON-W at: [ 36.050380][ C1] __lock_acquire+0x797/0x1570 [ 36.050582][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.050784][ C1] _raw_spin_lock+0x30/0x40 [ 36.050996][ C1] set_mems_allowed+0x1d/0x210 [ 36.051191][ C1] kernel_init_freeable+0x72/0x310 [ 36.051400][ C1] kernel_init+0x20/0x200 [ 36.051593][ C1] ret_from_fork+0x31/0x70 [ 36.051801][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.052004][ C1] INITIAL USE at: [ 36.052136][ C1] __lock_acquire+0x797/0x1570 [ 36.052334][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.052548][ C1] _raw_spin_lock+0x30/0x40 [ 36.052746][ C1] set_mems_allowed+0x1d/0x210 [ 36.052951][ C1] kernel_init_freeable+0x72/0x310 [ 36.053145][ C1] kernel_init+0x20/0x200 [ 36.053363][ C1] ret_from_fork+0x31/0x70 [ 36.053558][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.053766][ C1] } [ 36.053846][ C1] ... key at: [] __key.387+0x0/0x40 [ 36.054093][ C1] ... acquired at: [ 36.054208][ C1] __lock_acquire+0xaf0/0x1570 [ 36.054379][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.054535][ C1] _raw_spin_lock+0x30/0x40 [ 36.054689][ C1] __get_task_comm+0x27/0x70 [ 36.054859][ C1] ref_tracker_alloc+0x2ee/0x490 [ 36.055016][ C1] netdev_get_by_index+0x5e/0x80 [ 36.055186][ C1] fib6_nh_init+0x3d8/0x15b0 [ 36.055340][ C1] ip6_route_info_create+0xf18/0x17d0 [ 36.055510][ C1] addrconf_f6i_alloc+0x265/0x560 [ 36.055667][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.055834][ C1] addrconf_join_anycast+0x1c0/0x220 [ 36.056005][ C1] dev_forward_change+0x2a6/0x7b0 [ 36.056179][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 36.056398][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 36.056560][ C1] proc_sys_call_handler+0x403/0x5e0 [ 36.056742][ C1] vfs_write+0x9e5/0x10a0 [ 36.056932][ C1] ksys_write+0xf5/0x1e0 [ 36.057104][ C1] do_syscall_64+0xc6/0x1e0 [ 36.057283][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.057491][ C1] [ 36.057584][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 36.057747][ C1] HARDIRQ-ON-W at: [ 36.057885][ C1] __lock_acquire+0x797/0x1570 [ 36.058096][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.058293][ C1] _raw_write_lock_bh+0x38/0x50 [ 36.058553][ C1] addrconf_permanent_addr+0x6e/0x670 [ 36.058766][ C1] addrconf_notify+0x749/0xd60 [ 36.058961][ C1] notifier_call_chain+0xcd/0x150 [ 36.059170][ C1] __dev_notify_flags+0xe6/0x250 [ 36.059364][ C1] dev_change_flags+0xec/0x160 [ 36.059588][ C1] do_setlink+0x7d6/0x21e0 [ 36.059807][ C1] __rtnl_newlink+0xaa7/0xd80 [ 36.060041][ C1] rtnl_newlink+0x63/0xa0 [ 36.060265][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.060474][ C1] netlink_rcv_skb+0x130/0x360 [ 36.060711][ C1] netlink_unicast+0x449/0x710 [ 36.060911][ C1] netlink_sendmsg+0x723/0xbe0 [ 36.061147][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 36.061351][ C1] ___sys_sendmsg+0xee/0x170 [ 36.061567][ C1] __sys_sendmsg+0xcd/0x170 [ 36.061784][ C1] do_syscall_64+0xc6/0x1e0 [ 36.062000][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.062274][ C1] HARDIRQ-ON-R at: [ 36.062410][ C1] __lock_acquire+0x797/0x1570 [ 36.062625][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.062845][ C1] _raw_read_lock_bh+0x44/0x80 [ 36.063049][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.063267][ C1] inet6_fill_link_af+0x5e/0xe0 [ 36.063473][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.063674][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.063890][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.064135][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 36.064375][ C1] register_netdevice+0x1177/0x1690 [ 36.064571][ C1] register_netdev+0x20/0x40 [ 36.064801][ C1] sit_init_net+0x250/0x4f0 [ 36.065018][ C1] ops_init+0x9b/0x560 [ 36.065173][ C1] register_pernet_operations+0x2db/0x710 [ 36.065438][ C1] register_pernet_device+0x2a/0x60 [ 36.065641][ C1] sit_init+0x23/0xe0 [ 36.065799][ C1] do_one_initcall+0x8d/0x1e0 [ 36.066006][ C1] do_initcalls+0x1b2/0x3e0 [ 36.066222][ C1] kernel_init_freeable+0x232/0x310 [ 36.066418][ C1] kernel_init+0x20/0x200 [ 36.066630][ C1] ret_from_fork+0x31/0x70 [ 36.066828][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.067054][ C1] IN-SOFTIRQ-W at: [ 36.067171][ C1] __lock_acquire+0x797/0x1570 [ 36.067378][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.067584][ C1] _raw_write_lock+0x30/0x40 [ 36.067797][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.067992][ C1] call_timer_fn+0x13b/0x230 [ 36.068192][ C1] __run_timers+0x545/0x810 [ 36.068407][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.068632][ C1] __do_softirq+0x1f8/0x5df [ 36.068833][ C1] irq_exit_rcu+0x97/0xc0 [ 36.069047][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.069292][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.069548][ C1] default_idle+0xf/0x20 [ 36.069746][ C1] default_idle_call+0x6d/0xb0 [ 36.069959][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.070169][ C1] do_idle+0xf9/0x160 [ 36.070341][ C1] cpu_startup_entry+0x54/0x60 [ 36.070544][ C1] start_secondary+0x21c/0x2b0 [ 36.070769][ C1] common_startup_64+0x12c/0x138 [ 36.070965][ C1] INITIAL USE at: [ 36.071100][ C1] __lock_acquire+0x797/0x1570 [ 36.071316][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.071549][ C1] _raw_write_lock_bh+0x38/0x50 [ 36.071747][ C1] addrconf_permanent_addr+0x6e/0x670 [ 36.071969][ C1] addrconf_notify+0x749/0xd60 [ 36.072169][ C1] notifier_call_chain+0xcd/0x150 [ 36.072390][ C1] __dev_notify_flags+0xe6/0x250 [ 36.072598][ C1] dev_change_flags+0xec/0x160 [ 36.072810][ C1] do_setlink+0x7d6/0x21e0 [ 36.073038][ C1] __rtnl_newlink+0xaa7/0xd80 [ 36.073243][ C1] rtnl_newlink+0x63/0xa0 [ 36.073455][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.073648][ C1] netlink_rcv_skb+0x130/0x360 [ 36.073858][ C1] netlink_unicast+0x449/0x710 [ 36.074063][ C1] netlink_sendmsg+0x723/0xbe0 [ 36.074272][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 36.074469][ C1] ___sys_sendmsg+0xee/0x170 [ 36.074683][ C1] __sys_sendmsg+0xcd/0x170 [ 36.074879][ C1] do_syscall_64+0xc6/0x1e0 [ 36.075092][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.075330][ C1] INITIAL READ USE at: [ 36.075452][ C1] __lock_acquire+0x797/0x1570 [ 36.075661][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.075871][ C1] _raw_read_lock_bh+0x44/0x80 [ 36.076080][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.076332][ C1] inet6_fill_link_af+0x5e/0xe0 [ 36.076528][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.076746][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.076982][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.077218][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 36.077422][ C1] register_netdevice+0x1177/0x1690 [ 36.077658][ C1] register_netdev+0x20/0x40 [ 36.077853][ C1] sit_init_net+0x250/0x4f0 [ 36.078056][ C1] ops_init+0x9b/0x560 [ 36.078269][ C1] register_pernet_operations+0x2db/0x710 [ 36.078538][ C1] register_pernet_device+0x2a/0x60 [ 36.078778][ C1] sit_init+0x23/0xe0 [ 36.078995][ C1] do_one_initcall+0x8d/0x1e0 [ 36.079193][ C1] do_initcalls+0x1b2/0x3e0 [ 36.079405][ C1] kernel_init_freeable+0x232/0x310 [ 36.079643][ C1] kernel_init+0x20/0x200 [ 36.079855][ C1] ret_from_fork+0x31/0x70 [ 36.080058][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.080286][ C1] } [ 36.080367][ C1] ... key at: [] __key.37+0x0/0x40 [ 36.080634][ C1] ... acquired at: [ 36.080751][ C1] mark_lock+0x28d/0x3e0 [ 36.080963][ C1] mark_usage+0xd9/0x2a0 [ 36.081131][ C1] __lock_acquire+0x797/0x1570 [ 36.081320][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.081498][ C1] _raw_write_lock+0x30/0x40 [ 36.081662][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.081839][ C1] call_timer_fn+0x13b/0x230 [ 36.082004][ C1] __run_timers+0x545/0x810 [ 36.082187][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.082358][ C1] __do_softirq+0x1f8/0x5df [ 36.082516][ C1] irq_exit_rcu+0x97/0xc0 [ 36.082703][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.082905][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.083123][ C1] default_idle+0xf/0x20 [ 36.083295][ C1] default_idle_call+0x6d/0xb0 [ 36.083462][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.083632][ C1] do_idle+0xf9/0x160 [ 36.083767][ C1] cpu_startup_entry+0x54/0x60 [ 36.083941][ C1] start_secondary+0x21c/0x2b0 [ 36.084108][ C1] common_startup_64+0x12c/0x138 [ 36.084282][ C1] [ 36.084361][ C1] [ 36.084361][ C1] stack backtrace: [ 36.084584][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 36.084836][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.085194][ C1] Call Trace: [ 36.085314][ C1] [ 36.085399][ C1] dump_stack_lvl+0x82/0xd0 [ 36.085555][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.085752][ C1] ? kernel_text_address+0x17/0xe0 [ 36.085932][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.086134][ C1] ? __pfx_usage_skip+0x10/0x10 [ 36.086302][ C1] ? __pfx_usage_match+0x10/0x10 [ 36.086455][ C1] ? arch_stack_walk+0x8c/0xf0 [ 36.086624][ C1] mark_lock_irq+0x4cd/0xa10 [ 36.086793][ C1] ? common_startup_64+0x12c/0x138 [ 36.086959][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.087124][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 36.087286][ C1] ? save_trace+0x8f/0x5b0 [ 36.087464][ C1] mark_lock+0x28d/0x3e0 [ 36.087581][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 36.087739][ C1] mark_usage+0xd9/0x2a0 [ 36.087872][ C1] __lock_acquire+0x797/0x1570 [ 36.088029][ C1] ? __pfx_validate_chain+0x10/0x10 [ 36.088201][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.088361][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.088543][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.088713][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.088873][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 36.089043][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.089198][ C1] ? lock_acquire+0x32/0xc0 [ 36.089368][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.089535][ C1] _raw_write_lock+0x30/0x40 [ 36.089690][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.089874][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.090032][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.090203][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.090362][ C1] ? call_timer_fn+0xe8/0x230 [ 36.090542][ C1] ? lock_acquire+0x32/0xc0 [ 36.090702][ C1] ? call_timer_fn+0xe8/0x230 [ 36.090859][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.091038][ C1] call_timer_fn+0x13b/0x230 [ 36.091200][ C1] ? call_timer_fn+0xe8/0x230 [ 36.091357][ C1] ? call_timer_fn+0xe8/0x230 [ 36.091543][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 36.091702][ C1] ? mark_lock+0x38/0x3e0 [ 36.091825][ C1] __run_timers+0x545/0x810 [ 36.091999][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.092157][ C1] ? __pfx___run_timers+0x10/0x10 [ 36.092338][ C1] ? do_raw_spin_lock+0x131/0x270 [ 36.092494][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.092674][ C1] ? lock_acquire+0x32/0xc0 [ 36.092841][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 36.093000][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.093175][ C1] __do_softirq+0x1f8/0x5df [ 36.093333][ C1] irq_exit_rcu+0x97/0xc0 [ 36.093469][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.093623][ C1] [ 36.093711][ C1] [ 36.093808][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.094000][ C1] RIP: 0010:default_idle+0xf/0x20 [ 36.094163][ 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 a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 36.094720][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 36.094942][ C1] RAX: 0000000000089aaf RBX: 1ffff92000029fc1 RCX: ffffffffa7b0e9d5 [ 36.095181][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa54aa4a4 [ 36.095449][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 36.095682][ C1] R10: ffff8880360b84e3 R11: 1ffff110003a91cc R12: 0000000000000000 [ 36.095942][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 36.096201][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.096363][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 36.096520][ C1] default_idle_call+0x6d/0xb0 [ 36.096706][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.096862][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.097027][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.097188][ C1] do_idle+0xf9/0x160 [ 36.097317][ C1] cpu_startup_entry+0x54/0x60 [ 36.097486][ C1] start_secondary+0x21c/0x2b0 [ 36.097642][ C1] ? __pfx_start_secondary+0x10/0x10 [ 36.097831][ C1] common_startup_64+0x12c/0x138 [ 36.097991][ C1]