svn commit: r216403 - stable/8/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Mon Dec 13 10:40:16 UTC 2010


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.


More information about the svn-src-stable-8 mailing list