Page MenuHomeFreeBSD

amd64 sendsig: fix context corruption
ClosedPublic

Authored by kib on Mon, Sep 27, 5:02 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

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