Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2012 10:51:53 +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: r232597 - stable/8/sys/i386/linux
Message-ID:  <201203061051.q26AprFh036072@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Mar  6 10:51:53 2012
New Revision: 232597
URL: http://svn.freebsd.org/changeset/base/232597

Log:
  MFC r232143:
  Do not write to the user address directly, use suword().

Modified:
  stable/8/sys/i386/linux/linux_sysvec.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/i386/linux/linux_sysvec.c
==============================================================================
--- stable/8/sys/i386/linux/linux_sysvec.c	Tue Mar  6 10:45:23 2012	(r232596)
+++ stable/8/sys/i386/linux/linux_sysvec.c	Tue Mar  6 10:51:53 2012	(r232597)
@@ -225,11 +225,11 @@ linux_fixup(register_t **stack_base, str
 	argv = *stack_base;
 	envp = *stack_base + (imgp->args->argc + 1);
 	(*stack_base)--;
-	**stack_base = (intptr_t)(void *)envp;
+	suword(*stack_base, (intptr_t)(void *)envp);
 	(*stack_base)--;
-	**stack_base = (intptr_t)(void *)argv;
+	suword(*stack_base, (intptr_t)(void *)argv);
 	(*stack_base)--;
-	**stack_base = imgp->args->argc;
+	suword(*stack_base, imgp->args->argc);
 	return (0);
 }
 
@@ -285,7 +285,7 @@ elf_linux_fixup(register_t **stack_base,
 	imgp->auxargs = NULL;
 
 	(*stack_base)--;
-	**stack_base = (register_t)imgp->args->argc;
+	suword(*stack_base, (register_t)imgp->args->argc);
 	return (0);
 }
 



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