[ 41.259836][ C2] [ 41.259944][ C2] ======================================================== [ 41.260168][ C2] WARNING: possible irq lock inversion dependency detected [ 41.260379][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 41.260522][ C2] -------------------------------------------------------- [ 41.260747][ C2] swapper/2/0 just changed the state of lock: [ 41.260953][ C2] ffff888006803d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 41.261212][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 41.261425][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 41.261429][ C2] [ 41.261429][ C2] [ 41.261429][ C2] and interrupts could create inverse lock ordering between them. [ 41.261429][ C2] [ 41.261919][ C2] [ 41.261919][ C2] other info that might help us debug this: [ 41.262119][ C2] Possible interrupt unsafe locking scenario: [ 41.262119][ C2] [ 41.262317][ C2] CPU0 CPU1 [ 41.262452][ C2] ---- ---- [ 41.262585][ C2] lock(&p->alloc_lock); [ 41.262687][ C2] local_irq_disable(); [ 41.262850][ C2] lock(&ndev->lock); [ 41.263016][ C2] lock(&p->alloc_lock); [ 41.263182][ C2] [ 41.263282][ C2] lock(&ndev->lock); [ 41.263387][ C2] [ 41.263387][ C2] *** DEADLOCK *** [ 41.263387][ C2] [ 41.263580][ C2] 1 lock held by swapper/2/0: [ 41.263738][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 41.264006][ C2] [ 41.264006][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 41.264248][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 41.264407][ C2] HARDIRQ-ON-W at: [ 41.264517][ C2] __lock_acquire+0x797/0x1570 [ 41.264702][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.264903][ C2] _raw_spin_lock+0x30/0x40 [ 41.265075][ C2] set_mems_allowed+0x1d/0x210 [ 41.265246][ C2] kernel_init_freeable+0x72/0x310 [ 41.265434][ C2] kernel_init+0x20/0x200 [ 41.265609][ C2] ret_from_fork+0x31/0x70 [ 41.265796][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.265974][ C2] SOFTIRQ-ON-W at: [ 41.266075][ C2] __lock_acquire+0x797/0x1570 [ 41.266245][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.266414][ C2] _raw_spin_lock+0x30/0x40 [ 41.266589][ C2] set_mems_allowed+0x1d/0x210 [ 41.266760][ C2] kernel_init_freeable+0x72/0x310 [ 41.266928][ C2] kernel_init+0x20/0x200 [ 41.267097][ C2] ret_from_fork+0x31/0x70 [ 41.267269][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.267437][ C2] INITIAL USE at: [ 41.267538][ C2] __lock_acquire+0x797/0x1570 [ 41.267709][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.267879][ C2] _raw_spin_lock+0x30/0x40 [ 41.268047][ C2] set_mems_allowed+0x1d/0x210 [ 41.268216][ C2] kernel_init_freeable+0x72/0x310 [ 41.268385][ C2] kernel_init+0x20/0x200 [ 41.268554][ C2] ret_from_fork+0x31/0x70 [ 41.268727][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.268896][ C2] } [ 41.268965][ C2] ... key at: [] __key.388+0x0/0x40 [ 41.269167][ C2] ... acquired at: [ 41.269267][ C2] __lock_acquire+0xaf0/0x1570 [ 41.269404][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.269537][ C2] _raw_spin_lock+0x30/0x40 [ 41.269675][ C2] __get_task_comm+0x27/0x70 [ 41.269810][ C2] ref_tracker_alloc+0x2ee/0x490 [ 41.269946][ C2] netdev_get_by_index+0x5e/0x80 [ 41.270079][ C2] fib6_nh_init+0x3d8/0x1580 [ 41.270216][ C2] ip6_route_info_create+0xf18/0x17d0 [ 41.270349][ C2] addrconf_f6i_alloc+0x265/0x560 [ 41.270483][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 41.270617][ C2] addrconf_join_anycast+0x1c0/0x220 [ 41.270754][ C2] __ipv6_ifa_notify+0x6b3/0xaf0 [ 41.270887][ C2] addrconf_dad_completed+0x12b/0xe20 [ 41.271020][ C2] addrconf_dad_begin+0x310/0x670 [ 41.271152][ C2] addrconf_dad_work+0x10b/0xab0 [ 41.271286][ C2] process_one_work+0xe2c/0x1730 [ 41.271420][ C2] worker_thread+0x587/0xd30 [ 41.271554][ C2] kthread+0x28a/0x350 [ 41.271665][ C2] ret_from_fork+0x31/0x70 [ 41.271824][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.271979][ C2] [ 41.272059][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 41.272197][ C2] HARDIRQ-ON-W at: [ 41.272306][ C2] __lock_acquire+0x797/0x1570 [ 41.272494][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.272665][ C2] _raw_write_lock_bh+0x38/0x50 [ 41.272853][ C2] addrconf_permanent_addr+0x6e/0x670 [ 41.273023][ C2] addrconf_notify+0x749/0xd60 [ 41.273193][ C2] notifier_call_chain+0xcd/0x150 [ 41.273373][ C2] __dev_notify_flags+0xe6/0x250 [ 41.273545][ C2] dev_change_flags+0xec/0x160 [ 41.273733][ C2] do_setlink+0x7d6/0x21e0 [ 41.273902][ C2] __rtnl_newlink+0xaa7/0xd80 [ 41.274089][ C2] rtnl_newlink+0x63/0xa0 [ 41.274266][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 41.274539][ C2] netlink_rcv_skb+0x130/0x360 [ 41.274727][ C2] netlink_unicast+0x449/0x710 [ 41.274896][ C2] netlink_sendmsg+0x723/0xbe0 [ 41.275172][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 41.275346][ C2] ___sys_sendmsg+0xee/0x170 [ 41.275532][ C2] __sys_sendmsg+0xcd/0x170 [ 41.275709][ C2] do_syscall_64+0xc6/0x1e0 [ 41.275985][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 41.276203][ C2] HARDIRQ-ON-R at: [ 41.276304][ C2] __lock_acquire+0x797/0x1570 [ 41.276476][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.276647][ C2] _raw_read_lock_bh+0x44/0x80 [ 41.276817][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 41.276985][ C2] inet6_fill_link_af+0x5e/0xe0 [ 41.277233][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 41.277400][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 41.277567][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 41.277856][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 41.278026][ C2] register_netdevice+0x1177/0x1690 [ 41.278194][ C2] register_netdev+0x20/0x40 [ 41.278362][ C2] vti6_init_net+0x25d/0x380 [ 41.278530][ C2] ops_init+0x9b/0x560 [ 41.278664][ C2] register_pernet_operations+0x2db/0x710 [ 41.278867][ C2] register_pernet_device+0x2a/0x60 [ 41.279115][ C2] vti6_tunnel_init+0x18/0x110 [ 41.279284][ C2] do_one_initcall+0x8d/0x1e0 [ 41.279452][ C2] do_initcalls+0x1b2/0x3e0 [ 41.279701][ C2] kernel_init_freeable+0x232/0x310 [ 41.279870][ C2] kernel_init+0x20/0x200 [ 41.280037][ C2] ret_from_fork+0x31/0x70 [ 41.280213][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.280466][ C2] IN-SOFTIRQ-W at: [ 41.280567][ C2] __lock_acquire+0x797/0x1570 [ 41.280736][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.280983][ C2] _raw_write_lock+0x30/0x40 [ 41.281160][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.281358][ C2] call_timer_fn+0x13b/0x230 [ 41.281531][ C2] __run_timers+0x545/0x810 [ 41.281804][ C2] timer_expire_remote+0x9b/0xe0 [ 41.281987][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 41.282178][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 41.282442][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 41.282618][ C2] __do_softirq+0x1f8/0x5df [ 41.282807][ C2] irq_exit_rcu+0x97/0xc0 [ 41.282977][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.283282][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.283501][ C2] default_idle+0xf/0x20 [ 41.283669][ C2] default_idle_call+0x6d/0xb0 [ 41.283955][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.284137][ C2] do_idle+0xf9/0x160 [ 41.284285][ C2] cpu_startup_entry+0x54/0x60 [ 41.284473][ C2] start_secondary+0x21c/0x2b0 [ 41.284644][ C2] common_startup_64+0x12c/0x138 [ 41.284819][ C2] INITIAL USE at: [ 41.284938][ C2] __lock_acquire+0x797/0x1570 [ 41.285216][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.285397][ C2] _raw_write_lock_bh+0x38/0x50 [ 41.285587][ C2] addrconf_permanent_addr+0x6e/0x670 [ 41.285870][ C2] addrconf_notify+0x749/0xd60 [ 41.286039][ C2] notifier_call_chain+0xcd/0x150 [ 41.286213][ C2] __dev_notify_flags+0xe6/0x250 [ 41.286401][ C2] dev_change_flags+0xec/0x160 [ 41.286591][ C2] do_setlink+0x7d6/0x21e0 [ 41.286760][ C2] __rtnl_newlink+0xaa7/0xd80 [ 41.286936][ C2] rtnl_newlink+0x63/0xa0 [ 41.287300][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 41.287470][ C2] netlink_rcv_skb+0x130/0x360 [ 41.287648][ C2] netlink_unicast+0x449/0x710 [ 41.287834][ C2] netlink_sendmsg+0x723/0xbe0 [ 41.288083][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 41.288276][ C2] ___sys_sendmsg+0xee/0x170 [ 41.288452][ C2] __sys_sendmsg+0xcd/0x170 [ 41.288717][ C2] do_syscall_64+0xc6/0x1e0 [ 41.288906][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 41.289118][ C2] INITIAL READ USE at: [ 41.289219][ C2] __lock_acquire+0x797/0x1570 [ 41.289492][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.289685][ C2] _raw_read_lock_bh+0x44/0x80 [ 41.289863][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 41.290166][ C2] inet6_fill_link_af+0x5e/0xe0 [ 41.290353][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 41.290531][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 41.290837][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 41.291056][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 41.291233][ C2] register_netdevice+0x1177/0x1690 [ 41.291454][ C2] register_netdev+0x20/0x40 [ 41.291623][ C2] vti6_init_net+0x25d/0x380 [ 41.291823][ C2] ops_init+0x9b/0x560 [ 41.292086][ C2] register_pernet_operations+0x2db/0x710 [ 41.292287][ C2] register_pernet_device+0x2a/0x60 [ 41.292488][ C2] vti6_tunnel_init+0x18/0x110 [ 41.292737][ C2] do_one_initcall+0x8d/0x1e0 [ 41.292907][ C2] do_initcalls+0x1b2/0x3e0 [ 41.293078][ C2] kernel_init_freeable+0x232/0x310 [ 41.293281][ C2] kernel_init+0x20/0x200 [ 41.293529][ C2] ret_from_fork+0x31/0x70 [ 41.293698][ C2] ret_from_fork_asm+0x1a/0x30 [ 41.293867][ C2] } [ 41.293935][ C2] ... key at: [] __key.37+0x0/0x40 [ 41.294216][ C2] ... acquired at: [ 41.294315][ C2] mark_lock+0x28d/0x3e0 [ 41.294450][ C2] mark_usage+0xd9/0x2a0 [ 41.294585][ C2] __lock_acquire+0x797/0x1570 [ 41.294797][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.294931][ C2] _raw_write_lock+0x30/0x40 [ 41.295066][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.295202][ C2] call_timer_fn+0x13b/0x230 [ 41.295416][ C2] __run_timers+0x545/0x810 [ 41.295554][ C2] timer_expire_remote+0x9b/0xe0 [ 41.295687][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 41.295821][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 41.296040][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 41.296192][ C2] __do_softirq+0x1f8/0x5df [ 41.296328][ C2] irq_exit_rcu+0x97/0xc0 [ 41.296478][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.296731][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.296918][ C2] default_idle+0xf/0x20 [ 41.297051][ C2] default_idle_call+0x6d/0xb0 [ 41.297202][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.297415][ C2] do_idle+0xf9/0x160 [ 41.297516][ C2] cpu_startup_entry+0x54/0x60 [ 41.297658][ C2] start_secondary+0x21c/0x2b0 [ 41.297817][ C2] common_startup_64+0x12c/0x138 [ 41.297951][ C2] [ 41.298192][ C2] [ 41.298192][ C2] stack backtrace: [ 41.298366][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 41.298584][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 41.298988][ C2] Call Trace: [ 41.299103][ C2] [ 41.299191][ C2] dump_stack_lvl+0x82/0xd0 [ 41.299329][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 41.299516][ C2] ? kernel_text_address+0x17/0xe0 [ 41.299653][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 41.299829][ C2] ? __pfx_usage_skip+0x10/0x10 [ 41.299980][ C2] ? __pfx_usage_match+0x10/0x10 [ 41.300213][ C2] ? arch_stack_walk+0x8c/0xf0 [ 41.300351][ C2] mark_lock_irq+0x4cd/0xa10 [ 41.300493][ C2] ? common_startup_64+0x12c/0x138 [ 41.300644][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 41.300887][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 41.301025][ C2] ? save_trace+0x8f/0x5b0 [ 41.301167][ C2] mark_lock+0x28d/0x3e0 [ 41.301285][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 41.301420][ C2] mark_usage+0xd9/0x2a0 [ 41.301537][ C2] __lock_acquire+0x797/0x1570 [ 41.301675][ C2] ? __pfx_validate_chain+0x10/0x10 [ 41.301828][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.301993][ C2] lock_acquire.part.0+0xeb/0x330 [ 41.302126][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.302278][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 41.302411][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 41.302552][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.302705][ C2] ? lock_acquire+0x32/0xc0 [ 41.302922][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.303070][ C2] _raw_write_lock+0x30/0x40 [ 41.303213][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 41.303348][ C2] addrconf_rs_timer+0xa9/0x730 [ 41.303497][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 41.303634][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.303783][ C2] ? call_timer_fn+0xe8/0x230 [ 41.303915][ C2] ? lock_acquire+0x32/0xc0 [ 41.304124][ C2] ? call_timer_fn+0xe8/0x230 [ 41.304256][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.304395][ C2] call_timer_fn+0x13b/0x230 [ 41.304530][ C2] ? call_timer_fn+0xe8/0x230 [ 41.304741][ C2] ? call_timer_fn+0xe8/0x230 [ 41.304890][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 41.305022][ C2] ? mark_lock+0x38/0x3e0 [ 41.305143][ C2] __run_timers+0x545/0x810 [ 41.305276][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 41.305503][ C2] ? __pfx___run_timers+0x10/0x10 [ 41.305651][ C2] ? __lock_release+0x103/0x460 [ 41.305801][ C2] ? do_raw_spin_lock+0x131/0x270 [ 41.305937][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 41.306158][ C2] ? lock_acquire+0x32/0xc0 [ 41.306309][ C2] ? timer_expire_remote+0x93/0xe0 [ 41.306442][ C2] timer_expire_remote+0x9b/0xe0 [ 41.306594][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 41.306809][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 41.306977][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 41.307114][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 41.307246][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 41.307381][ C2] __do_softirq+0x1f8/0x5df [ 41.307514][ C2] irq_exit_rcu+0x97/0xc0 [ 41.307616][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 41.307749][ C2] [ 41.307817][ C2] [ 41.307885][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 41.308127][ C2] RIP: 0010:default_idle+0xf/0x20 [ 41.308268][ 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 [ 41.308906][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 41.309078][ C2] RAX: 0000000000143be1 RBX: 1ffff9200002bfc1 RCX: ffffffff87f32ea5 [ 41.309279][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff856ac1d4 [ 41.309485][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 41.309683][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 41.309881][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 41.310084][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 41.310216][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 41.310354][ C2] default_idle_call+0x6d/0xb0 [ 41.310564][ C2] cpuidle_idle_call+0x1f4/0x280 [ 41.310697][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 41.310840][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 41.310983][ C2] do_idle+0xf9/0x160 [ 41.311094][ C2] cpu_startup_entry+0x54/0x60 [ 41.311326][ C2] start_secondary+0x21c/0x2b0 [ 41.311460][ C2] ? __pfx_start_secondary+0x10/0x10 [ 41.311604][ C2] common_startup_64+0x12c/0x138 [ 41.311756][ C2]