|
@@ -374,7 +374,7 @@ copy_envp:
|
|
|
|
|
|
int init_stack (const char ** argv, const char ** envp,
|
|
|
int ** argcpp, const char *** argpp,
|
|
|
- elf_auxv_t ** auxpp, size_t reserve)
|
|
|
+ elf_auxv_t ** auxpp)
|
|
|
{
|
|
|
uint64_t stack_size = get_rlimit_cur(RLIMIT_STACK);
|
|
|
|
|
@@ -398,7 +398,7 @@ int init_stack (const char ** argv, const char ** envp,
|
|
|
if (initial_envp)
|
|
|
envp = initial_envp;
|
|
|
|
|
|
- int ret = populate_user_stack(stack, stack_size - reserve,
|
|
|
+ int ret = populate_user_stack(stack, stack_size,
|
|
|
auxpp, argcpp, &argv, &envp);
|
|
|
if (ret < 0)
|
|
|
return ret;
|
|
@@ -771,7 +771,7 @@ noreturn void* shim_init (int argc, void * args)
|
|
|
RUN_INIT(init_mount);
|
|
|
RUN_INIT(init_important_handles);
|
|
|
RUN_INIT(init_async);
|
|
|
- RUN_INIT(init_stack, argv, envp, &argcp, &argp, &auxp, 0);
|
|
|
+ RUN_INIT(init_stack, argv, envp, &argcp, &argp, &auxp);
|
|
|
RUN_INIT(init_loader);
|
|
|
RUN_INIT(init_ipc_helper);
|
|
|
RUN_INIT(init_signal);
|