Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2010 10:40:16 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r216403 - stable/8/sys/amd64/amd64
Message-ID:  <201012131040.oBDAeGB5076900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Dec 13 10:40:16 2010
New Revision: 216403
URL: http://svn.freebsd.org/changeset/base/216403

Log:
  MFC r216231:
  Do not leak %rdx value in the previous image to the new image after
  execve(2).
  
  Approved by:	re (bz)

Modified:
  stable/8/sys/amd64/amd64/machdep.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/amd64/amd64/machdep.c
==============================================================================
--- stable/8/sys/amd64/amd64/machdep.c	Mon Dec 13 10:27:35 2010	(r216402)
+++ stable/8/sys/amd64/amd64/machdep.c	Mon Dec 13 10:40:16 2010	(r216403)
@@ -874,6 +874,7 @@ exec_setregs(td, entry, stack, ps_string
 	regs->tf_fs = _ufssel;
 	regs->tf_gs = _ugssel;
 	regs->tf_flags = TF_HASSEGS;
+	td->td_retval[1] = 0;
 
 	/*
 	 * Reset the hardware debug registers if they were in use.



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