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)
Sat, Dec 7, 8:44 AM
Unknown Object (File)
Nov 27 2024, 12:41 PM
Unknown Object (File)
Nov 10 2024, 3:28 PM
Unknown Object (File)
Nov 10 2024, 12:27 PM
Unknown Object (File)
Nov 9 2024, 8:30 PM
Unknown Object (File)
Nov 9 2024, 5:59 PM
Unknown Object (File)
Nov 9 2024, 1:31 PM
Unknown Object (File)
Nov 9 2024, 12:01 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.