Re: [PATCH 6/8] x86/fpu: Make sure x86_task_fpu() doesn't get called for PF_KTHREAD|PF_USER_WORKER tasks during exit
From: Chang S. Bae
Date: Fri Apr 11 2025 - 11:22:31 EST
On 4/9/2025 2:11 PM, Ingo Molnar wrote:
void arch_release_task_struct(struct task_struct *tsk)
{
- if (fpu_state_size_dynamic())
+ if (fpu_state_size_dynamic() && !(current->flags & (PF_KTHREAD | PF_USER_WORKER)))
fpstate_free(x86_task_fpu(tsk));
}
Looks like the AMX system couldn't boot properly, and I found that
referencing tsk->flags here resolves the issue.
Thanks,
Chang