Page MenuHomeFreeBSD

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

Authored by kib on Jul 30 2026, 4:22 AM.
Tags
None
Referenced Files
F171740105: D58548.diff
Sun, Sep 13, 4:38 AM
Unknown Object (File)
Fri, Sep 11, 3:23 PM
Unknown Object (File)
Fri, Sep 11, 4:14 AM
Unknown Object (File)
Thu, Sep 10, 10:30 PM
Unknown Object (File)
Wed, Sep 9, 12:55 AM
Unknown Object (File)
Tue, Sep 8, 10:23 PM
Unknown Object (File)
Tue, Sep 8, 2:21 AM
Unknown Object (File)
Mon, Sep 7, 12:38 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.Jul 30 2026, 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.Jul 30 2026, 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.