Fix a nasty memory corruption issue which can occur due to the kernel bcopy's
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 06:35:12 +0000 (06:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 06:35:12 +0000 (06:35 +0000)
commitaad81e48ef5f0b52dd47dd5bb78aace8d0140716
tree5cbfba1d9b66d8ee97529ad02c2360a57096c1b9
parentc0c70b27fa5d25d0b596dbf158062c286d149dba
Fix a nasty memory corruption issue which can occur due to the kernel bcopy's
use of the FP unit.  If the destination address faults the NPX code can
lose track of the fact that the kernel was using the FP unit.  When the
fault is resolved the kernel bcopy resumes with corrupted FP registers.

The most common situation where this could occur is with pipes, and generally
only when the system is paging heavily and causing multiple processes to
fault in the kernel FP bcopy code.
sys/platform/pc32/i386/bcopy.s
sys/platform/pc32/i386/genassym.c
sys/platform/pc32/isa/npx.c
sys/sys/thread.h