[ 31.663375][ C3] [ 31.663539][ C3] ======================================================== [ 31.663745][ C3] WARNING: possible irq lock inversion dependency detected [ 31.663946][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 31.664088][ C3] -------------------------------------------------------- [ 31.664279][ C3] swapper/3/0 just changed the state of lock: [ 31.664451][ C3] ffff888004f12580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.664695][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.664888][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 31.664892][ C3] [ 31.664892][ C3] [ 31.664892][ C3] and interrupts could create inverse lock ordering between them. [ 31.664892][ C3] [ 31.665401][ C3] [ 31.665401][ C3] other info that might help us debug this: [ 31.665597][ C3] Possible interrupt unsafe locking scenario: [ 31.665597][ C3] [ 31.665796][ C3] CPU0 CPU1 [ 31.665936][ C3] ---- ---- [ 31.666074][ C3] lock(&p->alloc_lock); [ 31.666179][ C3] local_irq_disable(); [ 31.666352][ C3] lock(&ndev->lock); [ 31.666522][ C3] lock(&p->alloc_lock); [ 31.666685][ C3] [ 31.666784][ C3] lock(&ndev->lock); [ 31.666885][ C3] [ 31.666885][ C3] *** DEADLOCK *** [ 31.666885][ C3] [ 31.667089][ C3] 1 lock held by swapper/3/0: [ 31.667221][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.667468][ C3] [ 31.667468][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 31.667695][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.667831][ C3] HARDIRQ-ON-W at: [ 31.667939][ C3] __lock_acquire+0x797/0x1570 [ 31.668123][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.668291][ C3] _raw_spin_lock+0x30/0x40 [ 31.668469][ C3] set_mems_allowed+0x1d/0x210 [ 31.668637][ C3] kernel_init_freeable+0x72/0x310 [ 31.668804][ C3] kernel_init+0x20/0x200 [ 31.668995][ C3] ret_from_fork+0x31/0x70 [ 31.669165][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.669329][ C3] SOFTIRQ-ON-W at: [ 31.669441][ C3] __lock_acquire+0x797/0x1570 [ 31.669612][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.669778][ C3] _raw_spin_lock+0x30/0x40 [ 31.669944][ C3] set_mems_allowed+0x1d/0x210 [ 31.670114][ C3] kernel_init_freeable+0x72/0x310 [ 31.670279][ C3] kernel_init+0x20/0x200 [ 31.670451][ C3] ret_from_fork+0x31/0x70 [ 31.670620][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.670784][ C3] INITIAL USE at: [ 31.670882][ C3] __lock_acquire+0x797/0x1570 [ 31.671056][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.671226][ C3] _raw_spin_lock+0x30/0x40 [ 31.671399][ C3] set_mems_allowed+0x1d/0x210 [ 31.671563][ C3] kernel_init_freeable+0x72/0x310 [ 31.671729][ C3] kernel_init+0x20/0x200 [ 31.671894][ C3] ret_from_fork+0x31/0x70 [ 31.672062][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.672226][ C3] } [ 31.672297][ C3] ... key at: [] __key.387+0x0/0x40 [ 31.672503][ C3] ... acquired at: [ 31.672601][ C3] __lock_acquire+0xaf0/0x1570 [ 31.672737][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.672873][ C3] _raw_spin_lock+0x30/0x40 [ 31.673007][ C3] __get_task_comm+0x27/0x70 [ 31.673144][ C3] ref_tracker_alloc+0x2ee/0x490 [ 31.673278][ C3] netdev_get_by_index+0x5e/0x80 [ 31.673419][ C3] fib6_nh_init+0x3d8/0x15b0 [ 31.673558][ C3] ip6_route_info_create+0xf18/0x17d0 [ 31.673691][ C3] addrconf_f6i_alloc+0x265/0x560 [ 31.673822][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.673955][ C3] addrconf_join_anycast+0x1c0/0x220 [ 31.674090][ C3] dev_forward_change+0x2a6/0x7b0 [ 31.674221][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 31.674390][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 31.674526][ C3] proc_sys_call_handler+0x403/0x5e0 [ 31.674661][ C3] vfs_write+0x9e5/0x10a0 [ 31.674794][ C3] ksys_write+0xf5/0x1e0 [ 31.674925][ C3] do_syscall_64+0xc6/0x1e0 [ 31.675057][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.675224][ C3] [ 31.675292][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 31.675432][ C3] HARDIRQ-ON-W at: [ 31.675534][ C3] __lock_acquire+0x797/0x1570 [ 31.675701][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.675867][ C3] _raw_write_lock_bh+0x38/0x50 [ 31.676033][ C3] addrconf_permanent_addr+0x6e/0x670 [ 31.676197][ C3] addrconf_notify+0x749/0xd60 [ 31.676363][ C3] notifier_call_chain+0xcd/0x150 [ 31.676532][ C3] __dev_notify_flags+0xe6/0x250 [ 31.676700][ C3] dev_change_flags+0xec/0x160 [ 31.676869][ C3] do_setlink+0x7d6/0x21e0 [ 31.677035][ C3] __rtnl_newlink+0xaa7/0xd80 [ 31.677205][ C3] rtnl_newlink+0x63/0xa0 [ 31.677371][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.677538][ C3] netlink_rcv_skb+0x130/0x360 [ 31.677711][ C3] netlink_unicast+0x449/0x710 [ 31.677876][ C3] netlink_sendmsg+0x723/0xbe0 [ 31.678044][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 31.678211][ C3] ___sys_sendmsg+0xee/0x170 [ 31.678376][ C3] __sys_sendmsg+0xcd/0x170 [ 31.678544][ C3] do_syscall_64+0xc6/0x1e0 [ 31.678710][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.678910][ C3] HARDIRQ-ON-R at: [ 31.679009][ C3] __lock_acquire+0x797/0x1570 [ 31.679175][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.679342][ C3] _raw_read_lock_bh+0x44/0x80 [ 31.679512][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.679679][ C3] inet6_fill_link_af+0x5e/0xe0 [ 31.679846][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 31.680013][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.680180][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.680383][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 31.680549][ C3] register_netdevice+0x1177/0x1690 [ 31.680716][ C3] register_netdev+0x20/0x40 [ 31.680884][ C3] sit_init_net+0x250/0x4f0 [ 31.681067][ C3] ops_init+0x9b/0x560 [ 31.681201][ C3] register_pernet_operations+0x2db/0x710 [ 31.681401][ C3] register_pernet_device+0x2a/0x60 [ 31.681568][ C3] sit_init+0x23/0xe0 [ 31.681700][ C3] do_one_initcall+0x8d/0x1e0 [ 31.681866][ C3] do_initcalls+0x1b2/0x3e0 [ 31.682036][ C3] kernel_init_freeable+0x232/0x310 [ 31.682202][ C3] kernel_init+0x20/0x200 [ 31.682369][ C3] ret_from_fork+0x31/0x70 [ 31.682537][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.682711][ C3] IN-SOFTIRQ-W at: [ 31.682810][ C3] __lock_acquire+0x797/0x1570 [ 31.683033][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.683217][ C3] _raw_write_lock+0x30/0x40 [ 31.683399][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.683578][ C3] call_timer_fn+0x13b/0x230 [ 31.683760][ C3] __run_timers+0x545/0x810 [ 31.683942][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.684108][ C3] __do_softirq+0x1f8/0x5df [ 31.684274][ C3] irq_exit_rcu+0x97/0xc0 [ 31.684442][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.684644][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.684843][ C3] default_idle+0xf/0x20 [ 31.685010][ C3] default_idle_call+0x6d/0xb0 [ 31.685176][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.685341][ C3] do_idle+0xf9/0x160 [ 31.685476][ C3] cpu_startup_entry+0x54/0x60 [ 31.685645][ C3] start_secondary+0x21c/0x2b0 [ 31.685812][ C3] common_startup_64+0x12c/0x138 [ 31.685978][ C3] INITIAL USE at: [ 31.686078][ C3] __lock_acquire+0x797/0x1570 [ 31.686247][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.686417][ C3] _raw_write_lock_bh+0x38/0x50 [ 31.686583][ C3] addrconf_permanent_addr+0x6e/0x670 [ 31.686750][ C3] addrconf_notify+0x749/0xd60 [ 31.686915][ C3] notifier_call_chain+0xcd/0x150 [ 31.687081][ C3] __dev_notify_flags+0xe6/0x250 [ 31.687247][ C3] dev_change_flags+0xec/0x160 [ 31.687412][ C3] do_setlink+0x7d6/0x21e0 [ 31.687578][ C3] __rtnl_newlink+0xaa7/0xd80 [ 31.687743][ C3] rtnl_newlink+0x63/0xa0 [ 31.687909][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.688072][ C3] netlink_rcv_skb+0x130/0x360 [ 31.688236][ C3] netlink_unicast+0x449/0x710 [ 31.688403][ C3] netlink_sendmsg+0x723/0xbe0 [ 31.688570][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 31.688736][ C3] ___sys_sendmsg+0xee/0x170 [ 31.688903][ C3] __sys_sendmsg+0xcd/0x170 [ 31.689071][ C3] do_syscall_64+0xc6/0x1e0 [ 31.689239][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.689436][ C3] INITIAL READ USE at: [ 31.689537][ C3] __lock_acquire+0x797/0x1570 [ 31.689707][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.689872][ C3] _raw_read_lock_bh+0x44/0x80 [ 31.690037][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.690238][ C3] inet6_fill_link_af+0x5e/0xe0 [ 31.690404][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 31.690568][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.690770][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.690976][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 31.691147][ C3] register_netdevice+0x1177/0x1690 [ 31.691427][ C3] register_netdev+0x20/0x40 [ 31.691593][ C3] sit_init_net+0x250/0x4f0 [ 31.691761][ C3] ops_init+0x9b/0x560 [ 31.692004][ C3] register_pernet_operations+0x2db/0x710 [ 31.692204][ C3] register_pernet_device+0x2a/0x60 [ 31.692401][ C3] sit_init+0x23/0xe0 [ 31.692645][ C3] do_one_initcall+0x8d/0x1e0 [ 31.692813][ C3] do_initcalls+0x1b2/0x3e0 [ 31.692979][ C3] kernel_init_freeable+0x232/0x310 [ 31.693331][ C3] kernel_init+0x20/0x200 [ 31.693498][ C3] ret_from_fork+0x31/0x70 [ 31.693666][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.693831][ C3] } [ 31.693973][ C3] ... key at: [] __key.37+0x0/0x40 [ 31.694170][ C3] ... acquired at: [ 31.694267][ C3] mark_lock+0x28d/0x3e0 [ 31.694403][ C3] mark_usage+0xd9/0x2a0 [ 31.694608][ C3] __lock_acquire+0x797/0x1570 [ 31.694743][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.694877][ C3] _raw_write_lock+0x30/0x40 [ 31.695010][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.695142][ C3] call_timer_fn+0x13b/0x230 [ 31.695350][ C3] __run_timers+0x545/0x810 [ 31.695483][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.695617][ C3] __do_softirq+0x1f8/0x5df [ 31.695750][ C3] irq_exit_rcu+0x97/0xc0 [ 31.695962][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.696126][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.696289][ C3] default_idle+0xf/0x20 [ 31.696422][ C3] default_idle_call+0x6d/0xb0 [ 31.696628][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.696760][ C3] do_idle+0xf9/0x160 [ 31.696860][ C3] cpu_startup_entry+0x54/0x60 [ 31.696994][ C3] start_secondary+0x21c/0x2b0 [ 31.697200][ C3] common_startup_64+0x12c/0x138 [ 31.697333][ C3] [ 31.697400][ C3] [ 31.697400][ C3] stack backtrace: [ 31.697560][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 31.697834][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.698125][ C3] Call Trace: [ 31.698225][ C3] [ 31.698295][ C3] dump_stack_lvl+0x82/0xd0 [ 31.698511][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.698675][ C3] ? kernel_text_address+0x17/0xe0 [ 31.698809][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.698973][ C3] ? __pfx_usage_skip+0x10/0x10 [ 31.699179][ C3] ? __pfx_usage_match+0x10/0x10 [ 31.699310][ C3] ? arch_stack_walk+0x8c/0xf0 [ 31.699446][ C3] mark_lock_irq+0x4cd/0xa10 [ 31.699577][ C3] ? common_startup_64+0x12c/0x138 [ 31.699783][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.699916][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 31.700049][ C3] ? save_trace+0x8f/0x5b0 [ 31.700182][ C3] mark_lock+0x28d/0x3e0 [ 31.700354][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 31.700486][ C3] mark_usage+0xd9/0x2a0 [ 31.700587][ C3] __lock_acquire+0x797/0x1570 [ 31.700719][ C3] ? __pfx_validate_chain+0x10/0x10 [ 31.700850][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.701073][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.701205][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.701337][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.701469][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 31.701674][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.701806][ C3] ? lock_acquire+0x32/0xc0 [ 31.701937][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.702068][ C3] _raw_write_lock+0x30/0x40 [ 31.702273][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.702405][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.702536][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.702667][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.702798][ C3] ? call_timer_fn+0xe8/0x230 [ 31.703005][ C3] ? lock_acquire+0x32/0xc0 [ 31.703140][ C3] ? call_timer_fn+0xe8/0x230 [ 31.703273][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.703403][ C3] call_timer_fn+0x13b/0x230 [ 31.703688][ C3] ? call_timer_fn+0xe8/0x230 [ 31.703819][ C3] ? call_timer_fn+0xe8/0x230 [ 31.703951][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 31.704081][ C3] ? mark_lock+0x38/0x3e0 [ 31.704258][ C3] __run_timers+0x545/0x810 [ 31.704391][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.704524][ C3] ? __pfx___run_timers+0x10/0x10 [ 31.704657][ C3] ? do_raw_spin_lock+0x131/0x270 [ 31.704790][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.704996][ C3] ? lock_acquire+0x32/0xc0 [ 31.705128][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 31.705261][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.705397][ C3] __do_softirq+0x1f8/0x5df [ 31.705605][ C3] irq_exit_rcu+0x97/0xc0 [ 31.705707][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.705838][ C3] [ 31.705907][ C3] [ 31.705973][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.706210][ C3] RIP: 0010:default_idle+0xf/0x20 [ 31.706349][ 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 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 [ 31.706899][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 31.707067][ C3] RAX: 0000000000071fc1 RBX: 1ffff9200002dfc1 RCX: ffffffff9c70e9d5 [ 31.707262][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9a0aa4a4 [ 31.707535][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 31.707736][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 31.707934][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 31.708209][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.708341][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 31.708473][ C3] default_idle_call+0x6d/0xb0 [ 31.708603][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.708807][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.708938][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.709072][ C3] do_idle+0xf9/0x160 [ 31.709177][ C3] cpu_startup_entry+0x54/0x60 [ 31.709381][ C3] start_secondary+0x21c/0x2b0 [ 31.709513][ C3] ? __pfx_start_secondary+0x10/0x10 [ 31.709645][ C3] common_startup_64+0x12c/0x138 [ 31.709780][ C3] [ 48.451001][ T373] Initializing XFRM netlink socket