[ 31.912589][ C2] [ 31.912771][ C2] ======================================================== [ 31.912993][ C2] WARNING: possible irq lock inversion dependency detected [ 31.913200][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.913336][ C2] -------------------------------------------------------- [ 31.913535][ C2] swapper/2/0 just changed the state of lock: [ 31.913714][ C2] ffff8880066ba580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.913973][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.914176][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.914180][ C2] [ 31.914180][ C2] [ 31.914180][ C2] and interrupts could create inverse lock ordering between them. [ 31.914180][ C2] [ 31.914687][ C2] [ 31.914687][ C2] other info that might help us debug this: [ 31.914896][ C2] Possible interrupt unsafe locking scenario: [ 31.914896][ C2] [ 31.915101][ C2] CPU0 CPU1 [ 31.915238][ C2] ---- ---- [ 31.915373][ C2] lock(&p->alloc_lock); [ 31.915479][ C2] local_irq_disable(); [ 31.915650][ C2] lock(&ndev->lock); [ 31.915822][ C2] lock(&p->alloc_lock); [ 31.916003][ C2] [ 31.916120][ C2] lock(&ndev->lock); [ 31.916223][ C2] [ 31.916223][ C2] *** DEADLOCK *** [ 31.916223][ C2] [ 31.916419][ C2] 1 lock held by swapper/2/0: [ 31.916557][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.916810][ C2] [ 31.916810][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.917045][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.917185][ C2] HARDIRQ-ON-W at: [ 31.917289][ C2] __lock_acquire+0x797/0x1570 [ 31.917475][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.917648][ C2] _raw_spin_lock+0x30/0x40 [ 31.917823][ C2] set_mems_allowed+0x1d/0x210 [ 31.917998][ C2] kernel_init_freeable+0x72/0x310 [ 31.918173][ C2] kernel_init+0x20/0x200 [ 31.918344][ C2] ret_from_fork+0x31/0x70 [ 31.918516][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.918687][ C2] SOFTIRQ-ON-W at: [ 31.918790][ C2] __lock_acquire+0x797/0x1570 [ 31.918959][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.919133][ C2] _raw_spin_lock+0x30/0x40 [ 31.919307][ C2] set_mems_allowed+0x1d/0x210 [ 31.919479][ C2] kernel_init_freeable+0x72/0x310 [ 31.919649][ C2] kernel_init+0x20/0x200 [ 31.919820][ C2] ret_from_fork+0x31/0x70 [ 31.919993][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.920167][ C2] INITIAL USE at: [ 31.920269][ C2] __lock_acquire+0x797/0x1570 [ 31.920443][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.920611][ C2] _raw_spin_lock+0x30/0x40 [ 31.920782][ C2] set_mems_allowed+0x1d/0x210 [ 31.920953][ C2] kernel_init_freeable+0x72/0x310 [ 31.921128][ C2] kernel_init+0x20/0x200 [ 31.921299][ C2] ret_from_fork+0x31/0x70 [ 31.921469][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.921649][ C2] } [ 31.921734][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.921937][ C2] ... acquired at: [ 31.922039][ C2] __lock_acquire+0xaf0/0x1570 [ 31.922178][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.922316][ C2] _raw_spin_lock+0x30/0x40 [ 31.922451][ C2] __get_task_comm+0x27/0x70 [ 31.922589][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.922726][ C2] netdev_get_by_index+0x5e/0x80 [ 31.922862][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.922999][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.923132][ C2] ip6_route_add+0x1c/0x140 [ 31.923267][ C2] addrconf_prefix_route+0x2a6/0x430 [ 31.923404][ C2] addrconf_permanent_addr+0x32f/0x670 [ 31.923540][ C2] addrconf_notify+0x749/0xd60 [ 31.923675][ C2] notifier_call_chain+0xcd/0x150 [ 31.923811][ C2] __dev_notify_flags+0xe6/0x250 [ 31.923950][ C2] dev_change_flags+0xec/0x160 [ 31.924084][ C2] do_setlink+0x7d6/0x21e0 [ 31.924230][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.924362][ C2] rtnl_newlink+0x63/0xa0 [ 31.924499][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.924647][ C2] netlink_rcv_skb+0x130/0x360 [ 31.924809][ C2] netlink_unicast+0x449/0x710 [ 31.924945][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.925083][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.925219][ C2] ___sys_sendmsg+0xee/0x170 [ 31.925355][ C2] __sys_sendmsg+0xcd/0x170 [ 31.925490][ C2] do_syscall_64+0xc6/0x1e0 [ 31.925630][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.925801][ C2] [ 31.925870][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.926008][ C2] HARDIRQ-ON-W at: [ 31.926111][ C2] __lock_acquire+0x797/0x1570 [ 31.926286][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.926456][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.926627][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.926808][ C2] addrconf_notify+0x749/0xd60 [ 31.926978][ C2] notifier_call_chain+0xcd/0x150 [ 31.927150][ C2] __dev_notify_flags+0xe6/0x250 [ 31.927319][ C2] dev_change_flags+0xec/0x160 [ 31.927498][ C2] do_setlink+0x7d6/0x21e0 [ 31.927668][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.927837][ C2] rtnl_newlink+0x63/0xa0 [ 31.928011][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.928180][ C2] netlink_rcv_skb+0x130/0x360 [ 31.928349][ C2] netlink_unicast+0x449/0x710 [ 31.928521][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.928694][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.928865][ C2] ___sys_sendmsg+0xee/0x170 [ 31.929038][ C2] __sys_sendmsg+0xcd/0x170 [ 31.929211][ C2] do_syscall_64+0xc6/0x1e0 [ 31.929380][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.929589][ C2] HARDIRQ-ON-R at: [ 31.929691][ C2] __lock_acquire+0x797/0x1570 [ 31.929865][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.930035][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.930212][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.930390][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.930562][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.930731][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.930903][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.931104][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.931277][ C2] register_netdevice+0x1177/0x1690 [ 31.931445][ C2] register_netdev+0x20/0x40 [ 31.931615][ C2] vti6_init_net+0x25d/0x380 [ 31.931786][ C2] ops_init+0x9b/0x560 [ 31.931924][ C2] register_pernet_operations+0x2db/0x710 [ 31.932127][ C2] register_pernet_device+0x2a/0x60 [ 31.932298][ C2] vti6_tunnel_init+0x18/0x110 [ 31.932469][ C2] do_one_initcall+0x8d/0x1e0 [ 31.932640][ C2] do_initcalls+0x1b2/0x3e0 [ 31.932810][ C2] kernel_init_freeable+0x232/0x310 [ 31.932989][ C2] kernel_init+0x20/0x200 [ 31.933154][ C2] ret_from_fork+0x31/0x70 [ 31.933341][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.933515][ C2] IN-SOFTIRQ-W at: [ 31.933617][ C2] __lock_acquire+0x797/0x1570 [ 31.933787][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.933958][ C2] _raw_write_lock+0x30/0x40 [ 31.934132][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.934300][ C2] call_timer_fn+0x13b/0x230 [ 31.934499][ C2] __run_timers+0x545/0x810 [ 31.934673][ C2] timer_expire_remote+0x9b/0xe0 [ 31.934843][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.935016][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.935186][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.935355][ C2] __do_softirq+0x1f8/0x5df [ 31.935525][ C2] irq_exit_rcu+0x97/0xc0 [ 31.935711][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.935910][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.936107][ C2] default_idle+0xf/0x20 [ 31.936274][ C2] default_idle_call+0x6d/0xb0 [ 31.936437][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.936620][ C2] do_idle+0xf9/0x160 [ 31.936763][ C2] cpu_startup_entry+0x54/0x60 [ 31.936931][ C2] start_secondary+0x21c/0x2b0 [ 31.937103][ C2] common_startup_64+0x12c/0x138 [ 31.937276][ C2] INITIAL USE at: [ 31.937380][ C2] __lock_acquire+0x797/0x1570 [ 31.937563][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.937735][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.937908][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.938164][ C2] addrconf_notify+0x749/0xd60 [ 31.938334][ C2] notifier_call_chain+0xcd/0x150 [ 31.938503][ C2] __dev_notify_flags+0xe6/0x250 [ 31.938754][ C2] dev_change_flags+0xec/0x160 [ 31.938924][ C2] do_setlink+0x7d6/0x21e0 [ 31.939097][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.939265][ C2] rtnl_newlink+0x63/0xa0 [ 31.939517][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.939685][ C2] netlink_rcv_skb+0x130/0x360 [ 31.939855][ C2] netlink_unicast+0x449/0x710 [ 31.940104][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.940273][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.940445][ C2] ___sys_sendmsg+0xee/0x170 [ 31.940701][ C2] __sys_sendmsg+0xcd/0x170 [ 31.940865][ C2] do_syscall_64+0xc6/0x1e0 [ 31.941049][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.941252][ C2] INITIAL READ USE at: [ 31.941438][ C2] __lock_acquire+0x797/0x1570 [ 31.941612][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.941782][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.942032][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.942235][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.942413][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.942585][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.942870][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.943076][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.943245][ C2] register_netdevice+0x1177/0x1690 [ 31.943614][ C2] register_netdev+0x20/0x40 [ 31.943783][ C2] vti6_init_net+0x25d/0x380 [ 31.943952][ C2] ops_init+0x9b/0x560 [ 31.944203][ C2] register_pernet_operations+0x2db/0x710 [ 31.944404][ C2] register_pernet_device+0x2a/0x60 [ 31.944611][ C2] vti6_tunnel_init+0x18/0x110 [ 31.944859][ C2] do_one_initcall+0x8d/0x1e0 [ 31.945027][ C2] do_initcalls+0x1b2/0x3e0 [ 31.945196][ C2] kernel_init_freeable+0x232/0x310 [ 31.945495][ C2] kernel_init+0x20/0x200 [ 31.945663][ C2] ret_from_fork+0x31/0x70 [ 31.945834][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.946082][ C2] } [ 31.946150][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.946351][ C2] ... acquired at: [ 31.946450][ C2] mark_lock+0x28d/0x3e0 [ 31.946590][ C2] mark_usage+0xd9/0x2a0 [ 31.946803][ C2] __lock_acquire+0x797/0x1570 [ 31.946938][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.947072][ C2] _raw_write_lock+0x30/0x40 [ 31.947207][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.947419][ C2] call_timer_fn+0x13b/0x230 [ 31.947569][ C2] __run_timers+0x545/0x810 [ 31.947704][ C2] timer_expire_remote+0x9b/0xe0 [ 31.947842][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.948055][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.948190][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.948323][ C2] __do_softirq+0x1f8/0x5df [ 31.948457][ C2] irq_exit_rcu+0x97/0xc0 [ 31.948591][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.948836][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.949003][ C2] default_idle+0xf/0x20 [ 31.949140][ C2] default_idle_call+0x6d/0xb0 [ 31.949352][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.949488][ C2] do_idle+0xf9/0x160 [ 31.949590][ C2] cpu_startup_entry+0x54/0x60 [ 31.949724][ C2] start_secondary+0x21c/0x2b0 [ 31.949857][ C2] common_startup_64+0x12c/0x138 [ 31.950068][ C2] [ 31.950135][ C2] [ 31.950135][ C2] stack backtrace: [ 31.950302][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.950507][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.950882][ C2] Call Trace: [ 31.950990][ C2] [ 31.951060][ C2] dump_stack_lvl+0x82/0xd0 [ 31.951204][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.951447][ C2] ? kernel_text_address+0x17/0xe0 [ 31.951599][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.951762][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.951988][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.952122][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.952260][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.952394][ C2] ? common_startup_64+0x12c/0x138 [ 31.952529][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.952745][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.952883][ C2] ? save_trace+0x8f/0x5b0 [ 31.953017][ C2] mark_lock+0x28d/0x3e0 [ 31.953117][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.953326][ C2] mark_usage+0xd9/0x2a0 [ 31.953428][ C2] __lock_acquire+0x797/0x1570 [ 31.953563][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.953699][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.953830][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.954120][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.954253][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.954385][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.954524][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.954736][ C2] ? lock_acquire+0x32/0xc0 [ 31.954868][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.955000][ C2] _raw_write_lock+0x30/0x40 [ 31.955132][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.955339][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.955473][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.955606][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.955749][ C2] ? call_timer_fn+0xe8/0x230 [ 31.955970][ C2] ? lock_acquire+0x32/0xc0 [ 31.956103][ C2] ? call_timer_fn+0xe8/0x230 [ 31.956232][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.956360][ C2] call_timer_fn+0x13b/0x230 [ 31.956507][ C2] ? call_timer_fn+0xe8/0x230 [ 31.956645][ C2] ? call_timer_fn+0xe8/0x230 [ 31.956777][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.956910][ C2] ? mark_lock+0x38/0x3e0 [ 31.957014][ C2] __run_timers+0x545/0x810 [ 31.957228][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.957361][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.957504][ C2] ? __lock_release+0x103/0x460 [ 31.957639][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.957848][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.957985][ C2] ? lock_acquire+0x32/0xc0 [ 31.958117][ C2] ? timer_expire_remote+0x93/0xe0 [ 31.958252][ C2] timer_expire_remote+0x9b/0xe0 [ 31.958385][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.958598][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.958767][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.958902][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.959037][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.959252][ C2] __do_softirq+0x1f8/0x5df [ 31.959387][ C2] irq_exit_rcu+0x97/0xc0 [ 31.959491][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.959625][ C2] [ 31.959694][ C2] [ 31.959841][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.960006][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.960146][ C2] 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 [ 31.960711][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.960884][ C2] RAX: 00000000000ce195 RBX: 1ffff9200002bfc1 RCX: ffffffff88d32ea5 [ 31.961164][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff864ac1d4 [ 31.961368][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 31.961571][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 31.961852][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.962053][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.962186][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.962322][ C2] default_idle_call+0x6d/0xb0 [ 31.962535][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.962671][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.962804][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.962939][ C2] do_idle+0xf9/0x160 [ 31.963118][ C2] cpu_startup_entry+0x54/0x60 [ 31.963251][ C2] start_secondary+0x21c/0x2b0 [ 31.963386][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.963520][ C2] common_startup_64+0x12c/0x138 [ 31.963732][ C2]