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)
Wed, Apr 24, 10:18 AM
Unknown Object (File)
Thu, Apr 4, 10:57 PM
Unknown Object (File)
Mar 7 2024, 11:56 PM
Unknown Object (File)
Mar 2 2024, 4:40 PM
Unknown Object (File)
Feb 19 2024, 10:10 PM
Unknown Object (File)
Jan 30 2024, 5:00 AM
Unknown Object (File)
Dec 23 2023, 2:28 PM
Unknown Object (File)
Dec 23 2023, 12:15 AM
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.