svn commit: r338813 - head/sys/arm64/arm64
John Baldwin
jhb at FreeBSD.org
Wed Sep 19 22:53:53 UTC 2018
Author: jhb
Date: Wed Sep 19 22:53:52 2018
New Revision: 338813
URL: https://svnweb.freebsd.org/changeset/base/338813
Log:
Clear all of the VFP state in fill_fpregs().
Zero the entire FP register set structure returned for ptrace() if a
thread hasn't used FP registers rather than leaking garbage in the
fp_sr and fp_cr fields.
Reviewed by: emaste, andrew
Approved by: re (rgrimes)
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17140
Modified:
head/sys/arm64/arm64/machdep.c
Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c Wed Sep 19 22:39:40 2018 (r338812)
+++ head/sys/arm64/arm64/machdep.c Wed Sep 19 22:53:52 2018 (r338813)
@@ -236,7 +236,7 @@ fill_fpregs(struct thread *td, struct fpreg *regs)
regs->fp_sr = pcb->pcb_fpustate.vfp_fpsr;
} else
#endif
- memset(regs->fp_q, 0, sizeof(regs->fp_q));
+ memset(regs, 0, sizeof(*regs));
return (0);
}
More information about the svn-src-all
mailing list