[ 96.244149][ C0] [ 96.244398][ C0] ======================================================== [ 96.244629][ C0] WARNING: possible irq lock inversion dependency detected [ 96.244849][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 96.244997][ C0] -------------------------------------------------------- [ 96.245222][ C0] swapper/0/0 just changed the state of lock: [ 96.245412][ C0] ffff88800525a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 96.245681][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 96.245898][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 96.245902][ C0] [ 96.245902][ C0] [ 96.245902][ C0] and interrupts could create inverse lock ordering between them. [ 96.245902][ C0] [ 96.246445][ C0] [ 96.246445][ C0] other info that might help us debug this: [ 96.246667][ C0] Possible interrupt unsafe locking scenario: [ 96.246667][ C0] [ 96.246887][ C0] CPU0 CPU1 [ 96.247034][ C0] ---- ---- [ 96.247189][ C0] lock(&p->alloc_lock); [ 96.247302][ C0] local_irq_disable(); [ 96.247488][ C0] lock(&ndev->lock); [ 96.247676][ C0] lock(&p->alloc_lock); [ 96.247871][ C0] [ 96.247985][ C0] lock(&ndev->lock); [ 96.248104][ C0] [ 96.248104][ C0] *** DEADLOCK *** [ 96.248104][ C0] [ 96.248327][ C0] 1 lock held by swapper/0/0: [ 96.248483][ C0] #0: ffffc90000007b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 96.248759][ C0] [ 96.248759][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 96.249013][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 96.249170][ C0] HARDIRQ-ON-W at: [ 96.249284][ C0] __lock_acquire+0x797/0x1570 [ 96.249477][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.249669][ C0] _raw_spin_lock+0x30/0x40 [ 96.249861][ C0] set_mems_allowed+0x1d/0x210 [ 96.250069][ C0] kernel_init_freeable+0x72/0x310 [ 96.250258][ C0] kernel_init+0x20/0x200 [ 96.250448][ C0] ret_from_fork+0x31/0x70 [ 96.250639][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.250832][ C0] SOFTIRQ-ON-W at: [ 96.250944][ C0] __lock_acquire+0x797/0x1570 [ 96.251132][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.251320][ C0] _raw_spin_lock+0x30/0x40 [ 96.251506][ C0] set_mems_allowed+0x1d/0x210 [ 96.251692][ C0] kernel_init_freeable+0x72/0x310 [ 96.251879][ C0] kernel_init+0x20/0x200 [ 96.252071][ C0] ret_from_fork+0x31/0x70 [ 96.252259][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.252448][ C0] INITIAL USE at: [ 96.252560][ C0] __lock_acquire+0x797/0x1570 [ 96.252747][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.252934][ C0] _raw_spin_lock+0x30/0x40 [ 96.253127][ C0] set_mems_allowed+0x1d/0x210 [ 96.253313][ C0] kernel_init_freeable+0x72/0x310 [ 96.253498][ C0] kernel_init+0x20/0x200 [ 96.253687][ C0] ret_from_fork+0x31/0x70 [ 96.253876][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.254062][ C0] } [ 96.254139][ C0] ... key at: [] __key.387+0x0/0x40 [ 96.254367][ C0] ... acquired at: [ 96.254489][ C0] __lock_acquire+0xaf0/0x1570 [ 96.254646][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.254794][ C0] _raw_spin_lock+0x30/0x40 [ 96.254945][ C0] __get_task_comm+0x27/0x70 [ 96.255095][ C0] ref_tracker_alloc+0x2ee/0x490 [ 96.255246][ C0] netdev_get_by_index+0x5e/0x80 [ 96.255395][ C0] fib6_nh_init+0x3d8/0x15b0 [ 96.255551][ C0] ip6_route_info_create+0xf18/0x17d0 [ 96.255699][ C0] addrconf_f6i_alloc+0x265/0x560 [ 96.255847][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 96.255997][ C0] addrconf_join_anycast+0x1c0/0x220 [ 96.256148][ C0] __ipv6_ifa_notify+0x6b3/0xaf0 [ 96.256297][ C0] addrconf_dad_completed+0x12b/0xe20 [ 96.256445][ C0] addrconf_dad_begin+0x310/0x670 [ 96.256598][ C0] addrconf_dad_work+0x10b/0xab0 [ 96.256746][ C0] process_one_work+0xe2c/0x1730 [ 96.256896][ C0] worker_thread+0x587/0xd30 [ 96.257046][ C0] kthread+0x28a/0x350 [ 96.257159][ C0] ret_from_fork+0x31/0x70 [ 96.257308][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.257459][ C0] [ 96.257535][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 96.257689][ C0] HARDIRQ-ON-W at: [ 96.257806][ C0] __lock_acquire+0x797/0x1570 [ 96.257996][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.258183][ C0] _raw_write_lock_bh+0x38/0x50 [ 96.258371][ C0] addrconf_permanent_addr+0x6e/0x670 [ 96.258556][ C0] addrconf_notify+0x749/0xd60 [ 96.258743][ C0] notifier_call_chain+0xcd/0x150 [ 96.258933][ C0] __dev_notify_flags+0xe6/0x250 [ 96.259118][ C0] dev_change_flags+0xec/0x160 [ 96.259303][ C0] do_setlink+0x7d6/0x21e0 [ 96.259494][ C0] __rtnl_newlink+0xaa7/0xd80 [ 96.259680][ C0] rtnl_newlink+0x63/0xa0 [ 96.259865][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 96.260070][ C0] netlink_rcv_skb+0x130/0x360 [ 96.260258][ C0] netlink_unicast+0x449/0x710 [ 96.260445][ C0] netlink_sendmsg+0x723/0xbe0 [ 96.260632][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 96.260819][ C0] ___sys_sendmsg+0xee/0x170 [ 96.261006][ C0] __sys_sendmsg+0xcd/0x170 [ 96.261194][ C0] do_syscall_64+0xc6/0x1e0 [ 96.261387][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 96.261609][ C0] HARDIRQ-ON-R at: [ 96.261721][ C0] __lock_acquire+0x797/0x1570 [ 96.261911][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.262098][ C0] _raw_read_lock_bh+0x44/0x80 [ 96.262287][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 96.262474][ C0] inet6_fill_link_af+0x5e/0xe0 [ 96.262664][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 96.262849][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 96.263035][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 96.263259][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 96.263444][ C0] register_netdevice+0x1177/0x1690 [ 96.263630][ C0] register_netdev+0x20/0x40 [ 96.263821][ C0] sit_init_net+0x250/0x4f0 [ 96.264008][ C0] ops_init+0x9b/0x560 [ 96.264157][ C0] register_pernet_operations+0x2db/0x710 [ 96.264379][ C0] register_pernet_device+0x2a/0x60 [ 96.264565][ C0] sit_init+0x23/0xe0 [ 96.264718][ C0] do_one_initcall+0x8d/0x1e0 [ 96.264906][ C0] do_initcalls+0x1b2/0x3e0 [ 96.265095][ C0] kernel_init_freeable+0x232/0x310 [ 96.265280][ C0] kernel_init+0x20/0x200 [ 96.265467][ C0] ret_from_fork+0x31/0x70 [ 96.265654][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.265842][ C0] IN-SOFTIRQ-W at: [ 96.265954][ C0] __lock_acquire+0x797/0x1570 [ 96.266144][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.266330][ C0] _raw_write_lock+0x30/0x40 [ 96.266518][ C0] addrconf_rs_timer+0xa9/0x730 [ 96.266705][ C0] call_timer_fn+0x13b/0x230 [ 96.266892][ C0] __run_timers+0x545/0x810 [ 96.267079][ C0] timer_expire_remote+0x9b/0xe0 [ 96.267266][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 96.267452][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 96.267639][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 96.267825][ C0] __do_softirq+0x1f8/0x5df [ 96.268010][ C0] irq_exit_rcu+0x97/0xc0 [ 96.268195][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 96.268423][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 96.268649][ C0] default_idle+0xf/0x20 [ 96.268837][ C0] default_idle_call+0x6d/0xb0 [ 96.269025][ C0] cpuidle_idle_call+0x1f4/0x280 [ 96.269214][ C0] do_idle+0xf9/0x160 [ 96.269364][ C0] cpu_startup_entry+0x54/0x60 [ 96.269551][ C0] rest_init+0x14f/0x260 [ 96.269741][ C0] start_kernel+0x318/0x3d0 [ 96.269930][ C0] x86_64_start_reservations+0x18/0x30 [ 96.270131][ C0] x86_64_start_kernel+0xba/0x110 [ 96.270319][ C0] common_startup_64+0x12c/0x138 [ 96.270505][ C0] INITIAL USE at: [ 96.270617][ C0] __lock_acquire+0x797/0x1570 [ 96.270807][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.270996][ C0] _raw_write_lock_bh+0x38/0x50 [ 96.271182][ C0] addrconf_permanent_addr+0x6e/0x670 [ 96.271368][ C0] addrconf_notify+0x749/0xd60 [ 96.271559][ C0] notifier_call_chain+0xcd/0x150 [ 96.271744][ C0] __dev_notify_flags+0xe6/0x250 [ 96.271934][ C0] dev_change_flags+0xec/0x160 [ 96.272122][ C0] do_setlink+0x7d6/0x21e0 [ 96.272309][ C0] __rtnl_newlink+0xaa7/0xd80 [ 96.272494][ C0] rtnl_newlink+0x63/0xa0 [ 96.272680][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 96.272868][ C0] netlink_rcv_skb+0x130/0x360 [ 96.273055][ C0] netlink_unicast+0x449/0x710 [ 96.273244][ C0] netlink_sendmsg+0x723/0xbe0 [ 96.273431][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 96.273618][ C0] ___sys_sendmsg+0xee/0x170 [ 96.273803][ C0] __sys_sendmsg+0xcd/0x170 [ 96.273989][ C0] do_syscall_64+0xc6/0x1e0 [ 96.274178][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 96.274401][ C0] INITIAL READ USE at: [ 96.274518][ C0] __lock_acquire+0x797/0x1570 [ 96.274704][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.274890][ C0] _raw_read_lock_bh+0x44/0x80 [ 96.275077][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 96.275301][ C0] inet6_fill_link_af+0x5e/0xe0 [ 96.275582][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 96.275773][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 96.275994][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 96.276310][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 96.276495][ C0] register_netdevice+0x1177/0x1690 [ 96.276717][ C0] register_netdev+0x20/0x40 [ 96.276994][ C0] sit_init_net+0x250/0x4f0 [ 96.277185][ C0] ops_init+0x9b/0x560 [ 96.277370][ C0] register_pernet_operations+0x2db/0x710 [ 96.277777][ C0] register_pernet_device+0x2a/0x60 [ 96.277999][ C0] sit_init+0x23/0xe0 [ 96.278183][ C0] do_one_initcall+0x8d/0x1e0 [ 96.278461][ C0] do_initcalls+0x1b2/0x3e0 [ 96.278651][ C0] kernel_init_freeable+0x232/0x310 [ 96.278874][ C0] kernel_init+0x20/0x200 [ 96.279152][ C0] ret_from_fork+0x31/0x70 [ 96.279339][ C0] ret_from_fork_asm+0x1a/0x30 [ 96.279525][ C0] } [ 96.279601][ C0] ... key at: [] __key.37+0x0/0x40 [ 96.279917][ C0] ... acquired at: [ 96.280036][ C0] mark_lock+0x28d/0x3e0 [ 96.280186][ C0] mark_usage+0xd9/0x2a0 [ 96.280335][ C0] __lock_acquire+0x797/0x1570 [ 96.280487][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.280730][ C0] _raw_write_lock+0x30/0x40 [ 96.280878][ C0] addrconf_rs_timer+0xa9/0x730 [ 96.281024][ C0] call_timer_fn+0x13b/0x230 [ 96.281172][ C0] __run_timers+0x545/0x810 [ 96.281416][ C0] timer_expire_remote+0x9b/0xe0 [ 96.281565][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 96.281713][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 96.281861][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 96.282099][ C0] __do_softirq+0x1f8/0x5df [ 96.282247][ C0] irq_exit_rcu+0x97/0xc0 [ 96.282395][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 96.282579][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 96.282858][ C0] default_idle+0xf/0x20 [ 96.283004][ C0] default_idle_call+0x6d/0xb0 [ 96.283151][ C0] cpuidle_idle_call+0x1f4/0x280 [ 96.283300][ C0] do_idle+0xf9/0x160 [ 96.283504][ C0] cpu_startup_entry+0x54/0x60 [ 96.283651][ C0] rest_init+0x14f/0x260 [ 96.283797][ C0] start_kernel+0x318/0x3d0 [ 96.283944][ C0] x86_64_start_reservations+0x18/0x30 [ 96.284098][ C0] x86_64_start_kernel+0xba/0x110 [ 96.284339][ C0] common_startup_64+0x12c/0x138 [ 96.284487][ C0] [ 96.284561][ C0] [ 96.284561][ C0] stack backtrace: [ 96.284742][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 96.285056][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 96.285386][ C0] Call Trace: [ 96.285498][ C0] [ 96.285575][ C0] dump_stack_lvl+0x82/0xd0 [ 96.285726][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 96.285911][ C0] ? kernel_text_address+0x17/0xe0 [ 96.286063][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 96.286339][ C0] ? __pfx_usage_skip+0x10/0x10 [ 96.286487][ C0] ? __pfx_usage_match+0x10/0x10 [ 96.286635][ C0] ? arch_stack_walk+0x8c/0xf0 [ 96.286791][ C0] mark_lock_irq+0x4cd/0xa10 [ 96.287035][ C0] ? common_startup_64+0x12c/0x138 [ 96.287185][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 96.287336][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 96.287489][ C0] ? save_trace+0x8f/0x5b0 [ 96.287640][ C0] mark_lock+0x28d/0x3e0 [ 96.287845][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 96.287998][ C0] mark_usage+0xd9/0x2a0 [ 96.288118][ C0] __lock_acquire+0x797/0x1570 [ 96.288271][ C0] ? __pfx_validate_chain+0x10/0x10 [ 96.288515][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 96.288664][ C0] lock_acquire.part.0+0xeb/0x330 [ 96.288813][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 96.288961][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 96.289110][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 96.289444][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 96.289598][ C0] ? lock_acquire+0x32/0xc0 [ 96.289749][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 96.289899][ C0] _raw_write_lock+0x30/0x40 [ 96.290152][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 96.290300][ C0] addrconf_rs_timer+0xa9/0x730 [ 96.290448][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 96.290596][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 96.290834][ C0] ? call_timer_fn+0xe8/0x230 [ 96.290987][ C0] ? lock_acquire+0x32/0xc0 [ 96.291136][ C0] ? call_timer_fn+0xe8/0x230 [ 96.291284][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 96.291524][ C0] call_timer_fn+0x13b/0x230 [ 96.291672][ C0] ? call_timer_fn+0xe8/0x230 [ 96.291821][ C0] ? call_timer_fn+0xe8/0x230 [ 96.291968][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 96.292116][ C0] ? mark_lock+0x38/0x3e0 [ 96.292323][ C0] __run_timers+0x545/0x810 [ 96.292474][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 96.292623][ C0] ? __pfx___run_timers+0x10/0x10 [ 96.292770][ C0] ? __lock_release+0x103/0x460 [ 96.293010][ C0] ? do_raw_spin_lock+0x131/0x270 [ 96.293158][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 96.293305][ C0] ? lock_acquire+0x32/0xc0 [ 96.293452][ C0] ? timer_expire_remote+0x93/0xe0 [ 96.293691][ C0] timer_expire_remote+0x9b/0xe0 [ 96.293844][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 96.293993][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 96.294181][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 96.294427][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 96.294577][ C0] ? do_raw_spin_lock+0x131/0x270 [ 96.294725][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 96.294874][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 96.295022][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 96.295305][ C0] __do_softirq+0x1f8/0x5df [ 96.295463][ C0] irq_exit_rcu+0x97/0xc0 [ 96.295576][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 96.295725][ C0] [ 96.295893][ C0] [ 96.295969][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 96.296154][ C0] RIP: 0010:default_idle+0xf/0x20 [ 96.296310][ 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 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 [ 96.296940][ C0] RSP: 0018:ffffffff9b007e00 EFLAGS: 00000246 [ 96.297130][ C0] RAX: 0000000000190721 RBX: 1ffffffff3600fc2 RCX: ffffffff9a10e9d5 [ 96.297445][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff97aaa4a4 [ 96.297666][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 96.297892][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 96.298209][ C0] R13: ffffffff9b01d000 R14: dffffc0000000000 R15: 0000000000014770 [ 96.298432][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 96.298581][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 96.298822][ C0] default_idle_call+0x6d/0xb0 [ 96.298972][ C0] cpuidle_idle_call+0x1f4/0x280 [ 96.299122][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 96.299269][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 96.299419][ C0] do_idle+0xf9/0x160 [ 96.299623][ C0] cpu_startup_entry+0x54/0x60 [ 96.299770][ C0] rest_init+0x14f/0x260 [ 96.299881][ C0] start_kernel+0x318/0x3d0 [ 96.300048][ C0] x86_64_start_reservations+0x18/0x30 [ 96.300288][ C0] x86_64_start_kernel+0xba/0x110 [ 96.300441][ C0] common_startup_64+0x12c/0x138 [ 96.300597][ C0] [ 98.645073][ T811] GACT probability NOT on