svn commit: r347689 - head/sys/arm64/arm64

Konstantin Belousov kib at FreeBSD.org
Thu May 16 13:00:36 UTC 2019


Author: kib
Date: Thu May 16 13:00:35 2019
New Revision: 347689
URL: https://svnweb.freebsd.org/changeset/base/347689

Log:
  arm64: bzero buffer for ucontext in freebsd32_swapcontext().
  
  This change is the same as r340994 for amd64.
  
  PR:	237922
  Submitted by:	Young <yangx92 at hotmail.com>
  MFC after:	3 days

Modified:
  head/sys/arm64/arm64/freebsd32_machdep.c

Modified: head/sys/arm64/arm64/freebsd32_machdep.c
==============================================================================
--- head/sys/arm64/arm64/freebsd32_machdep.c	Thu May 16 11:20:02 2019	(r347688)
+++ head/sys/arm64/arm64/freebsd32_machdep.c	Thu May 16 13:00:35 2019	(r347689)
@@ -284,6 +284,7 @@ freebsd32_swapcontext(struct thread *td, struct freebs
 	if (uap->oucp == NULL || uap->ucp == NULL)
 		ret = EINVAL;
 	else {
+		bzero(&uc, sizeof(uc));
 		get_mcontext32(td, &uc.uc_mcontext, GET_MC_CLEAR_RET);
 		PROC_LOCK(td->td_proc);
 		uc.uc_sigmask = td->td_sigmask;


More information about the svn-src-all mailing list