Page MenuHomeFreeBSD

amd64 sendsig: fix context corruption

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


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

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