svn commit: r232597 - stable/8/sys/i386/linux

Konstantin Belousov kib at FreeBSD.org
Tue Mar 6 10:51:53 UTC 2012


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);
 }
 


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