]> git.baikalelectronics.ru Git - kernel.git/commit
mm: variable length argument support
authorOllie Wild <aaw@google.com>
Thu, 19 Jul 2007 08:48:16 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:45 +0000 (10:04 -0700)
commitb73cdb49c6a7dbb6b90e7b3f1f010ce2a7ffe481
treec9c3619cb2730b5c10c7427b837146bce3d69156
parent3e51aa79a8b355e844690a942d2169c951b5f37c
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.

[a.p.zijlstra@chello.nl: limit stack size]
Signed-off-by: Ollie Wild <aaw@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: <linux-arch@vger.kernel.org>
Cc: Hugh Dickins <hugh@veritas.com>
[bunk@stusta.de: unexport bprm_mm_init]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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