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.
Details
Details
- Reviewers
markj - Commits
- rGb1e2f063ae91: amd64 sendsig: fix context corruption
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable