[ 94.772392][ C1] [ 94.772568][ C1] ======================================================== [ 94.772820][ C1] WARNING: possible irq lock inversion dependency detected [ 94.773057][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 94.773207][ C1] -------------------------------------------------------- [ 94.773439][ C1] swapper/1/0 just changed the state of lock: [ 94.773649][ C1] ffff888005f46d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 94.773954][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 94.774191][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 94.774196][ C1] [ 94.774196][ C1] [ 94.774196][ C1] and interrupts could create inverse lock ordering between them. [ 94.774196][ C1] [ 94.774786][ C1] [ 94.774786][ C1] other info that might help us debug this: [ 94.775026][ C1] Possible interrupt unsafe locking scenario: [ 94.775026][ C1] [ 94.775255][ C1] CPU0 CPU1 [ 94.775421][ C1] ---- ---- [ 94.775565][ C1] lock(&p->alloc_lock); [ 94.775692][ C1] local_irq_disable(); [ 94.775892][ C1] lock(&ndev->lock); [ 94.776076][ C1] lock(&p->alloc_lock); [ 94.776282][ C1] [ 94.776402][ C1] lock(&ndev->lock); [ 94.776528][ C1] [ 94.776528][ C1] *** DEADLOCK *** [ 94.776528][ C1] [ 94.776757][ C1] 1 lock held by swapper/1/0: [ 94.776907][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 94.777193][ C1] [ 94.777193][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 94.777458][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 94.777632][ C1] HARDIRQ-ON-W at: [ 94.777750][ C1] __lock_acquire+0x797/0x1570 [ 94.777959][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.778157][ C1] _raw_spin_lock+0x30/0x40 [ 94.778370][ C1] set_mems_allowed+0x1d/0x210 [ 94.778560][ C1] kernel_init_freeable+0x72/0x310 [ 94.778770][ C1] kernel_init+0x20/0x200 [ 94.778975][ C1] ret_from_fork+0x31/0x70 [ 94.779178][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.779389][ C1] SOFTIRQ-ON-W at: [ 94.779502][ C1] __lock_acquire+0x797/0x1570 [ 94.779686][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.779882][ C1] _raw_spin_lock+0x30/0x40 [ 94.780069][ C1] set_mems_allowed+0x1d/0x210 [ 94.780256][ C1] kernel_init_freeable+0x72/0x310 [ 94.780439][ C1] kernel_init+0x20/0x200 [ 94.780626][ C1] ret_from_fork+0x31/0x70 [ 94.780815][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.781004][ C1] INITIAL USE at: [ 94.781116][ C1] __lock_acquire+0x797/0x1570 [ 94.781315][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.781501][ C1] _raw_spin_lock+0x30/0x40 [ 94.781688][ C1] set_mems_allowed+0x1d/0x210 [ 94.781877][ C1] kernel_init_freeable+0x72/0x310 [ 94.782067][ C1] kernel_init+0x20/0x200 [ 94.782250][ C1] ret_from_fork+0x31/0x70 [ 94.782440][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.782628][ C1] } [ 94.782705][ C1] ... key at: [] __key.387+0x0/0x40 [ 94.782931][ C1] ... acquired at: [ 94.783043][ C1] __lock_acquire+0xaf0/0x1570 [ 94.783197][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.783354][ C1] _raw_spin_lock+0x30/0x40 [ 94.783499][ C1] __get_task_comm+0x27/0x70 [ 94.783652][ C1] ref_tracker_alloc+0x2ee/0x490 [ 94.783800][ C1] netdev_get_by_index+0x5e/0x80 [ 94.783962][ C1] fib6_nh_init+0x3d8/0x15b0 [ 94.784111][ C1] ip6_route_info_create+0xf18/0x17d0 [ 94.784257][ C1] addrconf_f6i_alloc+0x265/0x560 [ 94.784409][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 94.784563][ C1] addrconf_join_anycast+0x1c0/0x220 [ 94.784733][ C1] __ipv6_ifa_notify+0x6b3/0xaf0 [ 94.784882][ C1] addrconf_dad_completed+0x12b/0xe20 [ 94.785033][ C1] addrconf_dad_work+0x38c/0xab0 [ 94.785203][ C1] process_one_work+0xe2c/0x1730 [ 94.785357][ C1] worker_thread+0x587/0xd30 [ 94.785516][ C1] kthread+0x28a/0x350 [ 94.785641][ C1] ret_from_fork+0x31/0x70 [ 94.785792][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.785970][ C1] [ 94.786049][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 94.786202][ C1] HARDIRQ-ON-W at: [ 94.786332][ C1] __lock_acquire+0x797/0x1570 [ 94.786527][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.786726][ C1] _raw_write_lock_bh+0x38/0x50 [ 94.786939][ C1] addrconf_permanent_addr+0x6e/0x670 [ 94.787144][ C1] addrconf_notify+0x749/0xd60 [ 94.787353][ C1] notifier_call_chain+0xcd/0x150 [ 94.787563][ C1] __dev_notify_flags+0xe6/0x250 [ 94.787751][ C1] dev_change_flags+0xec/0x160 [ 94.787969][ C1] do_setlink+0x7d6/0x21e0 [ 94.788161][ C1] __rtnl_newlink+0xaa7/0xd80 [ 94.788364][ C1] rtnl_newlink+0x63/0xa0 [ 94.788568][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 94.788761][ C1] netlink_rcv_skb+0x130/0x360 [ 94.788970][ C1] netlink_unicast+0x449/0x710 [ 94.789158][ C1] netlink_sendmsg+0x723/0xbe0 [ 94.789345][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 94.789569][ C1] ___sys_sendmsg+0xee/0x170 [ 94.789772][ C1] __sys_sendmsg+0xcd/0x170 [ 94.789962][ C1] do_syscall_64+0xc6/0x1e0 [ 94.790168][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 94.790416][ C1] HARDIRQ-ON-R at: [ 94.790538][ C1] __lock_acquire+0x797/0x1570 [ 94.790742][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.790953][ C1] _raw_read_lock_bh+0x44/0x80 [ 94.791148][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 94.791364][ C1] inet6_fill_link_af+0x5e/0xe0 [ 94.791552][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 94.791758][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 94.791955][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 94.792196][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 94.792411][ C1] register_netdevice+0x1177/0x1690 [ 94.792601][ C1] register_netdev+0x20/0x40 [ 94.792808][ C1] sit_init_net+0x250/0x4f0 [ 94.793013][ C1] ops_init+0x9b/0x560 [ 94.793165][ C1] register_pernet_operations+0x2db/0x710 [ 94.793442][ C1] register_pernet_device+0x2a/0x60 [ 94.793628][ C1] sit_init+0x23/0xe0 [ 94.793796][ C1] do_one_initcall+0x8d/0x1e0 [ 94.794051][ C1] do_initcalls+0x1b2/0x3e0 [ 94.794239][ C1] kernel_init_freeable+0x232/0x310 [ 94.794445][ C1] kernel_init+0x20/0x200 [ 94.794634][ C1] ret_from_fork+0x31/0x70 [ 94.794853][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.795044][ C1] IN-SOFTIRQ-W at: [ 94.795156][ C1] __lock_acquire+0x797/0x1570 [ 94.795344][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.795531][ C1] _raw_write_lock+0x30/0x40 [ 94.795743][ C1] addrconf_rs_timer+0xa9/0x730 [ 94.795966][ C1] call_timer_fn+0x13b/0x230 [ 94.796161][ C1] __run_timers+0x545/0x810 [ 94.796351][ C1] timer_expire_remote+0x9b/0xe0 [ 94.796537][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 94.796727][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 94.796911][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 94.797167][ C1] __do_softirq+0x1f8/0x5df [ 94.797355][ C1] irq_exit_rcu+0x97/0xc0 [ 94.797563][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 94.797799][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 94.798037][ C1] default_idle+0xf/0x20 [ 94.798232][ C1] default_idle_call+0x6d/0xb0 [ 94.798440][ C1] cpuidle_idle_call+0x1f4/0x280 [ 94.798665][ C1] do_idle+0xf9/0x160 [ 94.798815][ C1] cpu_startup_entry+0x54/0x60 [ 94.799003][ C1] start_secondary+0x21c/0x2b0 [ 94.799188][ C1] common_startup_64+0x12c/0x138 [ 94.799375][ C1] INITIAL USE at: [ 94.799490][ C1] __lock_acquire+0x797/0x1570 [ 94.799695][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.799916][ C1] _raw_write_lock_bh+0x38/0x50 [ 94.800100][ C1] addrconf_permanent_addr+0x6e/0x670 [ 94.800340][ C1] addrconf_notify+0x749/0xd60 [ 94.800527][ C1] notifier_call_chain+0xcd/0x150 [ 94.800730][ C1] __dev_notify_flags+0xe6/0x250 [ 94.800925][ C1] dev_change_flags+0xec/0x160 [ 94.801118][ C1] do_setlink+0x7d6/0x21e0 [ 94.801333][ C1] __rtnl_newlink+0xaa7/0xd80 [ 94.801524][ C1] rtnl_newlink+0x63/0xa0 [ 94.801720][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 94.801937][ C1] netlink_rcv_skb+0x130/0x360 [ 94.802126][ C1] netlink_unicast+0x449/0x710 [ 94.802318][ C1] netlink_sendmsg+0x723/0xbe0 [ 94.802503][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 94.802686][ C1] ___sys_sendmsg+0xee/0x170 [ 94.802874][ C1] __sys_sendmsg+0xcd/0x170 [ 94.803066][ C1] do_syscall_64+0xc6/0x1e0 [ 94.803249][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 94.803472][ C1] INITIAL READ USE at: [ 94.803589][ C1] __lock_acquire+0x797/0x1570 [ 94.803773][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.803969][ C1] _raw_read_lock_bh+0x44/0x80 [ 94.804152][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 94.804372][ C1] inet6_fill_link_af+0x5e/0xe0 [ 94.804558][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 94.804754][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 94.805059][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 94.805278][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 94.805462][ C1] register_netdevice+0x1177/0x1690 [ 94.805762][ C1] register_netdev+0x20/0x40 [ 94.805946][ C1] sit_init_net+0x250/0x4f0 [ 94.806139][ C1] ops_init+0x9b/0x560 [ 94.806403][ C1] register_pernet_operations+0x2db/0x710 [ 94.806628][ C1] register_pernet_device+0x2a/0x60 [ 94.806848][ C1] sit_init+0x23/0xe0 [ 94.807114][ C1] do_one_initcall+0x8d/0x1e0 [ 94.807302][ C1] do_initcalls+0x1b2/0x3e0 [ 94.807492][ C1] kernel_init_freeable+0x232/0x310 [ 94.807795][ C1] kernel_init+0x20/0x200 [ 94.807984][ C1] ret_from_fork+0x31/0x70 [ 94.808175][ C1] ret_from_fork_asm+0x1a/0x30 [ 94.808464][ C1] } [ 94.808577][ C1] ... key at: [] __key.37+0x0/0x40 [ 94.808803][ C1] ... acquired at: [ 94.808914][ C1] mark_lock+0x28d/0x3e0 [ 94.809068][ C1] mark_usage+0xd9/0x2a0 [ 94.809296][ C1] __lock_acquire+0x797/0x1570 [ 94.809447][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.809596][ C1] _raw_write_lock+0x30/0x40 [ 94.809744][ C1] addrconf_rs_timer+0xa9/0x730 [ 94.810085][ C1] call_timer_fn+0x13b/0x230 [ 94.810235][ C1] __run_timers+0x545/0x810 [ 94.810408][ C1] timer_expire_remote+0x9b/0xe0 [ 94.810561][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 94.810789][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 94.810964][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 94.811114][ C1] __do_softirq+0x1f8/0x5df [ 94.811287][ C1] irq_exit_rcu+0x97/0xc0 [ 94.811433][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 94.811743][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 94.811958][ C1] default_idle+0xf/0x20 [ 94.812106][ C1] default_idle_call+0x6d/0xb0 [ 94.812348][ C1] cpuidle_idle_call+0x1f4/0x280 [ 94.812498][ C1] do_idle+0xf9/0x160 [ 94.812638][ C1] cpu_startup_entry+0x54/0x60 [ 94.812788][ C1] start_secondary+0x21c/0x2b0 [ 94.812938][ C1] common_startup_64+0x12c/0x138 [ 94.813168][ C1] [ 94.813243][ C1] [ 94.813243][ C1] stack backtrace: [ 94.813452][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 94.813696][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 94.814153][ C1] Call Trace: [ 94.814259][ C1] [ 94.814363][ C1] dump_stack_lvl+0x82/0xd0 [ 94.814523][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 94.814803][ C1] ? kernel_text_address+0x17/0xe0 [ 94.814943][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 94.815153][ C1] ? __pfx_usage_skip+0x10/0x10 [ 94.815393][ C1] ? __pfx_usage_match+0x10/0x10 [ 94.815531][ C1] ? arch_stack_walk+0x8c/0xf0 [ 94.815686][ C1] mark_lock_irq+0x4cd/0xa10 [ 94.815831][ C1] ? common_startup_64+0x12c/0x138 [ 94.815968][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 94.816230][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 94.816391][ C1] ? save_trace+0x8f/0x5b0 [ 94.816546][ C1] mark_lock+0x28d/0x3e0 [ 94.816674][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 94.816929][ C1] mark_usage+0xd9/0x2a0 [ 94.817050][ C1] __lock_acquire+0x797/0x1570 [ 94.817191][ C1] ? __pfx_validate_chain+0x10/0x10 [ 94.817326][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 94.817476][ C1] lock_acquire.part.0+0xeb/0x330 [ 94.817699][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 94.817869][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.818006][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 94.818142][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 94.818356][ C1] ? lock_acquire+0x32/0xc0 [ 94.818491][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 94.818650][ C1] _raw_write_lock+0x30/0x40 [ 94.818787][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 94.819009][ C1] addrconf_rs_timer+0xa9/0x730 [ 94.819144][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 94.819280][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 94.819433][ C1] ? call_timer_fn+0xe8/0x230 [ 94.819659][ C1] ? lock_acquire+0x32/0xc0 [ 94.819823][ C1] ? call_timer_fn+0xe8/0x230 [ 94.819981][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 94.820115][ C1] call_timer_fn+0x13b/0x230 [ 94.820275][ C1] ? call_timer_fn+0xe8/0x230 [ 94.820497][ C1] ? call_timer_fn+0xe8/0x230 [ 94.820696][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 94.820831][ C1] ? mark_lock+0x38/0x3e0 [ 94.820954][ C1] __run_timers+0x545/0x810 [ 94.821214][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 94.821350][ C1] ? __pfx___run_timers+0x10/0x10 [ 94.821501][ C1] ? __lock_release+0x103/0x460 [ 94.821638][ C1] ? do_raw_spin_lock+0x131/0x270 [ 94.821963][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 94.822129][ C1] ? lock_acquire+0x32/0xc0 [ 94.822276][ C1] ? timer_expire_remote+0x93/0xe0 [ 94.822428][ C1] timer_expire_remote+0x9b/0xe0 [ 94.822564][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 94.822779][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 94.822947][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 94.823086][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 94.823249][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 94.823485][ C1] __do_softirq+0x1f8/0x5df [ 94.823620][ C1] irq_exit_rcu+0x97/0xc0 [ 94.823758][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 94.823891][ C1] [ 94.823975][ C1] [ 94.824125][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 94.824331][ C1] RIP: 0010:default_idle+0xf/0x20 [ 94.824479][ 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 a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 94.825050][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 94.825233][ C1] RAX: 0000000000150795 RBX: 1ffff92000029fc1 RCX: ffffffffabb0e9d5 [ 94.825552][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa94aa4a4 [ 94.825813][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f1709c [ 94.826028][ C1] R10: ffff88802f8b84e3 R11: ffff88802f8ad9b0 R12: 0000000000000000 [ 94.826336][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 94.826557][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 94.826692][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 94.826834][ C1] default_idle_call+0x6d/0xb0 [ 94.827048][ C1] cpuidle_idle_call+0x1f4/0x280 [ 94.827183][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 94.827319][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 94.827456][ C1] do_idle+0xf9/0x160 [ 94.827638][ C1] cpu_startup_entry+0x54/0x60 [ 94.827771][ C1] start_secondary+0x21c/0x2b0 [ 94.827904][ C1] ? __pfx_start_secondary+0x10/0x10 [ 94.828044][ C1] common_startup_64+0x12c/0x138 [ 94.828263][ C1] [ 95.199819][ T734] GACT probability NOT on