Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2016 16:13:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206370] amd64 fpu not fully initialized
Message-ID:  <bug-206370-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206370

            Bug ID: 206370
           Summary: amd64 fpu not fully initialized
           Product: Base System
           Version: 10.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: joss.upton@yahoo.com
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

Created attachment 165763
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D165763&action=
=3Dedit
fpu zero-ing diff

The register file for the x86 MMU is not fully zero'd when creating the thr=
ead0
context.  This leaves garbage in several of the registers.  For the X87 FPU
registers, they are properly tagged as empty, but the register file still
contains garbage.  For the XMM registers, only register 0 is actually zero'd
(not the whole file).  The diff attached, fully zero's the X87 registers and
ALL 16 of the XMM registers.

The contents of the fxsave area look something like the stuff below w/out t=
he
diff.  With the diff, all of the registers are zero'd.  Diff is against 10.=
2-R.

xmm st0 =3D 0100000000000000ffff
xmm st1 =3D 00f0000000000000ffff
xmm st2 =3D 27e9000000000000ffff
xmm st3 =3D a1e8000000000000ffff
xmm st4 =3D 2800000000000000ffff
xmm st5 =3D 0000000000000000ffff
xmm st6 =3D 0a00000000000000ffff
xmm st7 =3D 00000000000000000000
xmm xmm0 =3D 00000000000000000000000000000000
xmm xmm1 =3D 0000c842000000000000000000000000
xmm xmm2 =3D 075b0000000000000000000000000000
xmm xmm3 =3D 00000080000000000000000000000000
xmm xmm4 =3D 40020000000000000000000000000000
xmm xmm5 =3D 020000e0000000000000000000000000
xmm xmm6 =3D 00400000000000000000000000000000
xmm xmm7 =3D 3f7f0000000000000000000000000000
xmm xmm8 =3D 00000000000000000000000000000000
xmm xmm9 =3D 00000000000000000000000000000000
xmm xmma =3D 00000000000000000000000000000000
xmm xmmb =3D 00000000000000000000000000000000
xmm xmmc =3D 00000000000000000000000000000000
xmm xmmd =3D 00000000000000000000000000000000
xmm xmme =3D 00000000000000000000000000000000
xmm xmmf =3D 00000000000000000000000000000000

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206370-8>