svn commit: r232451 - stable/9/sys/i386/linux
Konstantin Belousov
kib at FreeBSD.org
Sat Mar 3 10:11:19 UTC 2012
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);
}
More information about the svn-src-stable-9
mailing list