HomeFreeBSD

amd64: eliminate td_md.md_fpu_scratch

Description

amd64: eliminate td_md.md_fpu_scratch

For signal send, copyout from the user FPU save area directly.

For sigreturn, we are in sleepable context and can do temporal
allocation of the transient save area. We cannot copying from userspace
directly to user save area because XSAVE state needs to be validated,
also partial copyins can corrupt it.

Requested by: jhb
Reviewed by: jhb, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31954

Details

Provenance
kibAuthored on Sep 15 2021, 6:37 PM
Reviewer
jhb
Differential Revision
D31954: amd64: stop using top of the thread' kernel stack for FPU user save area
Parents
rGdf8dd6025af8: amd64: stop using top of the thread' kernel stack for FPU user save area
Branches
Unknown
Tags
Unknown