[PATCH] x86/fpu: Fix FPU register read access to the current task

From: Ingo Molnar
Date: Wed May 27 2015 - 06:42:28 EST



* Bobby Powers <bobbypowers@xxxxxxxxx> wrote:

> Hello,
>
> Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> > Please have a look.
>
> I've been running this for ~ 2 weeks. I've only seen one issue, when
> emerging mesa 10.5.6:
>
> [May26 20:41] traps: aclocal-1.15[27452] trap invalid opcode
> ip:7f6331031ab0 sp:7ffe73ece880 error:0 in
> libperl.so.5.20.2[7f6330f18000+19e000]
> [ +0.000051] ------------[ cut here ]------------
> [ +0.000005] WARNING: CPU: 0 PID: 27452 at
> arch/x86/kernel/fpu/core.c:324 fpu__activate_stopped+0x8a/0xa0()

Good catch, this shows a bug in the new FPU code.

Could you check whether the fix below solves the problem?

Thanks,

Ingo

====================>