[ 30.568184][ C1] [ 30.568288][ C1] ======================================================== [ 30.568485][ C1] WARNING: possible irq lock inversion dependency detected [ 30.568679][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 30.568817][ C1] -------------------------------------------------------- [ 30.569016][ C1] swapper/1/0 just changed the state of lock: [ 30.569181][ C1] ffff8880069a2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 30.569428][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 30.569627][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 30.569631][ C1] [ 30.569631][ C1] [ 30.569631][ C1] and interrupts could create inverse lock ordering between them. [ 30.569631][ C1] [ 30.570161][ C1] [ 30.570161][ C1] other info that might help us debug this: [ 30.570362][ C1] Possible interrupt unsafe locking scenario: [ 30.570362][ C1] [ 30.570555][ C1] CPU0 CPU1 [ 30.570681][ C1] ---- ---- [ 30.570811][ C1] lock(&p->alloc_lock); [ 30.570918][ C1] local_irq_disable(); [ 30.571077][ C1] lock(&ndev->lock); [ 30.571247][ C1] lock(&p->alloc_lock); [ 30.571415][ C1] [ 30.571521][ C1] lock(&ndev->lock); [ 30.571622][ C1] [ 30.571622][ C1] *** DEADLOCK *** [ 30.571622][ C1] [ 30.571821][ C1] 1 lock held by swapper/1/0: [ 30.571952][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 30.572189][ C1] [ 30.572189][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 30.572412][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 30.572546][ C1] HARDIRQ-ON-W at: [ 30.572644][ C1] __lock_acquire+0x797/0x1570 [ 30.572822][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.572985][ C1] _raw_spin_lock+0x30/0x40 [ 30.573154][ C1] set_mems_allowed+0x1d/0x210 [ 30.573318][ C1] kernel_init_freeable+0x72/0x310 [ 30.573482][ C1] kernel_init+0x20/0x200 [ 30.573644][ C1] ret_from_fork+0x31/0x70 [ 30.573809][ C1] ret_from_fork_asm+0x1a/0x30 [ 30.573976][ C1] SOFTIRQ-ON-W at: [ 30.574072][ C1] __lock_acquire+0x797/0x1570 [ 30.574237][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.574398][ C1] _raw_spin_lock+0x30/0x40 [ 30.574560][ C1] set_mems_allowed+0x1d/0x210 [ 30.574721][ C1] kernel_init_freeable+0x72/0x310 [ 30.574881][ C1] kernel_init+0x20/0x200 [ 30.575042][ C1] ret_from_fork+0x31/0x70 [ 30.575208][ C1] ret_from_fork_asm+0x1a/0x30 [ 30.575370][ C1] INITIAL USE at: [ 30.575467][ C1] __lock_acquire+0x797/0x1570 [ 30.575628][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.575797][ C1] _raw_spin_lock+0x30/0x40 [ 30.575957][ C1] set_mems_allowed+0x1d/0x210 [ 30.576133][ C1] kernel_init_freeable+0x72/0x310 [ 30.576302][ C1] kernel_init+0x20/0x200 [ 30.576470][ C1] ret_from_fork+0x31/0x70 [ 30.576632][ C1] ret_from_fork_asm+0x1a/0x30 [ 30.576797][ C1] } [ 30.576866][ C1] ... key at: [] __key.388+0x0/0x40 [ 30.577059][ C1] ... acquired at: [ 30.577158][ C1] __lock_acquire+0xaf0/0x1570 [ 30.577290][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.577422][ C1] _raw_spin_lock+0x30/0x40 [ 30.577552][ C1] __get_task_comm+0x27/0x70 [ 30.577693][ C1] ref_tracker_alloc+0x2ee/0x490 [ 30.577826][ C1] netdev_get_by_index+0x5e/0x80 [ 30.577957][ C1] fib6_nh_init+0x3d8/0x1580 [ 30.578088][ C1] ip6_route_info_create+0xf18/0x17d0 [ 30.578229][ C1] ip6_route_add+0x1c/0x140 [ 30.578361][ C1] addrconf_prefix_route+0x2a6/0x430 [ 30.578497][ C1] addrconf_permanent_addr+0x32f/0x670 [ 30.578626][ C1] addrconf_notify+0x749/0xd60 [ 30.578767][ C1] notifier_call_chain+0xcd/0x150 [ 30.578898][ C1] __dev_notify_flags+0xe6/0x250 [ 30.579029][ C1] dev_change_flags+0xec/0x160 [ 30.579156][ C1] do_setlink+0x7d6/0x21e0 [ 30.579289][ C1] __rtnl_newlink+0xaa7/0xd80 [ 30.579418][ C1] rtnl_newlink+0x63/0xa0 [ 30.579546][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.579673][ C1] netlink_rcv_skb+0x130/0x360 [ 30.579806][ C1] netlink_unicast+0x449/0x710 [ 30.579934][ C1] netlink_sendmsg+0x723/0xbe0 [ 30.580062][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 30.580192][ C1] ___sys_sendmsg+0xee/0x170 [ 30.580322][ C1] __sys_sendmsg+0xcd/0x170 [ 30.580453][ C1] do_syscall_64+0xc6/0x1e0 [ 30.580594][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.580769][ C1] [ 30.580841][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 30.580984][ C1] HARDIRQ-ON-W at: [ 30.581090][ C1] __lock_acquire+0x797/0x1570 [ 30.581267][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.581443][ C1] _raw_write_lock_bh+0x38/0x50 [ 30.581623][ C1] addrconf_permanent_addr+0x6e/0x670 [ 30.581800][ C1] addrconf_notify+0x749/0xd60 [ 30.581976][ C1] notifier_call_chain+0xcd/0x150 [ 30.582153][ C1] __dev_notify_flags+0xe6/0x250 [ 30.582331][ C1] dev_change_flags+0xec/0x160 [ 30.582505][ C1] do_setlink+0x7d6/0x21e0 [ 30.582683][ C1] __rtnl_newlink+0xaa7/0xd80 [ 30.582860][ C1] rtnl_newlink+0x63/0xa0 [ 30.583035][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.583213][ C1] netlink_rcv_skb+0x130/0x360 [ 30.583390][ C1] netlink_unicast+0x449/0x710 [ 30.583566][ C1] netlink_sendmsg+0x723/0xbe0 [ 30.583745][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 30.583924][ C1] ___sys_sendmsg+0xee/0x170 [ 30.584101][ C1] __sys_sendmsg+0xcd/0x170 [ 30.584279][ C1] do_syscall_64+0xc6/0x1e0 [ 30.584458][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.584652][ C1] HARDIRQ-ON-R at: [ 30.584748][ C1] __lock_acquire+0x797/0x1570 [ 30.584913][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.585077][ C1] _raw_read_lock_bh+0x44/0x80 [ 30.585239][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.585399][ C1] inet6_fill_link_af+0x5e/0xe0 [ 30.585560][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.585727][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.585896][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.586090][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 30.586253][ C1] register_netdevice+0x1177/0x1690 [ 30.586414][ C1] register_netdev+0x20/0x40 [ 30.586573][ C1] vti6_init_net+0x25d/0x380 [ 30.586737][ C1] ops_init+0x9b/0x560 [ 30.586868][ C1] register_pernet_operations+0x2db/0x710 [ 30.587063][ C1] register_pernet_device+0x2a/0x60 [ 30.587223][ C1] vti6_tunnel_init+0x18/0x110 [ 30.587388][ C1] do_one_initcall+0x8d/0x1e0 [ 30.587550][ C1] do_initcalls+0x1b2/0x3e0 [ 30.587711][ C1] kernel_init_freeable+0x232/0x310 [ 30.587875][ C1] kernel_init+0x20/0x200 [ 30.588038][ C1] ret_from_fork+0x31/0x70 [ 30.588202][ C1] ret_from_fork_asm+0x1a/0x30 [ 30.588364][ C1] IN-SOFTIRQ-W at: [ 30.588462][ C1] __lock_acquire+0x797/0x1570 [ 30.588623][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.588788][ C1] _raw_write_lock+0x30/0x40 [ 30.588951][ C1] addrconf_rs_timer+0xa9/0x730 [ 30.589114][ C1] call_timer_fn+0x13b/0x230 [ 30.589276][ C1] __run_timers+0x545/0x810 [ 30.589436][ C1] run_timer_softirq+0xe8/0x1b0 [ 30.589599][ C1] __do_softirq+0x1f8/0x5df [ 30.589761][ C1] irq_exit_rcu+0x97/0xc0 [ 30.589931][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.590129][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.590321][ C1] default_idle+0xf/0x20 [ 30.590481][ C1] default_idle_call+0x6d/0xb0 [ 30.590643][ C1] cpuidle_idle_call+0x1f4/0x280 [ 30.590807][ C1] do_idle+0xf9/0x160 [ 30.590936][ C1] cpu_startup_entry+0x54/0x60 [ 30.591096][ C1] start_secondary+0x21c/0x2b0 [ 30.591262][ C1] common_startup_64+0x12c/0x138 [ 30.591424][ C1] INITIAL USE at: [ 30.591521][ C1] __lock_acquire+0x797/0x1570 [ 30.591683][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.591849][ C1] _raw_write_lock_bh+0x38/0x50 [ 30.592010][ C1] addrconf_permanent_addr+0x6e/0x670 [ 30.592174][ C1] addrconf_notify+0x749/0xd60 [ 30.592335][ C1] notifier_call_chain+0xcd/0x150 [ 30.592498][ C1] __dev_notify_flags+0xe6/0x250 [ 30.592659][ C1] dev_change_flags+0xec/0x160 [ 30.592823][ C1] do_setlink+0x7d6/0x21e0 [ 30.592983][ C1] __rtnl_newlink+0xaa7/0xd80 [ 30.593143][ C1] rtnl_newlink+0x63/0xa0 [ 30.593306][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.593465][ C1] netlink_rcv_skb+0x130/0x360 [ 30.593626][ C1] netlink_unicast+0x449/0x710 [ 30.593795][ C1] netlink_sendmsg+0x723/0xbe0 [ 30.593957][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 30.594117][ C1] ___sys_sendmsg+0xee/0x170 [ 30.594278][ C1] __sys_sendmsg+0xcd/0x170 [ 30.594440][ C1] do_syscall_64+0xc6/0x1e0 [ 30.594602][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.594800][ C1] INITIAL READ USE at: [ 30.594900][ C1] __lock_acquire+0x797/0x1570 [ 30.595061][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.595222][ C1] _raw_read_lock_bh+0x44/0x80 [ 30.595384][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.595577][ C1] inet6_fill_link_af+0x5e/0xe0 [ 30.595744][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.595926][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.596118][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.596311][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 30.596473][ C1] register_netdevice+0x1177/0x1690 [ 30.596666][ C1] register_netdev+0x20/0x40 [ 30.596828][ C1] vti6_init_net+0x25d/0x380 [ 30.596990][ C1] ops_init+0x9b/0x560 [ 30.597152][ C1] register_pernet_operations+0x2db/0x710 [ 30.597345][ C1] register_pernet_device+0x2a/0x60 [ 30.597541][ C1] vti6_tunnel_init+0x18/0x110 [ 30.597701][ C1] do_one_initcall+0x8d/0x1e0 [ 30.597866][ C1] do_initcalls+0x1b2/0x3e0 [ 30.598028][ C1] kernel_init_freeable+0x232/0x310 [ 30.598222][ C1] kernel_init+0x20/0x200 [ 30.598390][ C1] ret_from_fork+0x31/0x70 [ 30.598552][ C1] ret_from_fork_asm+0x1a/0x30 [ 30.598713][ C1] } [ 30.598781][ C1] ... key at: [] __key.37+0x0/0x40 [ 30.598975][ C1] ... acquired at: [ 30.599070][ C1] mark_lock+0x28d/0x3e0 [ 30.599199][ C1] mark_usage+0xd9/0x2a0 [ 30.599329][ C1] __lock_acquire+0x797/0x1570 [ 30.599461][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.599591][ C1] _raw_write_lock+0x30/0x40 [ 30.599720][ C1] addrconf_rs_timer+0xa9/0x730 [ 30.599858][ C1] call_timer_fn+0x13b/0x230 [ 30.599986][ C1] __run_timers+0x545/0x810 [ 30.600119][ C1] run_timer_softirq+0xe8/0x1b0 [ 30.600248][ C1] __do_softirq+0x1f8/0x5df [ 30.600379][ C1] irq_exit_rcu+0x97/0xc0 [ 30.600507][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.600672][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.600834][ C1] default_idle+0xf/0x20 [ 30.600962][ C1] default_idle_call+0x6d/0xb0 [ 30.601092][ C1] cpuidle_idle_call+0x1f4/0x280 [ 30.601298][ C1] do_idle+0xf9/0x160 [ 30.601396][ C1] cpu_startup_entry+0x54/0x60 [ 30.601524][ C1] start_secondary+0x21c/0x2b0 [ 30.601653][ C1] common_startup_64+0x12c/0x138 [ 30.601787][ C1] [ 30.601851][ C1] [ 30.601851][ C1] stack backtrace: [ 30.602009][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 30.602201][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.602554][ C1] Call Trace: [ 30.602657][ C1] [ 30.602724][ C1] dump_stack_lvl+0x82/0xd0 [ 30.602859][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.603094][ C1] ? kernel_text_address+0x17/0xe0 [ 30.603224][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.603383][ C1] ? __pfx_usage_skip+0x10/0x10 [ 30.603511][ C1] ? __pfx_usage_match+0x10/0x10 [ 30.603711][ C1] ? arch_stack_walk+0x8c/0xf0 [ 30.603845][ C1] mark_lock_irq+0x4cd/0xa10 [ 30.603973][ C1] ? common_startup_64+0x12c/0x138 [ 30.604102][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.604304][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 30.604435][ C1] ? save_trace+0x8f/0x5b0 [ 30.604564][ C1] mark_lock+0x28d/0x3e0 [ 30.604661][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 30.604791][ C1] mark_usage+0xd9/0x2a0 [ 30.604961][ C1] __lock_acquire+0x797/0x1570 [ 30.605090][ C1] ? __pfx_validate_chain+0x10/0x10 [ 30.605220][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.605346][ C1] lock_acquire.part.0+0xeb/0x330 [ 30.605547][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 30.605675][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.605814][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 30.605942][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 30.606257][ C1] ? lock_acquire+0x32/0xc0 [ 30.606384][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 30.606510][ C1] _raw_write_lock+0x30/0x40 [ 30.606639][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 30.606765][ C1] addrconf_rs_timer+0xa9/0x730 [ 30.606893][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.607021][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.607148][ C1] ? call_timer_fn+0xe8/0x230 [ 30.607275][ C1] ? lock_acquire+0x32/0xc0 [ 30.607403][ C1] ? call_timer_fn+0xe8/0x230 [ 30.607531][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.607659][ C1] call_timer_fn+0x13b/0x230 [ 30.607789][ C1] ? call_timer_fn+0xe8/0x230 [ 30.607916][ C1] ? call_timer_fn+0xe8/0x230 [ 30.608043][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 30.608170][ C1] ? mark_lock+0x38/0x3e0 [ 30.608270][ C1] __run_timers+0x545/0x810 [ 30.608397][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.608598][ C1] ? __pfx___run_timers+0x10/0x10 [ 30.608726][ C1] ? do_raw_spin_lock+0x131/0x270 [ 30.608861][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.608988][ C1] ? lock_acquire+0x32/0xc0 [ 30.609189][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 30.609319][ C1] run_timer_softirq+0xe8/0x1b0 [ 30.609449][ C1] __do_softirq+0x1f8/0x5df [ 30.609579][ C1] irq_exit_rcu+0x97/0xc0 [ 30.609678][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.609808][ C1] [ 30.609873][ C1] [ 30.609941][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.610100][ C1] RIP: 0010:default_idle+0xf/0x20 [ 30.610234][ 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 [ 30.610686][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 30.610858][ C1] RAX: 000000000006fe67 RBX: 1ffff92000029fc1 RCX: ffffffff92932ea5 [ 30.611054][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff900ac1d4 [ 30.611244][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 30.611516][ C1] R10: ffff8880360b84e3 R11: 1ffff110003ab1cc R12: 0000000000000000 [ 30.611707][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 30.611904][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.612106][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 30.612236][ C1] default_idle_call+0x6d/0xb0 [ 30.612363][ C1] cpuidle_idle_call+0x1f4/0x280 [ 30.612491][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.612694][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.612826][ C1] do_idle+0xf9/0x160 [ 30.612924][ C1] cpu_startup_entry+0x54/0x60 [ 30.613053][ C1] start_secondary+0x21c/0x2b0 [ 30.613181][ C1] ? __pfx_start_secondary+0x10/0x10 [ 30.613384][ C1] common_startup_64+0x12c/0x138 [ 30.613516][ C1]