Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 10:11:18 +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-9@freebsd.org
Subject:   svn commit: r232451 - stable/9/sys/i386/linux
Message-ID:  <201203031011.q23ABInC074774@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Mar  3 10:11:18 2012
New Revision: 232451
URL: http://svn.freebsd.org/changeset/base/232451

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

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

Modified: stable/9/sys/i386/linux/linux_sysvec.c
==============================================================================
--- stable/9/sys/i386/linux/linux_sysvec.c	Sat Mar  3 09:19:20 2012	(r232450)
+++ stable/9/sys/i386/linux/linux_sysvec.c	Sat Mar  3 10:11:18 2012	(r232451)
@@ -227,11 +227,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);
 }
 
@@ -286,7 +286,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?201203031011.q23ABInC074774>