[ 37.694465][ C1] [ 37.694643][ C1] ======================================================== [ 37.694975][ C1] WARNING: possible irq lock inversion dependency detected [ 37.695315][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 37.695527][ C1] -------------------------------------------------------- [ 37.695850][ C1] swapper/1/0 just changed the state of lock: [ 37.696098][ C1] ffff88802fa4bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 37.696503][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 37.696851][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 37.696859][ C1] [ 37.696859][ C1] [ 37.696859][ C1] and interrupts could create inverse lock ordering between them. [ 37.696859][ C1] [ 37.697660][ C1] [ 37.697660][ C1] other info that might help us debug this: [ 37.697966][ C1] Possible interrupt unsafe locking scenario: [ 37.697966][ C1] [ 37.698278][ C1] CPU0 CPU1 [ 37.698494][ C1] ---- ---- [ 37.698701][ C1] lock(&p->alloc_lock); [ 37.698865][ C1] local_irq_disable(); [ 37.699123][ C1] lock(&ndev->lock); [ 37.699397][ C1] lock(&p->alloc_lock); [ 37.699674][ C1] [ 37.699833][ C1] lock(&ndev->lock); [ 37.700003][ C1] [ 37.700003][ C1] *** DEADLOCK *** [ 37.700003][ C1] [ 37.700307][ C1] 1 lock held by swapper/1/0: [ 37.700529][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 37.700915][ C1] [ 37.700915][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 37.701276][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 37.701506][ C1] HARDIRQ-ON-W at: [ 37.701676][ C1] __lock_acquire+0x797/0x1570 [ 37.701949][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.702213][ C1] _raw_spin_lock+0x30/0x40 [ 37.702489][ C1] set_mems_allowed+0x1d/0x210 [ 37.702761][ C1] kernel_init_freeable+0x72/0x310 [ 37.703026][ C1] kernel_init+0x20/0x200 [ 37.703295][ C1] ret_from_fork+0x31/0x70 [ 37.703568][ C1] ret_from_fork_asm+0x1a/0x30 [ 37.703833][ C1] SOFTIRQ-ON-W at: [ 37.703992][ C1] __lock_acquire+0x797/0x1570 [ 37.704258][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.704531][ C1] _raw_spin_lock+0x30/0x40 [ 37.704797][ C1] set_mems_allowed+0x1d/0x210 [ 37.705068][ C1] kernel_init_freeable+0x72/0x310 [ 37.705337][ C1] kernel_init+0x20/0x200 [ 37.705621][ C1] ret_from_fork+0x31/0x70 [ 37.705901][ C1] ret_from_fork_asm+0x1a/0x30 [ 37.706184][ C1] INITIAL USE at: [ 37.706342][ C1] __lock_acquire+0x797/0x1570 [ 37.706586][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.706773][ C1] _raw_spin_lock+0x30/0x40 [ 37.706960][ C1] set_mems_allowed+0x1d/0x210 [ 37.707129][ C1] kernel_init_freeable+0x72/0x310 [ 37.707351][ C1] kernel_init+0x20/0x200 [ 37.707647][ C1] ret_from_fork+0x31/0x70 [ 37.707857][ C1] ret_from_fork_asm+0x1a/0x30 [ 37.708047][ C1] } [ 37.708133][ C1] ... key at: [] __key.387+0x0/0x40 [ 37.708470][ C1] ... acquired at: [ 37.708597][ C1] __lock_acquire+0xaf0/0x1570 [ 37.708758][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.708910][ C1] _raw_spin_lock+0x30/0x40 [ 37.709048][ C1] __get_task_comm+0x27/0x70 [ 37.709194][ C1] ref_tracker_alloc+0x2ee/0x490 [ 37.709345][ C1] netdev_get_by_index+0x5e/0x80 [ 37.709480][ C1] fib6_nh_init+0x3d8/0x15b0 [ 37.709632][ C1] ip6_route_info_create+0xf18/0x17d0 [ 37.709778][ C1] addrconf_f6i_alloc+0x265/0x560 [ 37.709935][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 37.710072][ C1] addrconf_join_anycast+0x1c0/0x220 [ 37.710218][ C1] dev_forward_change+0x2a6/0x7b0 [ 37.710357][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 37.710535][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 37.710679][ C1] proc_sys_call_handler+0x403/0x5e0 [ 37.710828][ C1] vfs_write+0x9e5/0x10a0 [ 37.711119][ C1] ksys_write+0xf5/0x1e0 [ 37.711256][ C1] do_syscall_64+0xc6/0x1e0 [ 37.711395][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.711563][ C1] [ 37.711632][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 37.711857][ C1] HARDIRQ-ON-W at: [ 37.711959][ C1] __lock_acquire+0x797/0x1570 [ 37.712127][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.712293][ C1] _raw_write_lock_bh+0x38/0x50 [ 37.712569][ C1] addrconf_permanent_addr+0x6e/0x670 [ 37.712775][ C1] addrconf_notify+0x749/0xd60 [ 37.713047][ C1] notifier_call_chain+0xcd/0x150 [ 37.713234][ C1] __dev_notify_flags+0xe6/0x250 [ 37.713417][ C1] dev_change_flags+0xec/0x160 [ 37.713602][ C1] do_setlink+0x7d6/0x21e0 [ 37.713798][ C1] __rtnl_newlink+0xaa7/0xd80 [ 37.713983][ C1] rtnl_newlink+0x63/0xa0 [ 37.714167][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.714345][ C1] netlink_rcv_skb+0x130/0x360 [ 37.714520][ C1] netlink_unicast+0x449/0x710 [ 37.714689][ C1] netlink_sendmsg+0x723/0xbe0 [ 37.714864][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 37.715112][ C1] ___sys_sendmsg+0xee/0x170 [ 37.715290][ C1] __sys_sendmsg+0xcd/0x170 [ 37.715459][ C1] do_syscall_64+0xc6/0x1e0 [ 37.715635][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.715943][ C1] HARDIRQ-ON-R at: [ 37.716043][ C1] __lock_acquire+0x797/0x1570 [ 37.716225][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.716479][ C1] _raw_read_lock_bh+0x44/0x80 [ 37.716661][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.716847][ C1] inet6_fill_link_af+0x5e/0xe0 [ 37.717018][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.717274][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.717455][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.717682][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 37.717956][ C1] register_netdevice+0x1177/0x1690 [ 37.718123][ C1] register_netdev+0x20/0x40 [ 37.718298][ C1] sit_init_net+0x250/0x4f0 [ 37.718554][ C1] ops_init+0x9b/0x560 [ 37.718694][ C1] register_pernet_operations+0x2db/0x710 [ 37.718915][ C1] register_pernet_device+0x2a/0x60 [ 37.719094][ C1] sit_init+0x23/0xe0 [ 37.719325][ C1] do_one_initcall+0x8d/0x1e0 [ 37.719506][ C1] do_initcalls+0x1b2/0x3e0 [ 37.719676][ C1] kernel_init_freeable+0x232/0x310 [ 37.719948][ C1] kernel_init+0x20/0x200 [ 37.720136][ C1] ret_from_fork+0x31/0x70 [ 37.720305][ C1] ret_from_fork_asm+0x1a/0x30 [ 37.720488][ C1] IN-SOFTIRQ-W at: [ 37.720665][ C1] __lock_acquire+0x797/0x1570 [ 37.720902][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.721163][ C1] _raw_write_lock+0x30/0x40 [ 37.721566][ C1] addrconf_rs_timer+0xa9/0x730 [ 37.721793][ C1] call_timer_fn+0x13b/0x230 [ 37.721989][ C1] __run_timers+0x545/0x810 [ 37.722159][ C1] run_timer_softirq+0xe8/0x1b0 [ 37.722523][ C1] __do_softirq+0x1f8/0x5df [ 37.722691][ C1] irq_exit_rcu+0x97/0xc0 [ 37.722872][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.723088][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.723287][ C1] default_idle+0xf/0x20 [ 37.723467][ C1] default_idle_call+0x6d/0xb0 [ 37.723647][ C1] cpuidle_idle_call+0x1f4/0x280 [ 37.723834][ C1] do_idle+0xf9/0x160 [ 37.723990][ C1] cpu_startup_entry+0x54/0x60 [ 37.724159][ C1] start_secondary+0x21c/0x2b0 [ 37.724350][ C1] common_startup_64+0x12c/0x138 [ 37.724518][ C1] INITIAL USE at: [ 37.724629][ C1] __lock_acquire+0x797/0x1570 [ 37.724808][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.725052][ C1] _raw_write_lock_bh+0x38/0x50 [ 37.725221][ C1] addrconf_permanent_addr+0x6e/0x670 [ 37.725397][ C1] addrconf_notify+0x749/0xd60 [ 37.725645][ C1] notifier_call_chain+0xcd/0x150 [ 37.725828][ C1] __dev_notify_flags+0xe6/0x250 [ 37.726005][ C1] dev_change_flags+0xec/0x160 [ 37.726253][ C1] do_setlink+0x7d6/0x21e0 [ 37.726430][ C1] __rtnl_newlink+0xaa7/0xd80 [ 37.726609][ C1] rtnl_newlink+0x63/0xa0 [ 37.726794][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.727054][ C1] netlink_rcv_skb+0x130/0x360 [ 37.727236][ C1] netlink_unicast+0x449/0x710 [ 37.727404][ C1] netlink_sendmsg+0x723/0xbe0 [ 37.727666][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 37.727860][ C1] ___sys_sendmsg+0xee/0x170 [ 37.728031][ C1] __sys_sendmsg+0xcd/0x170 [ 37.728200][ C1] do_syscall_64+0xc6/0x1e0 [ 37.728447][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.728648][ C1] INITIAL READ USE at: [ 37.728770][ C1] __lock_acquire+0x797/0x1570 [ 37.728989][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.729158][ C1] _raw_read_lock_bh+0x44/0x80 [ 37.729332][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.729530][ C1] inet6_fill_link_af+0x5e/0xe0 [ 37.729702][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.729879][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.730079][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.730359][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 37.730525][ C1] register_netdevice+0x1177/0x1690 [ 37.730735][ C1] register_netdev+0x20/0x40 [ 37.730984][ C1] sit_init_net+0x250/0x4f0 [ 37.731153][ C1] ops_init+0x9b/0x560 [ 37.731321][ C1] register_pernet_operations+0x2db/0x710 [ 37.731609][ C1] register_pernet_device+0x2a/0x60 [ 37.731831][ C1] sit_init+0x23/0xe0 [ 37.732013][ C1] do_one_initcall+0x8d/0x1e0 [ 37.732275][ C1] do_initcalls+0x1b2/0x3e0 [ 37.732459][ C1] kernel_init_freeable+0x232/0x310 [ 37.732661][ C1] kernel_init+0x20/0x200 [ 37.732994][ C1] ret_from_fork+0x31/0x70 [ 37.733159][ C1] ret_from_fork_asm+0x1a/0x30 [ 37.733322][ C1] } [ 37.733390][ C1] ... key at: [] __key.37+0x0/0x40 [ 37.733665][ C1] ... acquired at: [ 37.733771][ C1] mark_lock+0x28d/0x3e0 [ 37.733907][ C1] mark_usage+0xd9/0x2a0 [ 37.734038][ C1] __lock_acquire+0x797/0x1570 [ 37.734252][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.734384][ C1] _raw_write_lock+0x30/0x40 [ 37.734516][ C1] addrconf_rs_timer+0xa9/0x730 [ 37.734646][ C1] call_timer_fn+0x13b/0x230 [ 37.734787][ C1] __run_timers+0x545/0x810 [ 37.734996][ C1] run_timer_softirq+0xe8/0x1b0 [ 37.735128][ C1] __do_softirq+0x1f8/0x5df [ 37.735258][ C1] irq_exit_rcu+0x97/0xc0 [ 37.735389][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.735625][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.735800][ C1] default_idle+0xf/0x20 [ 37.735932][ C1] default_idle_call+0x6d/0xb0 [ 37.736063][ C1] cpuidle_idle_call+0x1f4/0x280 [ 37.736269][ C1] do_idle+0xf9/0x160 [ 37.736368][ C1] cpu_startup_entry+0x54/0x60 [ 37.736499][ C1] start_secondary+0x21c/0x2b0 [ 37.736630][ C1] common_startup_64+0x12c/0x138 [ 37.736906][ C1] [ 37.736972][ C1] [ 37.736972][ C1] stack backtrace: [ 37.737135][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 37.737344][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 37.737787][ C1] Call Trace: [ 37.737892][ C1] [ 37.737961][ C1] dump_stack_lvl+0x82/0xd0 [ 37.738097][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 37.738342][ C1] ? kernel_text_address+0x17/0xe0 [ 37.738479][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 37.738640][ C1] ? __pfx_usage_skip+0x10/0x10 [ 37.738786][ C1] ? __pfx_usage_match+0x10/0x10 [ 37.738993][ C1] ? arch_stack_walk+0x8c/0xf0 [ 37.739126][ C1] mark_lock_irq+0x4cd/0xa10 [ 37.739256][ C1] ? common_startup_64+0x12c/0x138 [ 37.739391][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 37.739599][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 37.739743][ C1] ? save_trace+0x8f/0x5b0 [ 37.739879][ C1] mark_lock+0x28d/0x3e0 [ 37.739978][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 37.740184][ C1] mark_usage+0xd9/0x2a0 [ 37.740285][ C1] __lock_acquire+0x797/0x1570 [ 37.740417][ C1] ? __pfx_validate_chain+0x10/0x10 [ 37.740551][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.740697][ C1] lock_acquire.part.0+0xeb/0x330 [ 37.741013][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 37.741145][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.741283][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 37.741414][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 37.741616][ C1] ? lock_acquire+0x32/0xc0 [ 37.741772][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 37.741904][ C1] _raw_write_lock+0x30/0x40 [ 37.742041][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 37.742258][ C1] addrconf_rs_timer+0xa9/0x730 [ 37.742400][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.742531][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.742674][ C1] ? call_timer_fn+0xe8/0x230 [ 37.742826][ C1] ? lock_acquire+0x32/0xc0 [ 37.743047][ C1] ? call_timer_fn+0xe8/0x230 [ 37.743188][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.743324][ C1] call_timer_fn+0x13b/0x230 [ 37.743465][ C1] ? call_timer_fn+0xe8/0x230 [ 37.743770][ C1] ? call_timer_fn+0xe8/0x230 [ 37.743924][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 37.744057][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 37.744200][ C1] __run_timers+0x545/0x810 [ 37.744438][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.744571][ C1] ? __pfx___run_timers+0x10/0x10 [ 37.744727][ C1] ? do_raw_spin_lock+0x131/0x270 [ 37.744869][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 37.745013][ C1] ? lock_acquire+0x32/0xc0 [ 37.745143][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 37.745285][ C1] run_timer_softirq+0xe8/0x1b0 [ 37.745416][ C1] __do_softirq+0x1f8/0x5df [ 37.745561][ C1] irq_exit_rcu+0x97/0xc0 [ 37.745661][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.745817][ C1] [ 37.745887][ C1] [ 37.745954][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.746132][ C1] RIP: 0010:default_idle+0xf/0x20 [ 37.746282][ 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 [ 37.746755][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 37.747002][ C1] RAX: 0000000000093133 RBX: 1ffff92000029fc1 RCX: ffffffffa2f0e9d5 [ 37.747204][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa08aa4a4 [ 37.747401][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 37.747687][ C1] R10: ffff8880360b84e3 R11: ffff8880360bdc80 R12: 0000000000000000 [ 37.747905][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 37.748231][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 37.748367][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 37.748512][ C1] default_idle_call+0x6d/0xb0 [ 37.748647][ C1] cpuidle_idle_call+0x1f4/0x280 [ 37.748799][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 37.749003][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 37.749147][ C1] do_idle+0xf9/0x160 [ 37.749246][ C1] cpu_startup_entry+0x54/0x60 [ 37.749384][ C1] start_secondary+0x21c/0x2b0 [ 37.749598][ C1] ? __pfx_start_secondary+0x10/0x10 [ 37.749757][ C1] common_startup_64+0x12c/0x138 [ 37.749893][ C1]