[ 36.149908][ C3] [ 36.150149][ C3] ======================================================== [ 36.150385][ C3] WARNING: possible irq lock inversion dependency detected [ 36.150623][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 36.150778][ C3] -------------------------------------------------------- [ 36.151003][ C3] swapper/3/0 just changed the state of lock: [ 36.151202][ C3] ffff888005bc5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.151484][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.151710][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 36.151714][ C3] [ 36.151714][ C3] [ 36.151714][ C3] and interrupts could create inverse lock ordering between them. [ 36.151714][ C3] [ 36.152280][ C3] [ 36.152280][ C3] other info that might help us debug this: [ 36.152504][ C3] Possible interrupt unsafe locking scenario: [ 36.152504][ C3] [ 36.152731][ C3] CPU0 CPU1 [ 36.152887][ C3] ---- ---- [ 36.153040][ C3] lock(&p->alloc_lock); [ 36.153168][ C3] local_irq_disable(); [ 36.153358][ C3] lock(&ndev->lock); [ 36.153552][ C3] lock(&p->alloc_lock); [ 36.153750][ C3] [ 36.153866][ C3] lock(&ndev->lock); [ 36.153980][ C3] [ 36.153980][ C3] *** DEADLOCK *** [ 36.153980][ C3] [ 36.154200][ C3] 1 lock held by swapper/3/0: [ 36.154355][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.154639][ C3] [ 36.154639][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 36.154905][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.155064][ C3] HARDIRQ-ON-W at: [ 36.155190][ C3] __lock_acquire+0x797/0x1570 [ 36.155401][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.155592][ C3] _raw_spin_lock+0x30/0x40 [ 36.155796][ C3] set_mems_allowed+0x1d/0x210 [ 36.155993][ C3] kernel_init_freeable+0x72/0x310 [ 36.156187][ C3] kernel_init+0x20/0x200 [ 36.156382][ C3] ret_from_fork+0x31/0x70 [ 36.156584][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.156775][ C3] SOFTIRQ-ON-W at: [ 36.156889][ C3] __lock_acquire+0x797/0x1570 [ 36.157083][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.157280][ C3] _raw_spin_lock+0x30/0x40 [ 36.157470][ C3] set_mems_allowed+0x1d/0x210 [ 36.157666][ C3] kernel_init_freeable+0x72/0x310 [ 36.157856][ C3] kernel_init+0x20/0x200 [ 36.158048][ C3] ret_from_fork+0x31/0x70 [ 36.158248][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.158443][ C3] INITIAL USE at: [ 36.158564][ C3] __lock_acquire+0x797/0x1570 [ 36.158756][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.158945][ C3] _raw_spin_lock+0x30/0x40 [ 36.159143][ C3] set_mems_allowed+0x1d/0x210 [ 36.159333][ C3] kernel_init_freeable+0x72/0x310 [ 36.159530][ C3] kernel_init+0x20/0x200 [ 36.159722][ C3] ret_from_fork+0x31/0x70 [ 36.159910][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.160097][ C3] } [ 36.160177][ C3] ... key at: [] __key.387+0x0/0x40 [ 36.160410][ C3] ... acquired at: [ 36.160523][ C3] __lock_acquire+0xaf0/0x1570 [ 36.160685][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.160845][ C3] _raw_spin_lock+0x30/0x40 [ 36.161001][ C3] __get_task_comm+0x27/0x70 [ 36.161156][ C3] ref_tracker_alloc+0x2ee/0x490 [ 36.161311][ C3] netdev_get_by_index+0x5e/0x80 [ 36.161465][ C3] fib6_nh_init+0x3d8/0x15b0 [ 36.161620][ C3] ip6_route_info_create+0xf18/0x17d0 [ 36.161771][ C3] addrconf_f6i_alloc+0x265/0x560 [ 36.161929][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.162084][ C3] addrconf_join_anycast+0x1c0/0x220 [ 36.162239][ C3] dev_forward_change+0x2a6/0x7b0 [ 36.162395][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 36.162582][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 36.162734][ C3] proc_sys_call_handler+0x403/0x5e0 [ 36.162888][ C3] vfs_write+0x9e5/0x10a0 [ 36.163046][ C3] ksys_write+0xf5/0x1e0 [ 36.163200][ C3] do_syscall_64+0xc6/0x1e0 [ 36.163352][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.163543][ C3] [ 36.163621][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 36.163777][ C3] HARDIRQ-ON-W at: [ 36.163893][ C3] __lock_acquire+0x797/0x1570 [ 36.164085][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.164277][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.164474][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.164665][ C3] addrconf_notify+0x749/0xd60 [ 36.164862][ C3] notifier_call_chain+0xcd/0x150 [ 36.165054][ C3] __dev_notify_flags+0xe6/0x250 [ 36.165246][ C3] dev_change_flags+0xec/0x160 [ 36.165438][ C3] do_setlink+0x7d6/0x21e0 [ 36.165633][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.165861][ C3] rtnl_newlink+0x63/0xa0 [ 36.166053][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.166244][ C3] netlink_rcv_skb+0x130/0x360 [ 36.166438][ C3] netlink_unicast+0x449/0x710 [ 36.166628][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.166822][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.167020][ C3] ___sys_sendmsg+0xee/0x170 [ 36.167215][ C3] __sys_sendmsg+0xcd/0x170 [ 36.167410][ C3] do_syscall_64+0xc6/0x1e0 [ 36.167605][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.167836][ C3] HARDIRQ-ON-R at: [ 36.167950][ C3] __lock_acquire+0x797/0x1570 [ 36.168148][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.168339][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.168537][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.168728][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.168917][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.169104][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.169360][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.169687][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.169881][ C3] register_netdevice+0x1177/0x1690 [ 36.170073][ C3] register_netdev+0x20/0x40 [ 36.170275][ C3] sit_init_net+0x250/0x4f0 [ 36.170470][ C3] ops_init+0x9b/0x560 [ 36.170624][ C3] register_pernet_operations+0x2db/0x710 [ 36.170858][ C3] register_pernet_device+0x2a/0x60 [ 36.171049][ C3] sit_init+0x23/0xe0 [ 36.171203][ C3] do_one_initcall+0x8d/0x1e0 [ 36.171406][ C3] do_initcalls+0x1b2/0x3e0 [ 36.171597][ C3] kernel_init_freeable+0x232/0x310 [ 36.171788][ C3] kernel_init+0x20/0x200 [ 36.171984][ C3] ret_from_fork+0x31/0x70 [ 36.172178][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.172371][ C3] IN-SOFTIRQ-W at: [ 36.172488][ C3] __lock_acquire+0x797/0x1570 [ 36.172687][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.172876][ C3] _raw_write_lock+0x30/0x40 [ 36.173073][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.173266][ C3] call_timer_fn+0x13b/0x230 [ 36.173461][ C3] __run_timers+0x545/0x810 [ 36.173654][ C3] timer_expire_remote+0x9b/0xe0 [ 36.173853][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.174042][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.174232][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.174427][ C3] __do_softirq+0x1f8/0x5df [ 36.174615][ C3] irq_exit_rcu+0x97/0xc0 [ 36.174809][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.175043][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.175273][ C3] default_idle+0xf/0x20 [ 36.175464][ C3] default_idle_call+0x6d/0xb0 [ 36.175658][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.175863][ C3] do_idle+0xf9/0x160 [ 36.176014][ C3] cpu_startup_entry+0x54/0x60 [ 36.176203][ C3] start_secondary+0x21c/0x2b0 [ 36.176400][ C3] common_startup_64+0x12c/0x138 [ 36.176591][ C3] INITIAL USE at: [ 36.176704][ C3] __lock_acquire+0x797/0x1570 [ 36.176906][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.177097][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.177289][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.177485][ C3] addrconf_notify+0x749/0xd60 [ 36.177678][ C3] notifier_call_chain+0xcd/0x150 [ 36.177868][ C3] __dev_notify_flags+0xe6/0x250 [ 36.178061][ C3] dev_change_flags+0xec/0x160 [ 36.178262][ C3] do_setlink+0x7d6/0x21e0 [ 36.178455][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.178646][ C3] rtnl_newlink+0x63/0xa0 [ 36.178840][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.179029][ C3] netlink_rcv_skb+0x130/0x360 [ 36.179228][ C3] netlink_unicast+0x449/0x710 [ 36.179423][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.179616][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.179818][ C3] ___sys_sendmsg+0xee/0x170 [ 36.180007][ C3] __sys_sendmsg+0xcd/0x170 [ 36.180204][ C3] do_syscall_64+0xc6/0x1e0 [ 36.180406][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.180639][ C3] INITIAL READ USE at: [ 36.180759][ C3] __lock_acquire+0x797/0x1570 [ 36.180953][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.181141][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.181333][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.181562][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.181755][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.181942][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.182255][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.182484][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.182673][ C3] register_netdevice+0x1177/0x1690 [ 36.182976][ C3] register_netdev+0x20/0x40 [ 36.183175][ C3] sit_init_net+0x250/0x4f0 [ 36.183364][ C3] ops_init+0x9b/0x560 [ 36.183557][ C3] register_pernet_operations+0x2db/0x710 [ 36.183866][ C3] register_pernet_device+0x2a/0x60 [ 36.184090][ C3] sit_init+0x23/0xe0 [ 36.184279][ C3] do_one_initcall+0x8d/0x1e0 [ 36.184565][ C3] do_initcalls+0x1b2/0x3e0 [ 36.184758][ C3] kernel_init_freeable+0x232/0x310 [ 36.184989][ C3] kernel_init+0x20/0x200 [ 36.185268][ C3] ret_from_fork+0x31/0x70 [ 36.185456][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.185647][ C3] } [ 36.185733][ C3] ... key at: [] __key.37+0x0/0x40 [ 36.186042][ C3] ... acquired at: [ 36.186154][ C3] mark_lock+0x28d/0x3e0 [ 36.186305][ C3] mark_usage+0xd9/0x2a0 [ 36.186455][ C3] __lock_acquire+0x797/0x1570 [ 36.186686][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.186839][ C3] _raw_write_lock+0x30/0x40 [ 36.186991][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.187142][ C3] call_timer_fn+0x13b/0x230 [ 36.187376][ C3] __run_timers+0x545/0x810 [ 36.187526][ C3] timer_expire_remote+0x9b/0xe0 [ 36.187677][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.187826][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.187975][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.188205][ C3] __do_softirq+0x1f8/0x5df [ 36.188361][ C3] irq_exit_rcu+0x97/0xc0 [ 36.188510][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.188704][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.188970][ C3] default_idle+0xf/0x20 [ 36.189119][ C3] default_idle_call+0x6d/0xb0 [ 36.189273][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.189429][ C3] do_idle+0xf9/0x160 [ 36.189623][ C3] cpu_startup_entry+0x54/0x60 [ 36.189779][ C3] start_secondary+0x21c/0x2b0 [ 36.189932][ C3] common_startup_64+0x12c/0x138 [ 36.190085][ C3] [ 36.190163][ C3] [ 36.190163][ C3] stack backtrace: [ 36.190427][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 36.190656][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.191154][ C3] Call Trace: [ 36.191275][ C3] [ 36.191362][ C3] dump_stack_lvl+0x82/0xd0 [ 36.191518][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.191710][ C3] ? kernel_text_address+0x17/0xe0 [ 36.191944][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.192133][ C3] ? __pfx_usage_skip+0x10/0x10 [ 36.192285][ C3] ? __pfx_usage_match+0x10/0x10 [ 36.192437][ C3] ? arch_stack_walk+0x8c/0xf0 [ 36.192669][ C3] mark_lock_irq+0x4cd/0xa10 [ 36.192823][ C3] ? common_startup_64+0x12c/0x138 [ 36.192980][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.193135][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.193368][ C3] ? save_trace+0x8f/0x5b0 [ 36.193529][ C3] mark_lock+0x28d/0x3e0 [ 36.193642][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.193792][ C3] mark_usage+0xd9/0x2a0 [ 36.193906][ C3] __lock_acquire+0x797/0x1570 [ 36.194137][ C3] ? __pfx_validate_chain+0x10/0x10 [ 36.194291][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.194443][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.194597][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.194835][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.194987][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 36.195140][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.195290][ C3] ? lock_acquire+0x32/0xc0 [ 36.195519][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.195671][ C3] _raw_write_lock+0x30/0x40 [ 36.195865][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.196015][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.196255][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.196408][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.196566][ C3] ? call_timer_fn+0xe8/0x230 [ 36.196720][ C3] ? lock_acquire+0x32/0xc0 [ 36.196872][ C3] ? call_timer_fn+0xe8/0x230 [ 36.197103][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.197258][ C3] call_timer_fn+0x13b/0x230 [ 36.197408][ C3] ? call_timer_fn+0xe8/0x230 [ 36.197562][ C3] ? call_timer_fn+0xe8/0x230 [ 36.197790][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 36.197942][ C3] ? mark_lock+0x38/0x3e0 [ 36.198059][ C3] __run_timers+0x545/0x810 [ 36.198208][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.198435][ C3] ? __pfx___run_timers+0x10/0x10 [ 36.198583][ C3] ? __lock_release+0x103/0x460 [ 36.198744][ C3] ? do_raw_spin_lock+0x131/0x270 [ 36.198895][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.199048][ C3] ? lock_acquire+0x32/0xc0 [ 36.199279][ C3] ? timer_expire_remote+0x93/0xe0 [ 36.199441][ C3] timer_expire_remote+0x9b/0xe0 [ 36.199596][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 36.199762][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 36.200034][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.200191][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 36.200342][ C3] ? do_raw_spin_lock+0x131/0x270 [ 36.200494][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 36.200720][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.200870][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 36.201058][ C3] __do_softirq+0x1f8/0x5df [ 36.201221][ C3] irq_exit_rcu+0x97/0xc0 [ 36.201424][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.201577][ C3] [ 36.201655][ C3] [ 36.201733][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.201929][ C3] RIP: 0010:default_idle+0xf/0x20 [ 36.202176][ C3] 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 [ 36.202736][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000246 [ 36.203091][ C3] RAX: 000000000009af33 RBX: 1ffff9200002dfc1 RCX: ffffffff8d30e9d5 [ 36.203321][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8acaa4a4 [ 36.203548][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 36.203862][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 36.204096][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 36.204324][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.204557][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 36.204709][ C3] default_idle_call+0x6d/0xb0 [ 36.204861][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.205013][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.205243][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.205401][ C3] do_idle+0xf9/0x160 [ 36.205525][ C3] cpu_startup_entry+0x54/0x60 [ 36.205677][ C3] start_secondary+0x21c/0x2b0 [ 36.205946][ C3] ? __pfx_start_secondary+0x10/0x10 [ 36.206100][ C3] common_startup_64+0x12c/0x138 [ 36.206258][ C3]