Re: [BK-2.5] Move "used FPU status" into new non-atomic thread_info->status field.

From: David S. Miller (davem@redhat.com)
Date: Mon Mar 10 2003 - 13:56:59 EST


   From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
   Date: Mon, 10 Mar 2003 18:20:35 +0000
           
Linus said, in a recent BK changelog:

           Also, fix x86 FP state after fork() by making sure the FP is unlazied
           _before_ we copy the state information. Otherwise, if a process did a
           fork() while holding the FP state lazily in the registers, the child
           would incorrectly unlazy bogus state.
   
At least on sparc{32,64}, we consider FPU state to be clobbered coming
into system calls, this eliminates a lot of hair wrt. FPU state
restoring in cases such as fork().

Are you preserving FPU state across fork() on x86? If so, what do you
think might rely on this?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:22 EST