[ 31.214795][ C2] [ 31.214897][ C2] ======================================================== [ 31.215114][ C2] WARNING: possible irq lock inversion dependency detected [ 31.215311][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.215444][ C2] -------------------------------------------------------- [ 31.215641][ C2] swapper/2/0 just changed the state of lock: [ 31.215814][ C2] ffff88800663ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.216056][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.216247][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.216251][ C2] [ 31.216251][ C2] [ 31.216251][ C2] and interrupts could create inverse lock ordering between them. [ 31.216251][ C2] [ 31.216727][ C2] [ 31.216727][ C2] other info that might help us debug this: [ 31.216918][ C2] Possible interrupt unsafe locking scenario: [ 31.216918][ C2] [ 31.217115][ C2] CPU0 CPU1 [ 31.217244][ C2] ---- ---- [ 31.217373][ C2] lock(&p->alloc_lock); [ 31.217474][ C2] local_irq_disable(); [ 31.217634][ C2] lock(&ndev->lock); [ 31.217797][ C2] lock(&p->alloc_lock); [ 31.217961][ C2] [ 31.218059][ C2] lock(&ndev->lock); [ 31.218159][ C2] [ 31.218159][ C2] *** DEADLOCK *** [ 31.218159][ C2] [ 31.218350][ C2] 1 lock held by swapper/2/0: [ 31.218480][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.218718][ C2] [ 31.218718][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.218944][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.219080][ C2] HARDIRQ-ON-W at: [ 31.219181][ C2] __lock_acquire+0x797/0x1570 [ 31.219353][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.219519][ C2] _raw_spin_lock+0x30/0x40 [ 31.219687][ C2] set_mems_allowed+0x1d/0x210 [ 31.219855][ C2] kernel_init_freeable+0x72/0x310 [ 31.220022][ C2] kernel_init+0x20/0x200 [ 31.220189][ C2] ret_from_fork+0x31/0x70 [ 31.220359][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.220525][ C2] SOFTIRQ-ON-W at: [ 31.220624][ C2] __lock_acquire+0x797/0x1570 [ 31.220790][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.220959][ C2] _raw_spin_lock+0x30/0x40 [ 31.221124][ C2] set_mems_allowed+0x1d/0x210 [ 31.221289][ C2] kernel_init_freeable+0x72/0x310 [ 31.221453][ C2] kernel_init+0x20/0x200 [ 31.221618][ C2] ret_from_fork+0x31/0x70 [ 31.221784][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.221952][ C2] INITIAL USE at: [ 31.222052][ C2] __lock_acquire+0x797/0x1570 [ 31.222217][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.222382][ C2] _raw_spin_lock+0x30/0x40 [ 31.222547][ C2] set_mems_allowed+0x1d/0x210 [ 31.222712][ C2] kernel_init_freeable+0x72/0x310 [ 31.222879][ C2] kernel_init+0x20/0x200 [ 31.223044][ C2] ret_from_fork+0x31/0x70 [ 31.223208][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.223372][ C2] } [ 31.223441][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.223665][ C2] ... acquired at: [ 31.223771][ C2] __lock_acquire+0xaf0/0x1570 [ 31.223910][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.224044][ C2] _raw_spin_lock+0x30/0x40 [ 31.224177][ C2] __get_task_comm+0x27/0x70 [ 31.224314][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.224451][ C2] netdev_get_by_index+0x5e/0x80 [ 31.224587][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.224722][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.224863][ C2] ip6_route_add+0x1c/0x140 [ 31.224995][ C2] addrconf_prefix_route+0x2a6/0x430 [ 31.225127][ C2] addrconf_permanent_addr+0x32f/0x670 [ 31.225258][ C2] addrconf_notify+0x749/0xd60 [ 31.225388][ C2] notifier_call_chain+0xcd/0x150 [ 31.225523][ C2] __dev_notify_flags+0xe6/0x250 [ 31.225655][ C2] dev_change_flags+0xec/0x160 [ 31.225793][ C2] do_setlink+0x7d6/0x21e0 [ 31.225923][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.226058][ C2] rtnl_newlink+0x63/0xa0 [ 31.226189][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.226320][ C2] netlink_rcv_skb+0x130/0x360 [ 31.226452][ C2] netlink_unicast+0x449/0x710 [ 31.226584][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.226715][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.226848][ C2] ___sys_sendmsg+0xee/0x170 [ 31.226981][ C2] __sys_sendmsg+0xcd/0x170 [ 31.227114][ C2] do_syscall_64+0xc6/0x1e0 [ 31.227253][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.227418][ C2] [ 31.227485][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.227618][ C2] HARDIRQ-ON-W at: [ 31.227717][ C2] __lock_acquire+0x797/0x1570 [ 31.227884][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.228051][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.228216][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.228383][ C2] addrconf_notify+0x749/0xd60 [ 31.228547][ C2] notifier_call_chain+0xcd/0x150 [ 31.228710][ C2] __dev_notify_flags+0xe6/0x250 [ 31.228877][ C2] dev_change_flags+0xec/0x160 [ 31.229041][ C2] do_setlink+0x7d6/0x21e0 [ 31.229205][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.229371][ C2] rtnl_newlink+0x63/0xa0 [ 31.229537][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.229702][ C2] netlink_rcv_skb+0x130/0x360 [ 31.229867][ C2] netlink_unicast+0x449/0x710 [ 31.230031][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.230197][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.230361][ C2] ___sys_sendmsg+0xee/0x170 [ 31.230531][ C2] __sys_sendmsg+0xcd/0x170 [ 31.230696][ C2] do_syscall_64+0xc6/0x1e0 [ 31.230860][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.231055][ C2] HARDIRQ-ON-R at: [ 31.231154][ C2] __lock_acquire+0x797/0x1570 [ 31.231321][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.231486][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.231652][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.231817][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.231981][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.232147][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.232311][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.232512][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.232675][ C2] register_netdevice+0x1177/0x1690 [ 31.232839][ C2] register_netdev+0x20/0x40 [ 31.233006][ C2] vti6_init_net+0x25d/0x380 [ 31.233171][ C2] ops_init+0x9b/0x560 [ 31.233303][ C2] register_pernet_operations+0x2db/0x710 [ 31.233501][ C2] register_pernet_device+0x2a/0x60 [ 31.233704][ C2] vti6_tunnel_init+0x18/0x110 [ 31.233877][ C2] do_one_initcall+0x8d/0x1e0 [ 31.234047][ C2] do_initcalls+0x1b2/0x3e0 [ 31.234217][ C2] kernel_init_freeable+0x232/0x310 [ 31.234386][ C2] kernel_init+0x20/0x200 [ 31.234554][ C2] ret_from_fork+0x31/0x70 [ 31.234741][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.234905][ C2] IN-SOFTIRQ-W at: [ 31.235004][ C2] __lock_acquire+0x797/0x1570 [ 31.235169][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.235336][ C2] _raw_write_lock+0x30/0x40 [ 31.235503][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.235665][ C2] call_timer_fn+0x13b/0x230 [ 31.235836][ C2] __run_timers+0x545/0x810 [ 31.236001][ C2] timer_expire_remote+0x9b/0xe0 [ 31.236165][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.236334][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.236499][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.236663][ C2] __do_softirq+0x1f8/0x5df [ 31.236831][ C2] irq_exit_rcu+0x97/0xc0 [ 31.236997][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.237196][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.237392][ C2] default_idle+0xf/0x20 [ 31.237556][ C2] default_idle_call+0x6d/0xb0 [ 31.237720][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.237886][ C2] do_idle+0xf9/0x160 [ 31.238020][ C2] cpu_startup_entry+0x54/0x60 [ 31.238185][ C2] start_secondary+0x21c/0x2b0 [ 31.238351][ C2] common_startup_64+0x12c/0x138 [ 31.238515][ C2] INITIAL USE at: [ 31.238614][ C2] __lock_acquire+0x797/0x1570 [ 31.238872][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.239039][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.239204][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.239370][ C2] addrconf_notify+0x749/0xd60 [ 31.239534][ C2] notifier_call_chain+0xcd/0x150 [ 31.239700][ C2] __dev_notify_flags+0xe6/0x250 [ 31.239941][ C2] dev_change_flags+0xec/0x160 [ 31.240108][ C2] do_setlink+0x7d6/0x21e0 [ 31.240272][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.240435][ C2] rtnl_newlink+0x63/0xa0 [ 31.240678][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.240842][ C2] netlink_rcv_skb+0x130/0x360 [ 31.241005][ C2] netlink_unicast+0x449/0x710 [ 31.241247][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.241413][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.241578][ C2] ___sys_sendmsg+0xee/0x170 [ 31.241743][ C2] __sys_sendmsg+0xcd/0x170 [ 31.241984][ C2] do_syscall_64+0xc6/0x1e0 [ 31.242148][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.242342][ C2] INITIAL READ USE at: [ 31.242595][ C2] __lock_acquire+0x797/0x1570 [ 31.242762][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.242927][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.243092][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.243366][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.243553][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.243721][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.244002][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.244203][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.244371][ C2] register_netdevice+0x1177/0x1690 [ 31.244652][ C2] register_netdev+0x20/0x40 [ 31.244828][ C2] vti6_init_net+0x25d/0x380 [ 31.244994][ C2] ops_init+0x9b/0x560 [ 31.245234][ C2] register_pernet_operations+0x2db/0x710 [ 31.245431][ C2] register_pernet_device+0x2a/0x60 [ 31.245626][ C2] vti6_tunnel_init+0x18/0x110 [ 31.245874][ C2] do_one_initcall+0x8d/0x1e0 [ 31.246038][ C2] do_initcalls+0x1b2/0x3e0 [ 31.246203][ C2] kernel_init_freeable+0x232/0x310 [ 31.246402][ C2] kernel_init+0x20/0x200 [ 31.246566][ C2] ret_from_fork+0x31/0x70 [ 31.246730][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.246895][ C2] } [ 31.247037][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.247233][ C2] ... acquired at: [ 31.247333][ C2] mark_lock+0x28d/0x3e0 [ 31.247463][ C2] mark_usage+0xd9/0x2a0 [ 31.247673][ C2] __lock_acquire+0x797/0x1570 [ 31.247804][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.247934][ C2] _raw_write_lock+0x30/0x40 [ 31.248064][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.248274][ C2] call_timer_fn+0x13b/0x230 [ 31.248404][ C2] __run_timers+0x545/0x810 [ 31.248534][ C2] timer_expire_remote+0x9b/0xe0 [ 31.248668][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.248798][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.249003][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.249135][ C2] __do_softirq+0x1f8/0x5df [ 31.249266][ C2] irq_exit_rcu+0x97/0xc0 [ 31.249395][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.249634][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.249798][ C2] default_idle+0xf/0x20 [ 31.249927][ C2] default_idle_call+0x6d/0xb0 [ 31.250059][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.250265][ C2] do_idle+0xf9/0x160 [ 31.250364][ C2] cpu_startup_entry+0x54/0x60 [ 31.250493][ C2] start_secondary+0x21c/0x2b0 [ 31.250622][ C2] common_startup_64+0x12c/0x138 [ 31.250831][ C2] [ 31.250896][ C2] [ 31.250896][ C2] stack backtrace: [ 31.251063][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.251257][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.251543][ C2] Call Trace: [ 31.251647][ C2] [ 31.251715][ C2] dump_stack_lvl+0x82/0xd0 [ 31.251854][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.252090][ C2] ? kernel_text_address+0x17/0xe0 [ 31.252226][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.252386][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.252517][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.252797][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.252930][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.253059][ C2] ? common_startup_64+0x12c/0x138 [ 31.253189][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.253395][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.253535][ C2] ? save_trace+0x8f/0x5b0 [ 31.253687][ C2] mark_lock+0x28d/0x3e0 [ 31.253791][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.254002][ C2] mark_usage+0xd9/0x2a0 [ 31.254104][ C2] __lock_acquire+0x797/0x1570 [ 31.254240][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.254374][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.254507][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.254719][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.254864][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.254994][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.255125][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.255328][ C2] ? lock_acquire+0x32/0xc0 [ 31.255460][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.255590][ C2] _raw_write_lock+0x30/0x40 [ 31.255722][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.255928][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.256057][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.256188][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.256317][ C2] ? call_timer_fn+0xe8/0x230 [ 31.256447][ C2] ? lock_acquire+0x32/0xc0 [ 31.256653][ C2] ? call_timer_fn+0xe8/0x230 [ 31.256783][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.256912][ C2] call_timer_fn+0x13b/0x230 [ 31.257055][ C2] ? call_timer_fn+0xe8/0x230 [ 31.257261][ C2] ? call_timer_fn+0xe8/0x230 [ 31.257392][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.257524][ C2] ? mark_lock+0x38/0x3e0 [ 31.257625][ C2] __run_timers+0x545/0x810 [ 31.257831][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.257981][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.258113][ C2] ? __lock_release+0x103/0x460 [ 31.258247][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.258382][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.258597][ C2] ? lock_acquire+0x32/0xc0 [ 31.258731][ C2] ? timer_expire_remote+0x93/0xe0 [ 31.258865][ C2] timer_expire_remote+0x9b/0xe0 [ 31.258998][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.259216][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.259379][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.259512][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.259643][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.259854][ C2] __do_softirq+0x1f8/0x5df [ 31.259986][ C2] irq_exit_rcu+0x97/0xc0 [ 31.260084][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.260214][ C2] [ 31.260281][ C2] [ 31.260351][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.260513][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.260657][ 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 fb 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.261197][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.261369][ C2] RAX: 00000000000d57af RBX: 1ffff9200002bfc1 RCX: ffffffff85531ea5 [ 31.261642][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff82cac1d4 [ 31.261839][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 31.262032][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 31.262305][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.262500][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.262629][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.262760][ C2] default_idle_call+0x6d/0xb0 [ 31.263063][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.263196][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.263332][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.263466][ C2] do_idle+0xf9/0x160 [ 31.263653][ C2] cpu_startup_entry+0x54/0x60 [ 31.263786][ C2] start_secondary+0x21c/0x2b0 [ 31.263919][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.264053][ C2] common_startup_64+0x12c/0x138 [ 31.264195][ C2]