mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
Do not write to the user address directly, use suword().
Reported by: Bengt Ahlgren <bengta sics se> MFC after: 1 week
This commit is contained in:
parent
4fd3565a35
commit
aa10345311
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232143
@ -227,11 +227,11 @@ linux_fixup(register_t **stack_base, struct image_params *imgp)
|
||||
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, struct image_params *imgp)
|
||||
imgp->auxargs = NULL;
|
||||
|
||||
(*stack_base)--;
|
||||
**stack_base = (register_t)imgp->args->argc;
|
||||
suword(*stack_base, (register_t)imgp->args->argc);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user