[ 29.078231][ C1] [ 29.078340][ C1] ======================================================== [ 29.078575][ C1] WARNING: possible irq lock inversion dependency detected [ 29.078791][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 29.078938][ C1] -------------------------------------------------------- [ 29.079155][ C1] swapper/1/0 just changed the state of lock: [ 29.079345][ C1] ffff88800811a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 29.079623][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 29.079850][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 29.079854][ C1] [ 29.079854][ C1] [ 29.079854][ C1] and interrupts could create inverse lock ordering between them. [ 29.079854][ C1] [ 29.080416][ C1] [ 29.080416][ C1] other info that might help us debug this: [ 29.080638][ C1] Possible interrupt unsafe locking scenario: [ 29.080638][ C1] [ 29.080868][ C1] CPU0 CPU1 [ 29.081023][ C1] ---- ---- [ 29.081170][ C1] lock(&p->alloc_lock); [ 29.081287][ C1] local_irq_disable(); [ 29.081477][ C1] lock(&ndev->lock); [ 29.081663][ C1] lock(&p->alloc_lock); [ 29.081850][ C1] [ 29.081964][ C1] lock(&ndev->lock); [ 29.082075][ C1] [ 29.082075][ C1] *** DEADLOCK *** [ 29.082075][ C1] [ 29.082300][ C1] 1 lock held by swapper/1/0: [ 29.082451][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 29.082742][ C1] [ 29.082742][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 29.083005][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 29.083156][ C1] HARDIRQ-ON-W at: [ 29.083270][ C1] __lock_acquire+0x797/0x1570 [ 29.083460][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.083646][ C1] _raw_spin_lock+0x30/0x40 [ 29.083832][ C1] set_mems_allowed+0x1d/0x210 [ 29.084021][ C1] kernel_init_freeable+0x72/0x310 [ 29.084215][ C1] kernel_init+0x20/0x200 [ 29.084399][ C1] ret_from_fork+0x31/0x70 [ 29.084587][ C1] ret_from_fork_asm+0x1a/0x30 [ 29.084773][ C1] SOFTIRQ-ON-W at: [ 29.084885][ C1] __lock_acquire+0x797/0x1570 [ 29.085072][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.085260][ C1] _raw_spin_lock+0x30/0x40 [ 29.085453][ C1] set_mems_allowed+0x1d/0x210 [ 29.085635][ C1] kernel_init_freeable+0x72/0x310 [ 29.085814][ C1] kernel_init+0x20/0x200 [ 29.085995][ C1] ret_from_fork+0x31/0x70 [ 29.086175][ C1] ret_from_fork_asm+0x1a/0x30 [ 29.086360][ C1] INITIAL USE at: [ 29.086469][ C1] __lock_acquire+0x797/0x1570 [ 29.086653][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.086836][ C1] _raw_spin_lock+0x30/0x40 [ 29.087020][ C1] set_mems_allowed+0x1d/0x210 [ 29.087201][ C1] kernel_init_freeable+0x72/0x310 [ 29.087382][ C1] kernel_init+0x20/0x200 [ 29.087565][ C1] ret_from_fork+0x31/0x70 [ 29.087745][ C1] ret_from_fork_asm+0x1a/0x30 [ 29.087936][ C1] } [ 29.088021][ C1] ... key at: [] __key.388+0x0/0x40 [ 29.088242][ C1] ... acquired at: [ 29.088356][ C1] __lock_acquire+0xaf0/0x1570 [ 29.088506][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.088651][ C1] _raw_spin_lock+0x30/0x40 [ 29.088805][ C1] __get_task_comm+0x27/0x70 [ 29.088955][ C1] ref_tracker_alloc+0x2ee/0x490 [ 29.089112][ C1] netdev_get_by_index+0x5e/0x80 [ 29.089261][ C1] fib6_nh_init+0x3d8/0x1580 [ 29.089418][ C1] ip6_route_info_create+0xf18/0x17d0 [ 29.089570][ C1] ip6_route_add+0x1c/0x140 [ 29.089720][ C1] addrconf_prefix_route+0x2a6/0x430 [ 29.089876][ C1] addrconf_permanent_addr+0x32f/0x670 [ 29.090028][ C1] addrconf_notify+0x749/0xd60 [ 29.090194][ C1] notifier_call_chain+0xcd/0x150 [ 29.090343][ C1] __dev_notify_flags+0xe6/0x250 [ 29.090493][ C1] dev_change_flags+0xec/0x160 [ 29.090647][ C1] do_setlink+0x7d6/0x21e0 [ 29.090793][ C1] __rtnl_newlink+0xaa7/0xd80 [ 29.090944][ C1] rtnl_newlink+0x63/0xa0 [ 29.091092][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.091240][ C1] netlink_rcv_skb+0x130/0x360 [ 29.091400][ C1] netlink_unicast+0x449/0x710 [ 29.091549][ C1] netlink_sendmsg+0x723/0xbe0 [ 29.091701][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 29.091855][ C1] ___sys_sendmsg+0xee/0x170 [ 29.092009][ C1] __sys_sendmsg+0xcd/0x170 [ 29.092155][ C1] do_syscall_64+0xc6/0x1e0 [ 29.092303][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.092494][ C1] [ 29.092569][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 29.092718][ C1] HARDIRQ-ON-W at: [ 29.092838][ C1] __lock_acquire+0x797/0x1570 [ 29.093023][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.093213][ C1] _raw_write_lock_bh+0x38/0x50 [ 29.093396][ C1] addrconf_permanent_addr+0x6e/0x670 [ 29.093586][ C1] addrconf_notify+0x749/0xd60 [ 29.093768][ C1] notifier_call_chain+0xcd/0x150 [ 29.093979][ C1] __dev_notify_flags+0xe6/0x250 [ 29.094160][ C1] dev_change_flags+0xec/0x160 [ 29.094343][ C1] do_setlink+0x7d6/0x21e0 [ 29.094534][ C1] __rtnl_newlink+0xaa7/0xd80 [ 29.094717][ C1] rtnl_newlink+0x63/0xa0 [ 29.094901][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.095087][ C1] netlink_rcv_skb+0x130/0x360 [ 29.095275][ C1] netlink_unicast+0x449/0x710 [ 29.095463][ C1] netlink_sendmsg+0x723/0xbe0 [ 29.095649][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 29.095845][ C1] ___sys_sendmsg+0xee/0x170 [ 29.096029][ C1] __sys_sendmsg+0xcd/0x170 [ 29.096217][ C1] do_syscall_64+0xc6/0x1e0 [ 29.096401][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.096646][ C1] HARDIRQ-ON-R at: [ 29.096758][ C1] __lock_acquire+0x797/0x1570 [ 29.096949][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.097137][ C1] _raw_read_lock_bh+0x44/0x80 [ 29.097324][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.097512][ C1] inet6_fill_link_af+0x5e/0xe0 [ 29.097707][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.097901][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.098083][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.098310][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 29.098504][ C1] register_netdevice+0x1177/0x1690 [ 29.098690][ C1] register_netdev+0x20/0x40 [ 29.098883][ C1] vti6_init_net+0x25d/0x380 [ 29.099069][ C1] ops_init+0x9b/0x560 [ 29.099219][ C1] register_pernet_operations+0x2db/0x710 [ 29.099441][ C1] register_pernet_device+0x2a/0x60 [ 29.099648][ C1] vti6_tunnel_init+0x18/0x110 [ 29.099833][ C1] do_one_initcall+0x8d/0x1e0 [ 29.100029][ C1] do_initcalls+0x1b2/0x3e0 [ 29.100225][ C1] kernel_init_freeable+0x232/0x310 [ 29.100413][ C1] kernel_init+0x20/0x200 [ 29.100603][ C1] ret_from_fork+0x31/0x70 [ 29.100792][ C1] ret_from_fork_asm+0x1a/0x30 [ 29.100980][ C1] IN-SOFTIRQ-W at: [ 29.101097][ C1] __lock_acquire+0x797/0x1570 [ 29.101285][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.101483][ C1] _raw_write_lock+0x30/0x40 [ 29.101755][ C1] addrconf_rs_timer+0xa9/0x730 [ 29.101950][ C1] call_timer_fn+0x13b/0x230 [ 29.102133][ C1] __run_timers+0x545/0x810 [ 29.102395][ C1] timer_expire_remote+0x9b/0xe0 [ 29.102581][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 29.102788][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 29.102970][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 29.103232][ C1] __do_softirq+0x1f8/0x5df [ 29.103418][ C1] irq_exit_rcu+0x97/0xc0 [ 29.103601][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.103980][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.104213][ C1] default_idle+0xf/0x20 [ 29.104395][ C1] default_idle_call+0x6d/0xb0 [ 29.104655][ C1] cpuidle_idle_call+0x1f4/0x280 [ 29.104837][ C1] do_idle+0xf9/0x160 [ 29.104983][ C1] cpu_startup_entry+0x54/0x60 [ 29.105165][ C1] start_secondary+0x21c/0x2b0 [ 29.105428][ C1] common_startup_64+0x12c/0x138 [ 29.105609][ C1] INITIAL USE at: [ 29.105718][ C1] __lock_acquire+0x797/0x1570 [ 29.105900][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.106159][ C1] _raw_write_lock_bh+0x38/0x50 [ 29.106339][ C1] addrconf_permanent_addr+0x6e/0x670 [ 29.106519][ C1] addrconf_notify+0x749/0xd60 [ 29.106781][ C1] notifier_call_chain+0xcd/0x150 [ 29.106961][ C1] __dev_notify_flags+0xe6/0x250 [ 29.107139][ C1] dev_change_flags+0xec/0x160 [ 29.107398][ C1] do_setlink+0x7d6/0x21e0 [ 29.107579][ C1] __rtnl_newlink+0xaa7/0xd80 [ 29.107764][ C1] rtnl_newlink+0x63/0xa0 [ 29.107956][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 29.108227][ C1] netlink_rcv_skb+0x130/0x360 [ 29.108423][ C1] netlink_unicast+0x449/0x710 [ 29.108612][ C1] netlink_sendmsg+0x723/0xbe0 [ 29.108881][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 29.109074][ C1] ___sys_sendmsg+0xee/0x170 [ 29.109262][ C1] __sys_sendmsg+0xcd/0x170 [ 29.109462][ C1] do_syscall_64+0xc6/0x1e0 [ 29.109730][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 29.109953][ C1] INITIAL READ USE at: [ 29.110077][ C1] __lock_acquire+0x797/0x1570 [ 29.110349][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.110531][ C1] _raw_read_lock_bh+0x44/0x80 [ 29.110718][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 29.111013][ C1] inet6_fill_link_af+0x5e/0xe0 [ 29.111196][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 29.111407][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 29.111626][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 29.111928][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 29.112113][ C1] register_netdevice+0x1177/0x1690 [ 29.112339][ C1] register_netdev+0x20/0x40 [ 29.112622][ C1] vti6_init_net+0x25d/0x380 [ 29.112814][ C1] ops_init+0x9b/0x560 [ 29.113010][ C1] register_pernet_operations+0x2db/0x710 [ 29.113320][ C1] register_pernet_device+0x2a/0x60 [ 29.113552][ C1] vti6_tunnel_init+0x18/0x110 [ 29.113734][ C1] do_one_initcall+0x8d/0x1e0 [ 29.113926][ C1] do_initcalls+0x1b2/0x3e0 [ 29.114109][ C1] kernel_init_freeable+0x232/0x310 [ 29.114329][ C1] kernel_init+0x20/0x200 [ 29.114517][ C1] ret_from_fork+0x31/0x70 [ 29.114709][ C1] ret_from_fork_asm+0x1a/0x30 [ 29.114916][ C1] } [ 29.114991][ C1] ... key at: [] __key.37+0x0/0x40 [ 29.115328][ C1] ... acquired at: [ 29.115436][ C1] mark_lock+0x28d/0x3e0 [ 29.115588][ C1] mark_usage+0xd9/0x2a0 [ 29.115742][ C1] __lock_acquire+0x797/0x1570 [ 29.115894][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.116051][ C1] _raw_write_lock+0x30/0x40 [ 29.116200][ C1] addrconf_rs_timer+0xa9/0x730 [ 29.116346][ C1] call_timer_fn+0x13b/0x230 [ 29.116494][ C1] __run_timers+0x545/0x810 [ 29.116644][ C1] timer_expire_remote+0x9b/0xe0 [ 29.116792][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 29.116943][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 29.117090][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 29.117333][ C1] __do_softirq+0x1f8/0x5df [ 29.117487][ C1] irq_exit_rcu+0x97/0xc0 [ 29.117634][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.117823][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.118006][ C1] default_idle+0xf/0x20 [ 29.118152][ C1] default_idle_call+0x6d/0xb0 [ 29.118299][ C1] cpuidle_idle_call+0x1f4/0x280 [ 29.118469][ C1] do_idle+0xf9/0x160 [ 29.118595][ C1] cpu_startup_entry+0x54/0x60 [ 29.118740][ C1] start_secondary+0x21c/0x2b0 [ 29.118885][ C1] common_startup_64+0x12c/0x138 [ 29.119032][ C1] [ 29.119104][ C1] [ 29.119104][ C1] stack backtrace: [ 29.119369][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 29.119592][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 29.119917][ C1] Call Trace: [ 29.120041][ C1] [ 29.120122][ C1] dump_stack_lvl+0x82/0xd0 [ 29.120291][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 29.120471][ C1] ? kernel_text_address+0x17/0xe0 [ 29.120630][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 29.120809][ C1] ? __pfx_usage_skip+0x10/0x10 [ 29.120959][ C1] ? __pfx_usage_match+0x10/0x10 [ 29.121114][ C1] ? arch_stack_walk+0x8c/0xf0 [ 29.121345][ C1] mark_lock_irq+0x4cd/0xa10 [ 29.121496][ C1] ? common_startup_64+0x12c/0x138 [ 29.121644][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 29.121790][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 29.121938][ C1] ? save_trace+0x8f/0x5b0 [ 29.122083][ C1] mark_lock+0x28d/0x3e0 [ 29.122193][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 29.122358][ C1] mark_usage+0xd9/0x2a0 [ 29.122469][ C1] __lock_acquire+0x797/0x1570 [ 29.122626][ C1] ? __pfx_validate_chain+0x10/0x10 [ 29.122774][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.122918][ C1] lock_acquire.part.0+0xeb/0x330 [ 29.123061][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 29.123296][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.123458][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 29.123613][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 29.123759][ C1] ? lock_acquire+0x32/0xc0 [ 29.123907][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 29.124059][ C1] _raw_write_lock+0x30/0x40 [ 29.124203][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 29.124349][ C1] addrconf_rs_timer+0xa9/0x730 [ 29.124493][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 29.124638][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.124783][ C1] ? call_timer_fn+0xe8/0x230 [ 29.124931][ C1] ? lock_acquire+0x32/0xc0 [ 29.125075][ C1] ? call_timer_fn+0xe8/0x230 [ 29.125310][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.125453][ C1] call_timer_fn+0x13b/0x230 [ 29.125597][ C1] ? call_timer_fn+0xe8/0x230 [ 29.125739][ C1] ? call_timer_fn+0xe8/0x230 [ 29.125881][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 29.126023][ C1] ? mark_lock+0x38/0x3e0 [ 29.126139][ C1] __run_timers+0x545/0x810 [ 29.126281][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 29.126425][ C1] ? __pfx___run_timers+0x10/0x10 [ 29.126644][ C1] ? __lock_release+0x103/0x460 [ 29.126787][ C1] ? do_raw_spin_lock+0x131/0x270 [ 29.126930][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 29.127072][ C1] ? lock_acquire+0x32/0xc0 [ 29.127307][ C1] ? timer_expire_remote+0x93/0xe0 [ 29.127452][ C1] timer_expire_remote+0x9b/0xe0 [ 29.127596][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 29.127737][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 29.127916][ C1] ? timerqueue_del+0x68/0x120 [ 29.128060][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 29.128220][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 29.128364][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 29.128511][ C1] __do_softirq+0x1f8/0x5df [ 29.128658][ C1] irq_exit_rcu+0x97/0xc0 [ 29.128767][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 29.128912][ C1] [ 29.128986][ C1] [ 29.129059][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 29.129319][ C1] RIP: 0010:default_idle+0xf/0x20 [ 29.129472][ 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 [ 29.129980][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 29.130182][ C1] RAX: 000000000006eb8d RBX: 1ffff92000029fc1 RCX: ffffffffaa932ea5 [ 29.130400][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa80ac1d4 [ 29.130622][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 29.130848][ C1] R10: ffff8880360b84e3 R11: ffff8880360bde40 R12: 0000000000000000 [ 29.131151][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 29.131371][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 29.131515][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 29.131660][ C1] default_idle_call+0x6d/0xb0 [ 29.131881][ C1] cpuidle_idle_call+0x1f4/0x280 [ 29.132027][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 29.132174][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 29.132331][ C1] do_idle+0xf9/0x160 [ 29.132441][ C1] cpu_startup_entry+0x54/0x60 [ 29.132672][ C1] start_secondary+0x21c/0x2b0 [ 29.132816][ C1] ? __pfx_start_secondary+0x10/0x10 [ 29.132962][ C1] common_startup_64+0x12c/0x138 [ 29.133109][ C1]