Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186252
b: refs/heads/master
c: 5ef097d
h: refs/heads/master
v: v3
  • Loading branch information
Michael Neuling authored and Linus Torvalds committed Mar 6, 2010
1 parent 53b2dee commit a59a419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9728e5d6e6c432ee8487c63ce6e479e2474d9945
refs/heads/master: 5ef097dd7ba4eab8b4f0026d85fcef9fe23b821f
4 changes: 1 addition & 3 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
return 0;
}

#define EXTRA_STACK_VM_PAGES 20 /* random */

/*
* Finalizes the stack vm_area_struct. The flags and permissions are updated,
* the stack is optionally relocated, and some extra space is added.
Expand Down Expand Up @@ -632,7 +630,7 @@ int setup_arg_pages(struct linux_binprm *bprm,
goto out_unlock;
}

stack_expand = EXTRA_STACK_VM_PAGES * PAGE_SIZE;
stack_expand = 131072UL; /* randomly 32*4k (or 2*64k) pages */
stack_size = vma->vm_end - vma->vm_start;
/*
* Align this down to a page boundary as expand_stack
Expand Down

0 comments on commit a59a419

Please sign in to comment.