Page MenuHomeFreeBSD

amd64: do not allow to set reserved bits in MXCSR for ptrace(PT_SETFPREGS)
ClosedPublic

Authored by kib on Thu, Jul 30, 4:22 AM.
Tags
None
Referenced Files
F165328877: D58548.id183090.diff
Fri, Aug 7, 4:25 PM
F165307695: D58548.id183090.diff
Fri, Aug 7, 1:37 PM
Unknown Object (File)
Thu, Aug 6, 6:03 PM
Unknown Object (File)
Thu, Aug 6, 2:04 PM
Unknown Object (File)
Wed, Aug 5, 12:47 AM
Unknown Object (File)
Tue, Aug 4, 6:54 PM
Unknown Object (File)
Tue, Aug 4, 12:02 PM
Unknown Object (File)
Mon, Aug 3, 7:49 AM
Subscribers

Details

Summary
Also do not mask bits in the mxcsr_mask.  It is ignored by FRSTOR/XRSTOR.

Reported by:    markj

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Thu, Jul 30, 4:22 AM

Have you had a chance to test this under GDB and/or LLDB? I can't imagine they'd be setting any reserved bits so this should be fine.

This revision is now accepted and ready to land.Thu, Jul 30, 12:34 PM
In D58548#1343721, @jhb wrote:

Have you had a chance to test this under GDB and/or LLDB? I can't imagine they'd be setting any reserved bits so this should be fine.

In such case we would get the #GP I believe, for the same reason as in the Mark' syzcaller reproducer.