[ 67.320257][ C0] [ 67.320447][ C0] ======================================================== [ 67.320732][ C0] WARNING: possible irq lock inversion dependency detected [ 67.321028][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 67.321207][ C0] -------------------------------------------------------- [ 67.321472][ C0] swapper/0/0 just changed the state of lock: [ 67.321688][ C0] ffff888005b63d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 67.322014][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 67.322281][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 67.322287][ C0] [ 67.322287][ C0] [ 67.322287][ C0] and interrupts could create inverse lock ordering between them. [ 67.322287][ C0] [ 67.323008][ C0] [ 67.323008][ C0] other info that might help us debug this: [ 67.323332][ C0] Possible interrupt unsafe locking scenario: [ 67.323332][ C0] [ 67.323670][ C0] CPU0 CPU1 [ 67.323897][ C0] ---- ---- [ 67.324123][ C0] lock(&p->alloc_lock); [ 67.324298][ C0] local_irq_disable(); [ 67.324590][ C0] lock(&ndev->lock); [ 67.324878][ C0] lock(&p->alloc_lock); [ 67.325167][ C0] [ 67.325345][ C0] lock(&ndev->lock); [ 67.325519][ C0] [ 67.325519][ C0] *** DEADLOCK *** [ 67.325519][ C0] [ 67.325845][ C0] 1 lock held by swapper/0/0: [ 67.326074][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 67.326493][ C0] [ 67.326493][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 67.326885][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 67.327122][ C0] HARDIRQ-ON-W at: [ 67.327296][ C0] __lock_acquire+0x797/0x1570 [ 67.327589][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.327885][ C0] _raw_spin_lock+0x30/0x40 [ 67.328173][ C0] set_mems_allowed+0x1d/0x210 [ 67.328459][ C0] kernel_init_freeable+0x72/0x310 [ 67.328758][ C0] kernel_init+0x20/0x200 [ 67.329044][ C0] ret_from_fork+0x31/0x70 [ 67.329329][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.329618][ C0] SOFTIRQ-ON-W at: [ 67.329790][ C0] __lock_acquire+0x797/0x1570 [ 67.330077][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.330358][ C0] _raw_spin_lock+0x30/0x40 [ 67.330650][ C0] set_mems_allowed+0x1d/0x210 [ 67.330951][ C0] kernel_init_freeable+0x72/0x310 [ 67.331237][ C0] kernel_init+0x20/0x200 [ 67.331529][ C0] ret_from_fork+0x31/0x70 [ 67.331811][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.332087][ C0] INITIAL USE at: [ 67.332254][ C0] __lock_acquire+0x797/0x1570 [ 67.332539][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.332826][ C0] _raw_spin_lock+0x30/0x40 [ 67.333120][ C0] set_mems_allowed+0x1d/0x210 [ 67.333405][ C0] kernel_init_freeable+0x72/0x310 [ 67.333683][ C0] kernel_init+0x20/0x200 [ 67.333967][ C0] ret_from_fork+0x31/0x70 [ 67.334249][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.334532][ C0] } [ 67.334650][ C0] ... key at: [] __key.387+0x0/0x40 [ 67.334993][ C0] ... acquired at: [ 67.335164][ C0] __lock_acquire+0xaf0/0x1570 [ 67.335393][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.335618][ C0] _raw_spin_lock+0x30/0x40 [ 67.335847][ C0] __get_task_comm+0x27/0x70 [ 67.336075][ C0] ref_tracker_alloc+0x2ee/0x490 [ 67.336303][ C0] netdev_get_by_index+0x5e/0x80 [ 67.336527][ C0] fib6_nh_init+0x3d8/0x15b0 [ 67.336764][ C0] ip6_route_info_create+0xf18/0x17d0 [ 67.336988][ C0] addrconf_f6i_alloc+0x265/0x560 [ 67.337218][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 67.337443][ C0] addrconf_join_anycast+0x1c0/0x220 [ 67.337669][ C0] __ipv6_ifa_notify+0x6b3/0xaf0 [ 67.337892][ C0] addrconf_dad_completed+0x12b/0xe20 [ 67.338117][ C0] addrconf_dad_work+0x38c/0xab0 [ 67.338351][ C0] process_one_work+0xe2c/0x1730 [ 67.338582][ C0] worker_thread+0x587/0xd30 [ 67.338805][ C0] kthread+0x28a/0x350 [ 67.338975][ C0] ret_from_fork+0x31/0x70 [ 67.339207][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.339435][ C0] [ 67.339552][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 67.339790][ C0] HARDIRQ-ON-W at: [ 67.339960][ C0] __lock_acquire+0x797/0x1570 [ 67.340260][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.340544][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.340839][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.341123][ C0] addrconf_notify+0x749/0xd60 [ 67.341404][ C0] notifier_call_chain+0xcd/0x150 [ 67.341687][ C0] __dev_notify_flags+0xe6/0x250 [ 67.341980][ C0] dev_change_flags+0xec/0x160 [ 67.342264][ C0] do_setlink+0x7d6/0x21e0 [ 67.342549][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.342831][ C0] rtnl_newlink+0x63/0xa0 [ 67.343120][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.343401][ C0] netlink_rcv_skb+0x130/0x360 [ 67.343694][ C0] netlink_unicast+0x449/0x710 [ 67.343979][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.344268][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.344552][ C0] ___sys_sendmsg+0xee/0x170 [ 67.344838][ C0] __sys_sendmsg+0xcd/0x170 [ 67.345128][ C0] do_syscall_64+0xc6/0x1e0 [ 67.345415][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.345765][ C0] HARDIRQ-ON-R at: [ 67.345936][ C0] __lock_acquire+0x797/0x1570 [ 67.346226][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.346508][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.346795][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.347086][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.347373][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.347671][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.347964][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.348307][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.348596][ C0] register_netdevice+0x1177/0x1690 [ 67.348879][ C0] register_netdev+0x20/0x40 [ 67.349164][ C0] sit_init_net+0x250/0x4f0 [ 67.349462][ C0] ops_init+0x9b/0x560 [ 67.349694][ C0] register_pernet_operations+0x2db/0x710 [ 67.350038][ C0] register_pernet_device+0x2a/0x60 [ 67.350323][ C0] sit_init+0x23/0xe0 [ 67.350553][ C0] do_one_initcall+0x8d/0x1e0 [ 67.350848][ C0] do_initcalls+0x1b2/0x3e0 [ 67.351143][ C0] kernel_init_freeable+0x232/0x310 [ 67.351428][ C0] kernel_init+0x20/0x200 [ 67.351716][ C0] ret_from_fork+0x31/0x70 [ 67.352006][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.352295][ C0] IN-SOFTIRQ-W at: [ 67.352466][ C0] __lock_acquire+0x797/0x1570 [ 67.352756][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.353049][ C0] _raw_write_lock+0x30/0x40 [ 67.353336][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.353624][ C0] call_timer_fn+0x13b/0x230 [ 67.353914][ C0] __run_timers+0x545/0x810 [ 67.354200][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.354486][ C0] __do_softirq+0x1f8/0x5df [ 67.354769][ C0] irq_exit_rcu+0x97/0xc0 [ 67.355060][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.355393][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.355725][ C0] default_idle+0xf/0x20 [ 67.356012][ C0] default_idle_call+0x6d/0xb0 [ 67.356290][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.356566][ C0] do_idle+0xf9/0x160 [ 67.356801][ C0] cpu_startup_entry+0x54/0x60 [ 67.357080][ C0] rest_init+0x14f/0x260 [ 67.357356][ C0] start_kernel+0x318/0x3d0 [ 67.357631][ C0] x86_64_start_reservations+0x18/0x30 [ 67.357911][ C0] x86_64_start_kernel+0xba/0x110 [ 67.358189][ C0] common_startup_64+0x12c/0x138 [ 67.358472][ C0] INITIAL USE at: [ 67.358642][ C0] __lock_acquire+0x797/0x1570 [ 67.358919][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.359198][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.359474][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.359751][ C0] addrconf_notify+0x749/0xd60 [ 67.360031][ C0] notifier_call_chain+0xcd/0x150 [ 67.360314][ C0] __dev_notify_flags+0xe6/0x250 [ 67.360653][ C0] dev_change_flags+0xec/0x160 [ 67.360979][ C0] do_setlink+0x7d6/0x21e0 [ 67.361294][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.361610][ C0] rtnl_newlink+0x63/0xa0 [ 67.361920][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.362236][ C0] netlink_rcv_skb+0x130/0x360 [ 67.362547][ C0] netlink_unicast+0x449/0x710 [ 67.362843][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.363125][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.363411][ C0] ___sys_sendmsg+0xee/0x170 [ 67.363697][ C0] __sys_sendmsg+0xcd/0x170 [ 67.363976][ C0] do_syscall_64+0xc6/0x1e0 [ 67.364270][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.364607][ C0] INITIAL READ USE at: [ 67.364779][ C0] __lock_acquire+0x797/0x1570 [ 67.365059][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.365335][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.365619][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.365968][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.366251][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.366537][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.367033][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.367374][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.367659][ C0] register_netdevice+0x1177/0x1690 [ 67.368159][ C0] register_netdev+0x20/0x40 [ 67.368444][ C0] sit_init_net+0x250/0x4f0 [ 67.368725][ C0] ops_init+0x9b/0x560 [ 67.369161][ C0] register_pernet_operations+0x2db/0x710 [ 67.369499][ C0] register_pernet_device+0x2a/0x60 [ 67.369833][ C0] sit_init+0x23/0xe0 [ 67.370275][ C0] do_one_initcall+0x8d/0x1e0 [ 67.370553][ C0] do_initcalls+0x1b2/0x3e0 [ 67.370849][ C0] kernel_init_freeable+0x232/0x310 [ 67.371344][ C0] kernel_init+0x20/0x200 [ 67.371626][ C0] ret_from_fork+0x31/0x70 [ 67.371914][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.372210][ C0] } [ 67.372477][ C0] ... key at: [] __key.37+0x0/0x40 [ 67.372817][ C0] ... acquired at: [ 67.372983][ C0] mark_lock+0x28d/0x3e0 [ 67.373216][ C0] mark_usage+0xd9/0x2a0 [ 67.373591][ C0] __lock_acquire+0x797/0x1570 [ 67.373817][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.374046][ C0] _raw_write_lock+0x30/0x40 [ 67.374283][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.374664][ C0] call_timer_fn+0x13b/0x230 [ 67.374894][ C0] __run_timers+0x545/0x810 [ 67.375122][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.375346][ C0] __do_softirq+0x1f8/0x5df [ 67.375568][ C0] irq_exit_rcu+0x97/0xc0 [ 67.375951][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.376230][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.376513][ C0] default_idle+0xf/0x20 [ 67.377043][ C0] default_idle_call+0x6d/0xb0 [ 67.377269][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.377496][ C0] do_idle+0xf9/0x160 [ 67.377664][ C0] cpu_startup_entry+0x54/0x60 [ 67.377886][ C0] rest_init+0x14f/0x260 [ 67.378260][ C0] start_kernel+0x318/0x3d0 [ 67.378487][ C0] x86_64_start_reservations+0x18/0x30 [ 67.378710][ C0] x86_64_start_kernel+0xba/0x110 [ 67.378939][ C0] common_startup_64+0x12c/0x138 [ 67.379312][ C0] [ 67.379425][ C0] [ 67.379425][ C0] stack backtrace: [ 67.379697][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 67.380033][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 67.380676][ C0] Call Trace: [ 67.380851][ C0] [ 67.380974][ C0] dump_stack_lvl+0x82/0xd0 [ 67.381204][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 67.381639][ C0] ? kernel_text_address+0x17/0xe0 [ 67.381867][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 67.382147][ C0] ? __pfx_usage_skip+0x10/0x10 [ 67.382372][ C0] ? __pfx_usage_match+0x10/0x10 [ 67.382748][ C0] ? arch_stack_walk+0x8c/0xf0 [ 67.382975][ C0] mark_lock_irq+0x4cd/0xa10 [ 67.383213][ C0] ? common_startup_64+0x12c/0x138 [ 67.383438][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 67.383827][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.384058][ C0] ? save_trace+0x8f/0x5b0 [ 67.384286][ C0] mark_lock+0x28d/0x3e0 [ 67.384461][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.384835][ C0] mark_usage+0xd9/0x2a0 [ 67.385014][ C0] __lock_acquire+0x797/0x1570 [ 67.385255][ C0] ? __pfx_validate_chain+0x10/0x10 [ 67.385480][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.385705][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.386082][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.386314][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.386540][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 67.386766][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.387145][ C0] ? lock_acquire+0x32/0xc0 [ 67.387377][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.387622][ C0] _raw_write_lock+0x30/0x40 [ 67.387848][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.388230][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.388456][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.388684][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.388912][ C0] ? call_timer_fn+0xe8/0x230 [ 67.389144][ C0] ? lock_acquire+0x32/0xc0 [ 67.389521][ C0] ? call_timer_fn+0xe8/0x230 [ 67.389757][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.389986][ C0] call_timer_fn+0x13b/0x230 [ 67.390210][ C0] ? call_timer_fn+0xe8/0x230 [ 67.390581][ C0] ? call_timer_fn+0xe8/0x230 [ 67.390815][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 67.391043][ C0] ? mark_lock+0x38/0x3e0 [ 67.391221][ C0] __run_timers+0x545/0x810 [ 67.391604][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.391842][ C0] ? __pfx___run_timers+0x10/0x10 [ 67.392071][ C0] ? do_raw_spin_lock+0x131/0x270 [ 67.392295][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 67.392525][ C0] ? lock_acquire+0x32/0xc0 [ 67.392900][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 67.393130][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.393359][ C0] __do_softirq+0x1f8/0x5df [ 67.393588][ C0] irq_exit_rcu+0x97/0xc0 [ 67.393914][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.394146][ C0] [ 67.394260][ C0] [ 67.394374][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.394652][ C0] RIP: 0010:default_idle+0xf/0x20 [ 67.395199][ C0] 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 93 20 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 [ 67.395998][ C0] RSP: 0018:ffffffff8e807e00 EFLAGS: 00000246 [ 67.396449][ C0] RAX: 0000000000114663 RBX: 1ffffffff1d00fc2 RCX: ffffffff8d90f9e5 [ 67.396781][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8b2aa4a4 [ 67.397120][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 67.397607][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 67.397943][ C0] R13: ffffffff8e81d000 R14: dffffc0000000000 R15: 0000000000014770 [ 67.398295][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 67.398681][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 67.398912][ C0] default_idle_call+0x6d/0xb0 [ 67.399143][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.399369][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 67.399743][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 67.399968][ C0] do_idle+0xf9/0x160 [ 67.400147][ C0] cpu_startup_entry+0x54/0x60 [ 67.400375][ C0] rest_init+0x14f/0x260 [ 67.400550][ C0] start_kernel+0x318/0x3d0 [ 67.400959][ C0] x86_64_start_reservations+0x18/0x30 [ 67.401189][ C0] x86_64_start_kernel+0xba/0x110 [ 67.401420][ C0] common_startup_64+0x12c/0x138 [ 67.401656][ C0]