[ 31.526439][ C2] [ 31.526559][ C2] ======================================================== [ 31.526788][ C2] WARNING: possible irq lock inversion dependency detected [ 31.527015][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.527170][ C2] -------------------------------------------------------- [ 31.527398][ C2] swapper/2/0 just changed the state of lock: [ 31.527585][ C2] ffff888005edbd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.527861][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.528081][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.528086][ C2] [ 31.528086][ C2] [ 31.528086][ C2] and interrupts could create inverse lock ordering between them. [ 31.528086][ C2] [ 31.528636][ C2] [ 31.528636][ C2] other info that might help us debug this: [ 31.528865][ C2] Possible interrupt unsafe locking scenario: [ 31.528865][ C2] [ 31.529086][ C2] CPU0 CPU1 [ 31.529236][ C2] ---- ---- [ 31.529389][ C2] lock(&p->alloc_lock); [ 31.529505][ C2] local_irq_disable(); [ 31.529692][ C2] lock(&ndev->lock); [ 31.529881][ C2] lock(&p->alloc_lock); [ 31.530069][ C2] [ 31.530184][ C2] lock(&ndev->lock); [ 31.530300][ C2] [ 31.530300][ C2] *** DEADLOCK *** [ 31.530300][ C2] [ 31.530522][ C2] 1 lock held by swapper/2/0: [ 31.530674][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.530948][ C2] [ 31.530948][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.531203][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.531359][ C2] HARDIRQ-ON-W at: [ 31.531479][ C2] __lock_acquire+0x797/0x1570 [ 31.531678][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.531868][ C2] _raw_spin_lock+0x30/0x40 [ 31.532061][ C2] set_mems_allowed+0x1d/0x210 [ 31.532256][ C2] kernel_init_freeable+0x72/0x310 [ 31.532449][ C2] kernel_init+0x20/0x200 [ 31.532637][ C2] ret_from_fork+0x31/0x70 [ 31.532836][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.533027][ C2] SOFTIRQ-ON-W at: [ 31.533140][ C2] __lock_acquire+0x797/0x1570 [ 31.533330][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.533528][ C2] _raw_spin_lock+0x30/0x40 [ 31.533717][ C2] set_mems_allowed+0x1d/0x210 [ 31.533912][ C2] kernel_init_freeable+0x72/0x310 [ 31.534104][ C2] kernel_init+0x20/0x200 [ 31.534293][ C2] ret_from_fork+0x31/0x70 [ 31.534482][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.534669][ C2] INITIAL USE at: [ 31.534783][ C2] __lock_acquire+0x797/0x1570 [ 31.534972][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.535165][ C2] _raw_spin_lock+0x30/0x40 [ 31.535354][ C2] set_mems_allowed+0x1d/0x210 [ 31.535541][ C2] kernel_init_freeable+0x72/0x310 [ 31.535726][ C2] kernel_init+0x20/0x200 [ 31.535909][ C2] ret_from_fork+0x31/0x70 [ 31.536099][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.536291][ C2] } [ 31.536369][ C2] ... key at: [] __key.387+0x0/0x40 [ 31.536595][ C2] ... acquired at: [ 31.536709][ C2] __lock_acquire+0xaf0/0x1570 [ 31.536863][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.537014][ C2] _raw_spin_lock+0x30/0x40 [ 31.537163][ C2] __get_task_comm+0x27/0x70 [ 31.537317][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.537474][ C2] netdev_get_by_index+0x5e/0x80 [ 31.537624][ C2] fib6_nh_init+0x3d8/0x15b0 [ 31.537775][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.537930][ C2] ip6_route_add+0x1c/0x140 [ 31.538081][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 31.538231][ C2] addrconf_permanent_addr+0x32f/0x670 [ 31.538381][ C2] addrconf_notify+0x749/0xd60 [ 31.538535][ C2] notifier_call_chain+0xcd/0x150 [ 31.538688][ C2] __dev_notify_flags+0xe6/0x250 [ 31.538837][ C2] dev_change_flags+0xec/0x160 [ 31.538987][ C2] do_setlink+0x7d6/0x21e0 [ 31.539140][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.539292][ C2] rtnl_newlink+0x63/0xa0 [ 31.539443][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.539593][ C2] netlink_rcv_skb+0x130/0x360 [ 31.539746][ C2] netlink_unicast+0x449/0x710 [ 31.539902][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.540052][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.540203][ C2] ___sys_sendmsg+0xee/0x170 [ 31.540354][ C2] __sys_sendmsg+0xcd/0x170 [ 31.540507][ C2] do_syscall_64+0xc6/0x1e0 [ 31.540657][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.540848][ C2] [ 31.540926][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.541081][ C2] HARDIRQ-ON-W at: [ 31.541196][ C2] __lock_acquire+0x797/0x1570 [ 31.541385][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.541572][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.541762][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.541953][ C2] addrconf_notify+0x749/0xd60 [ 31.542139][ C2] notifier_call_chain+0xcd/0x150 [ 31.542327][ C2] __dev_notify_flags+0xe6/0x250 [ 31.542517][ C2] dev_change_flags+0xec/0x160 [ 31.542705][ C2] do_setlink+0x7d6/0x21e0 [ 31.542892][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.543081][ C2] rtnl_newlink+0x63/0xa0 [ 31.543269][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.543457][ C2] netlink_rcv_skb+0x130/0x360 [ 31.543655][ C2] netlink_unicast+0x449/0x710 [ 31.543845][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.544032][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.544221][ C2] ___sys_sendmsg+0xee/0x170 [ 31.544408][ C2] __sys_sendmsg+0xcd/0x170 [ 31.544596][ C2] do_syscall_64+0xc6/0x1e0 [ 31.544782][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.545009][ C2] HARDIRQ-ON-R at: [ 31.545122][ C2] __lock_acquire+0x797/0x1570 [ 31.545307][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.545494][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.545683][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.545870][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.546069][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 31.546256][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.546447][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.546672][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.546864][ C2] register_netdevice+0x1177/0x1690 [ 31.547054][ C2] register_netdev+0x20/0x40 [ 31.547245][ C2] sit_init_net+0x250/0x4f0 [ 31.547433][ C2] ops_init+0x9b/0x560 [ 31.547588][ C2] register_pernet_operations+0x2db/0x710 [ 31.547813][ C2] register_pernet_device+0x2a/0x60 [ 31.548003][ C2] sit_init+0x23/0xe0 [ 31.548155][ C2] do_one_initcall+0x8d/0x1e0 [ 31.548346][ C2] do_initcalls+0x1b2/0x3e0 [ 31.548538][ C2] kernel_init_freeable+0x232/0x310 [ 31.548727][ C2] kernel_init+0x20/0x200 [ 31.548915][ C2] ret_from_fork+0x31/0x70 [ 31.549102][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.549289][ C2] IN-SOFTIRQ-W at: [ 31.549404][ C2] __lock_acquire+0x797/0x1570 [ 31.549593][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.549782][ C2] _raw_write_lock+0x30/0x40 [ 31.549970][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.550160][ C2] call_timer_fn+0x13b/0x230 [ 31.550349][ C2] __run_timers+0x545/0x810 [ 31.550535][ C2] timer_expire_remote+0x9b/0xe0 [ 31.550722][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.550996][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.551182][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.551369][ C2] __do_softirq+0x1f8/0x5df [ 31.551637][ C2] irq_exit_rcu+0x97/0xc0 [ 31.551823][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.552047][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.552356][ C2] default_idle+0xf/0x20 [ 31.552544][ C2] default_idle_call+0x6d/0xb0 [ 31.552729][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.552917][ C2] do_idle+0xf9/0x160 [ 31.553070][ C2] cpu_startup_entry+0x54/0x60 [ 31.553257][ C2] start_secondary+0x21c/0x2b0 [ 31.553447][ C2] common_startup_64+0x12c/0x138 [ 31.553728][ C2] INITIAL USE at: [ 31.553842][ C2] __lock_acquire+0x797/0x1570 [ 31.554027][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.554213][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.554488][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.554677][ C2] addrconf_notify+0x749/0xd60 [ 31.554866][ C2] notifier_call_chain+0xcd/0x150 [ 31.555053][ C2] __dev_notify_flags+0xe6/0x250 [ 31.555242][ C2] dev_change_flags+0xec/0x160 [ 31.555428][ C2] do_setlink+0x7d6/0x21e0 [ 31.555616][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.555885][ C2] rtnl_newlink+0x63/0xa0 [ 31.556070][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.556260][ C2] netlink_rcv_skb+0x130/0x360 [ 31.556530][ C2] netlink_unicast+0x449/0x710 [ 31.556720][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.556908][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.557095][ C2] ___sys_sendmsg+0xee/0x170 [ 31.557360][ C2] __sys_sendmsg+0xcd/0x170 [ 31.557548][ C2] do_syscall_64+0xc6/0x1e0 [ 31.557735][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.558039][ C2] INITIAL READ USE at: [ 31.558152][ C2] __lock_acquire+0x797/0x1570 [ 31.558340][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.558527][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.558794][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.559019][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.559207][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 31.559480][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.559705][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.559931][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.560123][ C2] register_netdevice+0x1177/0x1690 [ 31.560346][ C2] register_netdev+0x20/0x40 [ 31.560537][ C2] sit_init_net+0x250/0x4f0 [ 31.560806][ C2] ops_init+0x9b/0x560 [ 31.560996][ C2] register_pernet_operations+0x2db/0x710 [ 31.561223][ C2] register_pernet_device+0x2a/0x60 [ 31.561611][ C2] sit_init+0x23/0xe0 [ 31.561799][ C2] do_one_initcall+0x8d/0x1e0 [ 31.561987][ C2] do_initcalls+0x1b2/0x3e0 [ 31.562176][ C2] kernel_init_freeable+0x232/0x310 [ 31.562486][ C2] kernel_init+0x20/0x200 [ 31.562672][ C2] ret_from_fork+0x31/0x70 [ 31.562862][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.563130][ C2] } [ 31.563206][ C2] ... key at: [] __key.36+0x0/0x40 [ 31.563428][ C2] ... acquired at: [ 31.563545][ C2] mark_lock+0x28d/0x3e0 [ 31.563779][ C2] mark_usage+0xd9/0x2a0 [ 31.563931][ C2] __lock_acquire+0x797/0x1570 [ 31.564080][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.564232][ C2] _raw_write_lock+0x30/0x40 [ 31.564459][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.564607][ C2] call_timer_fn+0x13b/0x230 [ 31.564759][ C2] __run_timers+0x545/0x810 [ 31.564909][ C2] timer_expire_remote+0x9b/0xe0 [ 31.565057][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.565288][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.565440][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.565593][ C2] __do_softirq+0x1f8/0x5df [ 31.565745][ C2] irq_exit_rcu+0x97/0xc0 [ 31.565974][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.566161][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.566349][ C2] default_idle+0xf/0x20 [ 31.566499][ C2] default_idle_call+0x6d/0xb0 [ 31.566728][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.566880][ C2] do_idle+0xf9/0x160 [ 31.566994][ C2] cpu_startup_entry+0x54/0x60 [ 31.567146][ C2] start_secondary+0x21c/0x2b0 [ 31.567378][ C2] common_startup_64+0x12c/0x138 [ 31.567527][ C2] [ 31.567602][ C2] [ 31.567602][ C2] stack backtrace: [ 31.567787][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.568017][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.568349][ C2] Call Trace: [ 31.568474][ C2] [ 31.568556][ C2] dump_stack_lvl+0x82/0xd0 [ 31.568791][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.568977][ C2] ? kernel_text_address+0x17/0xe0 [ 31.569130][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.569314][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.569551][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.569700][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.569856][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.570005][ C2] ? common_startup_64+0x12c/0x138 [ 31.570155][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.570305][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.570458][ C2] ? lock_acquire.part.0+0xeb/0x330 [ 31.570617][ C2] ? save_trace+0x8f/0x5b0 [ 31.570848][ C2] mark_lock+0x28d/0x3e0 [ 31.570960][ C2] mark_usage+0xd9/0x2a0 [ 31.571074][ C2] __lock_acquire+0x797/0x1570 [ 31.571223][ C2] ? hlock_class+0x4e/0x130 [ 31.571370][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.571594][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.571745][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.571892][ C2] ? ct_nmi_exit+0x85/0x100 [ 31.572039][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.572264][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.572414][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.572561][ C2] ? lock_acquire+0x32/0xc0 [ 31.572711][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.573017][ C2] _raw_write_lock+0x30/0x40 [ 31.573165][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.573312][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.573462][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.573625][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.573855][ C2] ? call_timer_fn+0xe8/0x230 [ 31.574004][ C2] ? lock_acquire+0x32/0xc0 [ 31.574151][ C2] ? call_timer_fn+0xe8/0x230 [ 31.574298][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.574524][ C2] call_timer_fn+0x13b/0x230 [ 31.574672][ C2] ? call_timer_fn+0xe8/0x230 [ 31.574820][ C2] ? call_timer_fn+0xe8/0x230 [ 31.574966][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.575193][ C2] ? mark_lock+0x38/0x3e0 [ 31.575311][ C2] __run_timers+0x545/0x810 [ 31.575459][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.575606][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.575753][ C2] ? __lock_release+0x103/0x460 [ 31.575983][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.576131][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.576278][ C2] ? lock_acquire+0x32/0xc0 [ 31.576424][ C2] ? timer_expire_remote+0x93/0xe0 [ 31.576652][ C2] timer_expire_remote+0x9b/0xe0 [ 31.576802][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.576951][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.577137][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.577362][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.577508][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.577652][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.577798][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.578028][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 31.578214][ C2] __do_softirq+0x1f8/0x5df [ 31.578362][ C2] irq_exit_rcu+0x97/0xc0 [ 31.578475][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.578701][ C2] [ 31.578778][ C2] [ 31.578853][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.579039][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.579195][ C2] 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 c3 c1 2b 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 31.579812][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 31.580000][ C2] RAX: 00000000000dd39b RBX: 1ffff9200002bfc1 RCX: ffffffff8cda58b5 [ 31.580221][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8a6aa4a4 [ 31.580444][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 31.580663][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 31.580963][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.581188][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.581337][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.581564][ C2] default_idle_call+0x6d/0xb0 [ 31.581714][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.581860][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.582008][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.582238][ C2] do_idle+0xf9/0x160 [ 31.582350][ C2] cpu_startup_entry+0x54/0x60 [ 31.582497][ C2] start_secondary+0x21c/0x2b0 [ 31.582643][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.582790][ C2] common_startup_64+0x12c/0x138 [ 31.583022][ C2]