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
F175265187: D58548.diff
Fri, Oct 9, 1:55 PM
Unknown Object (File)
Wed, Oct 7, 1:41 AM
Unknown Object (File)
Sat, Oct 3, 6:49 AM
Unknown Object (File)
Tue, Sep 29, 5:25 AM
Unknown Object (File)
Tue, Sep 29, 12:56 AM
Unknown Object (File)
Sun, Sep 13, 4:38 AM
Unknown Object (File)
Fri, Sep 11, 3:23 PM
Unknown Object (File)
Fri, Sep 11, 4:14 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.