]> Git Repo - linux.git/commit - fs/compat.c
mm: variable length argument support
authorOllie Wild <[email protected]>
Thu, 19 Jul 2007 08:48:16 +0000 (01:48 -0700)
committerLinus Torvalds <[email protected]>
Thu, 19 Jul 2007 17:04:45 +0000 (10:04 -0700)
commitb6a2fea39318e43fee84fa7b0b90d68bed92d2ba
treec9c3619cb2730b5c10c7427b837146bce3d69156
parentbdf4c48af20a3b0f01671799ace345e3d49576da
mm: variable length argument support

Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly from
the old mm into the new mm.

We create the new mm before the binfmt code runs, and place the new stack at
the very top of the address space.  Once the binfmt code runs and figures out
where the stack should be, we move it downwards.

It is a bit peculiar in that we have one task with two mm's, one of which is
inactive.

[[email protected]: limit stack size]
Signed-off-by: Ollie Wild <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: <[email protected]>
Cc: Hugh Dickins <[email protected]>
[[email protected]: unexport bprm_mm_init]
Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
15 files changed:
arch/ia64/ia32/binfmt_elf32.c
arch/x86_64/ia32/ia32_aout.c
arch/x86_64/ia32/ia32_binfmt.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/binfmt_misc.c
fs/binfmt_script.c
fs/compat.c
fs/exec.c
include/linux/binfmts.h
include/linux/mm.h
kernel/auditsc.c
mm/mmap.c
mm/mprotect.c
mm/mremap.c
This page took 0.05005 seconds and 4 git commands to generate.