Page MenuHomeFreeBSD

amd64 sendsig: fix context corruption
ClosedPublic

Authored by kib on Sep 27 2021, 5:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 11:01 AM
Unknown Object (File)
Tue, Apr 14, 3:33 AM
Unknown Object (File)
Mon, Apr 13, 10:59 AM
Unknown Object (File)
Mon, Apr 6, 8:38 AM
Unknown Object (File)
Mar 25 2026, 7:57 AM
Unknown Object (File)
Mar 13 2026, 10:51 AM
Unknown Object (File)
Mar 6 2026, 5:37 PM
Unknown Object (File)
Dec 24 2025, 7:12 PM
Subscribers
None

Details

Summary
Drop fpstate only after copying out xfpustate from the thread usermode
save area. Otherwise a context switch between get_fpcontext(), which now
returns the pointer directly into user save area, and copyout, would
cause reinit of the save area, loosing user registers.

Diff Detail

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

Event Timeline

kib requested review of this revision.Sep 27 2021, 5:02 PM
kib created this revision.
This revision is now accepted and ready to land.Sep 27 2021, 5:04 PM
This revision was automatically updated to reflect the committed changes.