[ 35.116118][ C1] [ 35.116294][ C1] ======================================================== [ 35.116525][ C1] WARNING: possible irq lock inversion dependency detected [ 35.116747][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 35.116896][ C1] -------------------------------------------------------- [ 35.117114][ C1] swapper/1/0 just changed the state of lock: [ 35.117306][ C1] ffff8880052f2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.117582][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.117799][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 35.117804][ C1] [ 35.117804][ C1] [ 35.117804][ C1] and interrupts could create inverse lock ordering between them. [ 35.117804][ C1] [ 35.118387][ C1] [ 35.118387][ C1] other info that might help us debug this: [ 35.118714][ C1] Possible interrupt unsafe locking scenario: [ 35.118714][ C1] [ 35.118949][ C1] CPU0 CPU1 [ 35.119098][ C1] ---- ---- [ 35.119251][ C1] lock(&p->alloc_lock); [ 35.119364][ C1] local_irq_disable(); [ 35.119555][ C1] lock(&ndev->lock); [ 35.119759][ C1] lock(&p->alloc_lock); [ 35.119941][ C1] [ 35.120071][ C1] lock(&ndev->lock); [ 35.120188][ C1] [ 35.120188][ C1] *** DEADLOCK *** [ 35.120188][ C1] [ 35.120409][ C1] 1 lock held by swapper/1/0: [ 35.120559][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.120844][ C1] [ 35.120844][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 35.121118][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.121275][ C1] HARDIRQ-ON-W at: [ 35.121387][ C1] __lock_acquire+0x797/0x1570 [ 35.121578][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.121760][ C1] _raw_spin_lock+0x30/0x40 [ 35.121948][ C1] set_mems_allowed+0x1d/0x210 [ 35.122135][ C1] kernel_init_freeable+0x72/0x310 [ 35.122325][ C1] kernel_init+0x20/0x200 [ 35.122508][ C1] ret_from_fork+0x31/0x70 [ 35.122698][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.122882][ C1] SOFTIRQ-ON-W at: [ 35.122993][ C1] __lock_acquire+0x797/0x1570 [ 35.123177][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.123367][ C1] _raw_spin_lock+0x30/0x40 [ 35.123553][ C1] set_mems_allowed+0x1d/0x210 [ 35.123737][ C1] kernel_init_freeable+0x72/0x310 [ 35.123921][ C1] kernel_init+0x20/0x200 [ 35.124108][ C1] ret_from_fork+0x31/0x70 [ 35.124295][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.124501][ C1] INITIAL USE at: [ 35.124621][ C1] __lock_acquire+0x797/0x1570 [ 35.124810][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.124996][ C1] _raw_spin_lock+0x30/0x40 [ 35.125181][ C1] set_mems_allowed+0x1d/0x210 [ 35.125369][ C1] kernel_init_freeable+0x72/0x310 [ 35.125555][ C1] kernel_init+0x20/0x200 [ 35.125743][ C1] ret_from_fork+0x31/0x70 [ 35.125927][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.126107][ C1] } [ 35.126182][ C1] ... key at: [] __key.387+0x0/0x40 [ 35.126405][ C1] ... acquired at: [ 35.126516][ C1] __lock_acquire+0xaf0/0x1570 [ 35.126667][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.126811][ C1] _raw_spin_lock+0x30/0x40 [ 35.126961][ C1] __get_task_comm+0x27/0x70 [ 35.127110][ C1] ref_tracker_alloc+0x2ee/0x490 [ 35.127260][ C1] netdev_get_by_index+0x5e/0x80 [ 35.127408][ C1] fib6_nh_init+0x3d8/0x15b0 [ 35.127558][ C1] ip6_route_info_create+0xf18/0x17d0 [ 35.127707][ C1] addrconf_f6i_alloc+0x265/0x560 [ 35.127858][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 35.128011][ C1] addrconf_join_anycast+0x1c0/0x220 [ 35.128161][ C1] dev_forward_change+0x2a6/0x7b0 [ 35.128316][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 35.128510][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 35.128662][ C1] proc_sys_call_handler+0x403/0x5e0 [ 35.128810][ C1] vfs_write+0x9e5/0x10a0 [ 35.128959][ C1] ksys_write+0xf5/0x1e0 [ 35.129109][ C1] do_syscall_64+0xc6/0x1e0 [ 35.129260][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.129445][ C1] [ 35.129522][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 35.129673][ C1] HARDIRQ-ON-W at: [ 35.129787][ C1] __lock_acquire+0x797/0x1570 [ 35.129975][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.130157][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.130351][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.130538][ C1] addrconf_notify+0x749/0xd60 [ 35.130727][ C1] notifier_call_chain+0xcd/0x150 [ 35.130913][ C1] __dev_notify_flags+0xe6/0x250 [ 35.131101][ C1] dev_change_flags+0xec/0x160 [ 35.131284][ C1] do_setlink+0x7d6/0x21e0 [ 35.131466][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.131656][ C1] rtnl_newlink+0x63/0xa0 [ 35.131843][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.132027][ C1] netlink_rcv_skb+0x130/0x360 [ 35.132211][ C1] netlink_unicast+0x449/0x710 [ 35.132397][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.132583][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.132772][ C1] ___sys_sendmsg+0xee/0x170 [ 35.132959][ C1] __sys_sendmsg+0xcd/0x170 [ 35.133144][ C1] do_syscall_64+0xc6/0x1e0 [ 35.133329][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.133553][ C1] HARDIRQ-ON-R at: [ 35.133662][ C1] __lock_acquire+0x797/0x1570 [ 35.133847][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.134035][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.134222][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.134403][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.134587][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.134774][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.134959][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.135184][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.135367][ C1] register_netdevice+0x1177/0x1690 [ 35.135554][ C1] register_netdev+0x20/0x40 [ 35.135736][ C1] sit_init_net+0x250/0x4f0 [ 35.135920][ C1] ops_init+0x9b/0x560 [ 35.136068][ C1] register_pernet_operations+0x2db/0x710 [ 35.136286][ C1] register_pernet_device+0x2a/0x60 [ 35.136470][ C1] sit_init+0x23/0xe0 [ 35.136619][ C1] do_one_initcall+0x8d/0x1e0 [ 35.136803][ C1] do_initcalls+0x1b2/0x3e0 [ 35.136989][ C1] kernel_init_freeable+0x232/0x310 [ 35.137172][ C1] kernel_init+0x20/0x200 [ 35.137362][ C1] ret_from_fork+0x31/0x70 [ 35.137549][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.137733][ C1] IN-SOFTIRQ-W at: [ 35.137843][ C1] __lock_acquire+0x797/0x1570 [ 35.138026][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.138211][ C1] _raw_write_lock+0x30/0x40 [ 35.138397][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.138592][ C1] call_timer_fn+0x13b/0x230 [ 35.138783][ C1] __run_timers+0x545/0x810 [ 35.138969][ C1] timer_expire_remote+0x9b/0xe0 [ 35.139154][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 35.139339][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.139520][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 35.139703][ C1] __do_softirq+0x1f8/0x5df [ 35.139890][ C1] irq_exit_rcu+0x97/0xc0 [ 35.140076][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.140297][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.140522][ C1] default_idle+0xf/0x20 [ 35.140711][ C1] default_idle_call+0x6d/0xb0 [ 35.140896][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.141084][ C1] do_idle+0xf9/0x160 [ 35.141232][ C1] cpu_startup_entry+0x54/0x60 [ 35.141415][ C1] start_secondary+0x21c/0x2b0 [ 35.141596][ C1] common_startup_64+0x12c/0x138 [ 35.141782][ C1] INITIAL USE at: [ 35.141890][ C1] __lock_acquire+0x797/0x1570 [ 35.142074][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.142261][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.142448][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.142628][ C1] addrconf_notify+0x749/0xd60 [ 35.142812][ C1] notifier_call_chain+0xcd/0x150 [ 35.142995][ C1] __dev_notify_flags+0xe6/0x250 [ 35.143178][ C1] dev_change_flags+0xec/0x160 [ 35.143361][ C1] do_setlink+0x7d6/0x21e0 [ 35.143545][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.143726][ C1] rtnl_newlink+0x63/0xa0 [ 35.143910][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.144090][ C1] netlink_rcv_skb+0x130/0x360 [ 35.144279][ C1] netlink_unicast+0x449/0x710 [ 35.144459][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.144647][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.144832][ C1] ___sys_sendmsg+0xee/0x170 [ 35.145016][ C1] __sys_sendmsg+0xcd/0x170 [ 35.145198][ C1] do_syscall_64+0xc6/0x1e0 [ 35.145384][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.145603][ C1] INITIAL READ USE at: [ 35.145712][ C1] __lock_acquire+0x797/0x1570 [ 35.145903][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.146088][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.146275][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.146497][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.146679][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.146870][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.147092][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.147312][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.147499][ C1] register_netdevice+0x1177/0x1690 [ 35.147719][ C1] register_netdev+0x20/0x40 [ 35.147901][ C1] sit_init_net+0x250/0x4f0 [ 35.148094][ C1] ops_init+0x9b/0x560 [ 35.148274][ C1] register_pernet_operations+0x2db/0x710 [ 35.148493][ C1] register_pernet_device+0x2a/0x60 [ 35.148720][ C1] sit_init+0x23/0xe0 [ 35.148905][ C1] do_one_initcall+0x8d/0x1e0 [ 35.149087][ C1] do_initcalls+0x1b2/0x3e0 [ 35.149277][ C1] kernel_init_freeable+0x232/0x310 [ 35.149497][ C1] kernel_init+0x20/0x200 [ 35.149681][ C1] ret_from_fork+0x31/0x70 [ 35.149868][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.150053][ C1] } [ 35.150128][ C1] ... key at: [] __key.37+0x0/0x40 [ 35.150344][ C1] ... acquired at: [ 35.150459][ C1] mark_lock+0x28d/0x3e0 [ 35.150606][ C1] mark_usage+0xd9/0x2a0 [ 35.150750][ C1] __lock_acquire+0x797/0x1570 [ 35.150898][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.151045][ C1] _raw_write_lock+0x30/0x40 [ 35.151193][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.151339][ C1] call_timer_fn+0x13b/0x230 [ 35.151483][ C1] __run_timers+0x545/0x810 [ 35.151627][ C1] timer_expire_remote+0x9b/0xe0 [ 35.151779][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 35.151921][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.152062][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 35.152209][ C1] __do_softirq+0x1f8/0x5df [ 35.152359][ C1] irq_exit_rcu+0x97/0xc0 [ 35.152507][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.152687][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.152872][ C1] default_idle+0xf/0x20 [ 35.153016][ C1] default_idle_call+0x6d/0xb0 [ 35.153170][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.153368][ C1] do_idle+0xf9/0x160 [ 35.153532][ C1] cpu_startup_entry+0x54/0x60 [ 35.153759][ C1] start_secondary+0x21c/0x2b0 [ 35.153992][ C1] common_startup_64+0x12c/0x138 [ 35.154224][ C1] [ 35.154337][ C1] [ 35.154337][ C1] stack backtrace: [ 35.154608][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 35.154868][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.155329][ C1] Call Trace: [ 35.155497][ C1] [ 35.155617][ C1] dump_stack_lvl+0x82/0xd0 [ 35.155849][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.156099][ C1] ? kernel_text_address+0x17/0xe0 [ 35.156251][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.156446][ C1] ? __pfx_usage_skip+0x10/0x10 [ 35.156592][ C1] ? __pfx_usage_match+0x10/0x10 [ 35.156738][ C1] ? arch_stack_walk+0x8c/0xf0 [ 35.156886][ C1] mark_lock_irq+0x4cd/0xa10 [ 35.157035][ C1] ? common_startup_64+0x12c/0x138 [ 35.157260][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.157417][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.157564][ C1] ? save_trace+0x8f/0x5b0 [ 35.157711][ C1] mark_lock+0x28d/0x3e0 [ 35.157900][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.158045][ C1] mark_usage+0xd9/0x2a0 [ 35.158155][ C1] __lock_acquire+0x797/0x1570 [ 35.158302][ C1] ? __pfx_validate_chain+0x10/0x10 [ 35.158453][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.158694][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.158838][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.158982][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.159126][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 35.159364][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.159589][ C1] ? lock_acquire+0x32/0xc0 [ 35.159809][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.159954][ C1] _raw_write_lock+0x30/0x40 [ 35.160257][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.160411][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.160555][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.160700][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.160921][ C1] ? call_timer_fn+0xe8/0x230 [ 35.161068][ C1] ? lock_acquire+0x32/0xc0 [ 35.161211][ C1] ? call_timer_fn+0xe8/0x230 [ 35.161362][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.161508][ C1] call_timer_fn+0x13b/0x230 [ 35.161736][ C1] ? call_timer_fn+0xe8/0x230 [ 35.161879][ C1] ? call_timer_fn+0xe8/0x230 [ 35.162023][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 35.162168][ C1] ? mark_lock+0x38/0x3e0 [ 35.162369][ C1] __run_timers+0x545/0x810 [ 35.162517][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.162664][ C1] ? __pfx___run_timers+0x10/0x10 [ 35.162810][ C1] ? __lock_release+0x103/0x460 [ 35.163033][ C1] ? do_raw_spin_lock+0x131/0x270 [ 35.163183][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.163337][ C1] ? lock_acquire+0x32/0xc0 [ 35.163484][ C1] ? timer_expire_remote+0x93/0xe0 [ 35.163630][ C1] timer_expire_remote+0x9b/0xe0 [ 35.163861][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 35.164007][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 35.164194][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.164346][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 35.164576][ C1] ? do_raw_spin_lock+0x131/0x270 [ 35.164720][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 35.164869][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.165016][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 35.165279][ C1] __do_softirq+0x1f8/0x5df [ 35.165481][ C1] irq_exit_rcu+0x97/0xc0 [ 35.165651][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.165874][ C1] [ 35.165972][ C1] [ 35.166213][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.166498][ C1] RIP: 0010:default_idle+0xf/0x20 [ 35.166727][ 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 [ 35.167606][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 35.167888][ C1] RAX: 00000000000a49bb RBX: 1ffff92000029fc1 RCX: ffffffffa0f0e9d5 [ 35.168367][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9e8aa4a4 [ 35.168805][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 35.169152][ C1] R10: ffff8880360b84e3 R11: ffff8880360ad9b0 R12: 0000000000000000 [ 35.169639][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 35.169988][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.170227][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 35.170452][ C1] default_idle_call+0x6d/0xb0 [ 35.170827][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.171056][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.171287][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.171520][ C1] do_idle+0xf9/0x160 [ 35.171839][ C1] cpu_startup_entry+0x54/0x60 [ 35.172072][ C1] start_secondary+0x21c/0x2b0 [ 35.172308][ C1] ? __pfx_start_secondary+0x10/0x10 [ 35.172542][ C1] common_startup_64+0x12c/0x138 [ 35.172917][ C1]