Re: 2.6.10-rc3, i386: fpu handling on sigreturn

From: Bodo Stroesser
Date: Wed Dec 22 2004 - 18:51:16 EST

Andi Kleen wrote:
Bodo Stroesser <bstroesser@xxxxxxxxxxxxxxxxxxx> writes:

Now, the interrupted processes fpu no longer is cleared!

I agree it's a bug, although it's probably pretty obscure so people
didn't notice it. The right fix would be to just clear_fpu again
in this case. The problem has been in Linux forever.
Wouldn't it be better to also reset used_math to 0? (As it has been,
before the sighandler was started)


Here's an untested patch for i386 and x86-64.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at