Fix an information disclosure issue on AMD cpus. The x87 debug registers,
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 2 May 2006 22:52:24 +0000 (22:52 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 2 May 2006 22:52:24 +0000 (22:52 +0000)
commit8bfb5759cef2cceded09a60c65074514ebe6f055
treeb2d3e5ec2cd84598b0ce938902383d7d06f3b9e4
parent661fc1a074ca1c338901a367dfb40740ce638b62
Fix an information disclosure issue on AMD cpus.  The x87 debug registers,
in particular the last instruction and last data pointers, are not restored
by fxrstor() if there was no pending exception.  Add some dummy FP
instructions (about ~7ns) to 'clean' the registers so a process has no
visibility into another process's FP state.

Submitted-by: Gary <gary@velocity-servers.net>
Taken-from: FreeBSD
Security-Advistory: FreeBSD-SA-06:14.fpu
sys/i386/isa/npx.c
sys/platform/pc32/isa/npx.c