Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 13:00:35 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347689 - head/sys/arm64/arm64
Message-ID:  <201905161300.x4GD0Z3f056079@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905161300.x4GD0Z3f056079>