[ 34.098508][ C3] [ 34.098688][ C3] ======================================================== [ 34.098933][ C3] WARNING: possible irq lock inversion dependency detected [ 34.099174][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 34.099406][ C3] -------------------------------------------------------- [ 34.099719][ C3] swapper/3/0 just changed the state of lock: [ 34.099932][ C3] ffff888005e15580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 34.100274][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 34.100572][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 34.100580][ C3] [ 34.100580][ C3] [ 34.100580][ C3] and interrupts could create inverse lock ordering between them. [ 34.100580][ C3] [ 34.101406][ C3] [ 34.101406][ C3] other info that might help us debug this: [ 34.101756][ C3] Possible interrupt unsafe locking scenario: [ 34.101756][ C3] [ 34.102075][ C3] CPU0 CPU1 [ 34.102293][ C3] ---- ---- [ 34.102510][ C3] lock(&p->alloc_lock); [ 34.102682][ C3] local_irq_disable(); [ 34.102964][ C3] lock(&ndev->lock); [ 34.103252][ C3] lock(&p->alloc_lock); [ 34.103524][ C3] <Interrupt> [ 34.103688][ C3] lock(&ndev->lock); [ 34.103854][ C3] [ 34.103854][ C3] *** DEADLOCK *** [ 34.103854][ C3] [ 34.104144][ C3] 1 lock held by swapper/3/0: [ 34.104365][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 34.104762][ C3] [ 34.104762][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 34.105228][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 34.105384][ C3] HARDIRQ-ON-W at: [ 34.105491][ C3] __lock_acquire+0x797/0x1570 [ 34.105669][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.105843][ C3] _raw_spin_lock+0x30/0x40 [ 34.106026][ C3] set_mems_allowed+0x1d/0x210 [ 34.106203][ C3] kernel_init_freeable+0x72/0x310 [ 34.106378][ C3] kernel_init+0x20/0x200 [ 34.106555][ C3] ret_from_fork+0x31/0x70 [ 34.106753][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.106925][ C3] SOFTIRQ-ON-W at: [ 34.107028][ C3] __lock_acquire+0x797/0x1570 [ 34.107204][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.107375][ C3] _raw_spin_lock+0x30/0x40 [ 34.107550][ C3] set_mems_allowed+0x1d/0x210 [ 34.107730][ C3] kernel_init_freeable+0x72/0x310 [ 34.107903][ C3] kernel_init+0x20/0x200 [ 34.108076][ C3] ret_from_fork+0x31/0x70 [ 34.108256][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.108429][ C3] INITIAL USE at: [ 34.108532][ C3] __lock_acquire+0x797/0x1570 [ 34.108710][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.108887][ C3] _raw_spin_lock+0x30/0x40 [ 34.109064][ C3] set_mems_allowed+0x1d/0x210 [ 34.109243][ C3] kernel_init_freeable+0x72/0x310 [ 34.109428][ C3] kernel_init+0x20/0x200 [ 34.109619][ C3] ret_from_fork+0x31/0x70 [ 34.109801][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.109971][ C3] } [ 34.110044][ C3] ... key at: [<ffffffff93dffd20>] __key.387+0x0/0x40 [ 34.110266][ C3] ... acquired at: [ 34.110378][ C3] __lock_acquire+0xaf0/0x1570 [ 34.110524][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.110671][ C3] _raw_spin_lock+0x30/0x40 [ 34.110812][ C3] __get_task_comm+0x27/0x70 [ 34.110956][ C3] ref_tracker_alloc+0x2ee/0x490 [ 34.111116][ C3] netdev_get_by_index+0x5e/0x80 [ 34.111256][ C3] fib6_nh_init+0x3d8/0x15b0 [ 34.111402][ C3] ip6_route_info_create+0xf18/0x17d0 [ 34.111546][ C3] addrconf_f6i_alloc+0x265/0x560 [ 34.111688][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 34.111829][ C3] addrconf_join_anycast+0x1c0/0x220 [ 34.111970][ C3] dev_forward_change+0x2a6/0x7b0 [ 34.112112][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 34.112288][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 34.112430][ C3] proc_sys_call_handler+0x403/0x5e0 [ 34.112573][ C3] vfs_write+0x9e5/0x10a0 [ 34.112718][ C3] ksys_write+0xf5/0x1e0 [ 34.112880][ C3] do_syscall_64+0xc6/0x1e0 [ 34.113026][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.113202][ C3] [ 34.113275][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 34.113421][ C3] HARDIRQ-ON-W at: [ 34.113526][ C3] __lock_acquire+0x797/0x1570 [ 34.113705][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.113883][ C3] _raw_write_lock_bh+0x38/0x50 [ 34.114064][ C3] addrconf_permanent_addr+0x6e/0x670 [ 34.114269][ C3] addrconf_notify+0x749/0xd60 [ 34.114445][ C3] notifier_call_chain+0xcd/0x150 [ 34.114625][ C3] __dev_notify_flags+0xe6/0x250 [ 34.114802][ C3] dev_change_flags+0xec/0x160 [ 34.114987][ C3] do_setlink+0x7d6/0x21e0 [ 34.115199][ C3] __rtnl_newlink+0xaa7/0xd80 [ 34.115374][ C3] rtnl_newlink+0x63/0xa0 [ 34.115548][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.115731][ C3] netlink_rcv_skb+0x130/0x360 [ 34.115908][ C3] netlink_unicast+0x449/0x710 [ 34.116094][ C3] netlink_sendmsg+0x723/0xbe0 [ 34.116268][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 34.116447][ C3] ___sys_sendmsg+0xee/0x170 [ 34.116645][ C3] __sys_sendmsg+0xcd/0x170 [ 34.116824][ C3] do_syscall_64+0xc6/0x1e0 [ 34.117000][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.117211][ C3] HARDIRQ-ON-R at: [ 34.117323][ C3] __lock_acquire+0x797/0x1570 [ 34.117500][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.117677][ C3] _raw_read_lock_bh+0x44/0x80 [ 34.117855][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.118029][ C3] inet6_fill_link_af+0x5e/0xe0 [ 34.118208][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.118387][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.118558][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.118768][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 34.118945][ C3] register_netdevice+0x1177/0x1690 [ 34.119117][ C3] register_netdev+0x20/0x40 [ 34.119289][ C3] sit_init_net+0x250/0x4f0 [ 34.119464][ C3] ops_init+0x9b/0x560 [ 34.119608][ C3] register_pernet_operations+0x2db/0x710 [ 34.119814][ C3] register_pernet_device+0x2a/0x60 [ 34.119988][ C3] sit_init+0x23/0xe0 [ 34.120126][ C3] do_one_initcall+0x8d/0x1e0 [ 34.120298][ C3] do_initcalls+0x1b2/0x3e0 [ 34.120473][ C3] kernel_init_freeable+0x232/0x310 [ 34.120654][ C3] kernel_init+0x20/0x200 [ 34.120830][ C3] ret_from_fork+0x31/0x70 [ 34.121005][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.121177][ C3] IN-SOFTIRQ-W at: [ 34.121283][ C3] __lock_acquire+0x797/0x1570 [ 34.121456][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.121629][ C3] _raw_write_lock+0x30/0x40 [ 34.121813][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.121984][ C3] call_timer_fn+0x13b/0x230 [ 34.122161][ C3] __run_timers+0x545/0x810 [ 34.122335][ C3] timer_expire_remote+0x9b/0xe0 [ 34.122510][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 34.122684][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.122859][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 34.123034][ C3] __do_softirq+0x1f8/0x5df [ 34.123205][ C3] irq_exit_rcu+0x97/0xc0 [ 34.123378][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.123586][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.123793][ C3] default_idle+0xf/0x20 [ 34.123969][ C3] default_idle_call+0x6d/0xb0 [ 34.124144][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.124321][ C3] do_idle+0xf9/0x160 [ 34.124459][ C3] cpu_startup_entry+0x54/0x60 [ 34.124630][ C3] start_secondary+0x21c/0x2b0 [ 34.124810][ C3] common_startup_64+0x12c/0x138 [ 34.124985][ C3] INITIAL USE at: [ 34.125091][ C3] __lock_acquire+0x797/0x1570 [ 34.125275][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.125451][ C3] _raw_write_lock_bh+0x38/0x50 [ 34.125627][ C3] addrconf_permanent_addr+0x6e/0x670 [ 34.125809][ C3] addrconf_notify+0x749/0xd60 [ 34.125986][ C3] notifier_call_chain+0xcd/0x150 [ 34.126163][ C3] __dev_notify_flags+0xe6/0x250 [ 34.126335][ C3] dev_change_flags+0xec/0x160 [ 34.126510][ C3] do_setlink+0x7d6/0x21e0 [ 34.126716][ C3] __rtnl_newlink+0xaa7/0xd80 [ 34.126888][ C3] rtnl_newlink+0x63/0xa0 [ 34.127062][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.127237][ C3] netlink_rcv_skb+0x130/0x360 [ 34.127412][ C3] netlink_unicast+0x449/0x710 [ 34.127584][ C3] netlink_sendmsg+0x723/0xbe0 [ 34.127760][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 34.127931][ C3] ___sys_sendmsg+0xee/0x170 [ 34.128105][ C3] __sys_sendmsg+0xcd/0x170 [ 34.128276][ C3] do_syscall_64+0xc6/0x1e0 [ 34.128449][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.128658][ C3] INITIAL READ USE at: [ 34.128761][ C3] __lock_acquire+0x797/0x1570 [ 34.128934][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.129106][ C3] _raw_read_lock_bh+0x44/0x80 [ 34.129277][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.129488][ C3] inet6_fill_link_af+0x5e/0xe0 [ 34.129664][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.129836][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.130043][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.130311][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 34.130586][ C3] register_netdevice+0x1177/0x1690 [ 34.130898][ C3] register_netdev+0x20/0x40 [ 34.131183][ C3] sit_init_net+0x250/0x4f0 [ 34.131469][ C3] ops_init+0x9b/0x560 [ 34.131759][ C3] register_pernet_operations+0x2db/0x710 [ 34.132102][ C3] register_pernet_device+0x2a/0x60 [ 34.132443][ C3] sit_init+0x23/0xe0 [ 34.132735][ C3] do_one_initcall+0x8d/0x1e0 [ 34.133023][ C3] do_initcalls+0x1b2/0x3e0 [ 34.133312][ C3] kernel_init_freeable+0x232/0x310 [ 34.133640][ C3] kernel_init+0x20/0x200 [ 34.133930][ C3] ret_from_fork+0x31/0x70 [ 34.134164][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.134348][ C3] } [ 34.134419][ C3] ... key at: [<ffffffff94e58300>] __key.37+0x0/0x40 [ 34.134635][ C3] ... acquired at: [ 34.134741][ C3] mark_lock+0x28d/0x3e0 [ 34.134878][ C3] mark_usage+0xd9/0x2a0 [ 34.135021][ C3] __lock_acquire+0x797/0x1570 [ 34.135179][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.135319][ C3] _raw_write_lock+0x30/0x40 [ 34.135485][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.135640][ C3] call_timer_fn+0x13b/0x230 [ 34.135782][ C3] __run_timers+0x545/0x810 [ 34.135940][ C3] timer_expire_remote+0x9b/0xe0 [ 34.136077][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 34.136216][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.136353][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 34.136490][ C3] __do_softirq+0x1f8/0x5df [ 34.136641][ C3] irq_exit_rcu+0x97/0xc0 [ 34.136785][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.136959][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.137133][ C3] default_idle+0xf/0x20 [ 34.137271][ C3] default_idle_call+0x6d/0xb0 [ 34.137407][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.137555][ C3] do_idle+0xf9/0x160 [ 34.137660][ C3] cpu_startup_entry+0x54/0x60 [ 34.137796][ C3] start_secondary+0x21c/0x2b0 [ 34.137938][ C3] common_startup_64+0x12c/0x138 [ 34.138076][ C3] [ 34.138146][ C3] [ 34.138146][ C3] stack backtrace: [ 34.138321][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 34.138535][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.138844][ C3] Call Trace: [ 34.138948][ C3] <IRQ> [ 34.139026][ C3] dump_stack_lvl+0x82/0xd0 [ 34.139176][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.139345][ C3] ? kernel_text_address+0x17/0xe0 [ 34.139492][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.139660][ C3] ? __pfx_usage_skip+0x10/0x10 [ 34.139806][ C3] ? __pfx_usage_match+0x10/0x10 [ 34.139943][ C3] ? arch_stack_walk+0x8c/0xf0 [ 34.140085][ C3] mark_lock_irq+0x4cd/0xa10 [ 34.140226][ C3] ? common_startup_64+0x12c/0x138 [ 34.140368][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.140508][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 34.140657][ C3] ? save_trace+0x8f/0x5b0 [ 34.140795][ C3] mark_lock+0x28d/0x3e0 [ 34.140902][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 34.141039][ C3] mark_usage+0xd9/0x2a0 [ 34.141147][ C3] __lock_acquire+0x797/0x1570 [ 34.141292][ C3] ? __pfx_validate_chain+0x10/0x10 [ 34.141430][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.141566][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.141703][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.141844][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.141981][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 34.142118][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.142256][ C3] ? lock_acquire+0x32/0xc0 [ 34.142404][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.142540][ C3] _raw_write_lock+0x30/0x40 [ 34.142676][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.142812][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.142947][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.143088][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.143223][ C3] ? call_timer_fn+0xe8/0x230 [ 34.143362][ C3] ? lock_acquire+0x32/0xc0 [ 34.143498][ C3] ? call_timer_fn+0xe8/0x230 [ 34.143640][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.143773][ C3] call_timer_fn+0x13b/0x230 [ 34.143908][ C3] ? call_timer_fn+0xe8/0x230 [ 34.144045][ C3] ? call_timer_fn+0xe8/0x230 [ 34.144182][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 34.144327][ C3] ? mark_lock+0x38/0x3e0 [ 34.144434][ C3] __run_timers+0x545/0x810 [ 34.144569][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.144709][ C3] ? __pfx___run_timers+0x10/0x10 [ 34.144846][ C3] ? __lock_release+0x103/0x460 [ 34.144983][ C3] ? do_raw_spin_lock+0x131/0x270 [ 34.145152][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.145290][ C3] ? lock_acquire+0x32/0xc0 [ 34.145431][ C3] ? timer_expire_remote+0x93/0xe0 [ 34.145569][ C3] timer_expire_remote+0x9b/0xe0 [ 34.145705][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 34.145841][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 34.146020][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.146158][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 34.146294][ C3] ? do_raw_spin_lock+0x131/0x270 [ 34.146431][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 34.146569][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.146704][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 34.146874][ C3] __do_softirq+0x1f8/0x5df [ 34.147017][ C3] irq_exit_rcu+0x97/0xc0 [ 34.147123][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.147264][ C3] </IRQ> [ 34.147335][ C3] <TASK> [ 34.147404][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.147573][ C3] RIP: 0010:default_idle+0xf/0x20 [ 34.147722][ 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 <fa> c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 34.148236][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000246 [ 34.148414][ C3] RAX: 000000000006f359 RBX: 1ffff9200002dfc1 RCX: ffffffff9130e9d5 [ 34.148642][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8ecaa4a4 [ 34.148847][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f3709c [ 34.149061][ C3] R10: ffff88802f9b84e3 R11: ffff88802f9ad9b0 R12: 0000000000000000 [ 34.149264][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 34.149468][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.149605][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 34.149743][ C3] default_idle_call+0x6d/0xb0 [ 34.149878][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.150015][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.150158][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.150297][ C3] do_idle+0xf9/0x160 [ 34.150401][ C3] cpu_startup_entry+0x54/0x60 [ 34.150538][ C3] start_secondary+0x21c/0x2b0 [ 34.150676][ C3] ? __pfx_start_secondary+0x10/0x10 [ 34.150817][ C3] common_startup_64+0x12c/0x138 [ 34.150956][ C3] </TASK>