Re: [patch 3/3] mm: variable length argument support

2007-08-22 Thread Andrew Morton
On Wed, 22 Aug 2007 10:54:02 +0200 Peter Zijlstra <[EMAIL PROTECTED]> wrote: > Alan proposed this patch: yeah, I have a great pile of stuff queued for Linus. I'm bad. Tomorrow. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED

Re: [patch 3/3] mm: variable length argument support

2007-08-22 Thread Fengguang Wu
On Wed, Aug 22, 2007 at 11:48:52AM +0300, Dan Aloni wrote: > On Wed, Jun 13, 2007 at 12:03:37PM +0200, Peter Zijlstra wrote: > > From: Ollie Wild <[EMAIL PROTECTED]> > > > > Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly > > from the old mm into the new mm. > > > [...]

Re: [patch 3/3] mm: variable length argument support

2007-08-22 Thread Peter Zijlstra
On Wed, 2007-08-22 at 11:48 +0300, Dan Aloni wrote: > On Wed, Jun 13, 2007 at 12:03:37PM +0200, Peter Zijlstra wrote: > > From: Ollie Wild <[EMAIL PROTECTED]> > > > > Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly > > from the old mm into the new mm. > > > [...] > > +st

Re: [patch 3/3] mm: variable length argument support

2007-08-22 Thread Dan Aloni
On Wed, Jun 13, 2007 at 12:03:37PM +0200, Peter Zijlstra wrote: > From: Ollie Wild <[EMAIL PROTECTED]> > > Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly > from the old mm into the new mm. > [...] > +static int __bprm_mm_init(struct linux_binprm *bprm) > +{ [...] > +

Re: [patch 3/3] mm: variable length argument support

2007-08-07 Thread Olaf Hering
On Tue, Aug 07, Andrew Morton wrote: > > > +++ linux-2.6-2/include/linux/binfmts.h 2007-06-13 11:52:46.0 > > > +0200 > > > -#define MAX_ARG_PAGES 32 > > > +#define MAX_ARG_STRLEN (PAGE_SIZE * 32) > > > +#define MAX_ARG_STRINGS 0x7FFF > > > > This adds a new usage of PAGE_SIZE to a

Re: [patch 3/3] mm: variable length argument support

2007-08-07 Thread Peter Zijlstra
On Tue, 2007-08-07 at 12:20 -0700, Andrew Morton wrote: > On Tue, 7 Aug 2007 21:03:57 +0200 > Olaf Hering <[EMAIL PROTECTED]> wrote: > > > On Wed, Jun 13, Peter Zijlstra wrote: > > > > > From: Ollie Wild <[EMAIL PROTECTED]> > > > > > > Remove the arg+env limit of MAX_ARG_PAGES by copying the str

Re: [patch 3/3] mm: variable length argument support

2007-08-07 Thread Andrew Morton
On Tue, 7 Aug 2007 21:03:57 +0200 Olaf Hering <[EMAIL PROTECTED]> wrote: > On Wed, Jun 13, Peter Zijlstra wrote: > > > From: Ollie Wild <[EMAIL PROTECTED]> > > > > Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly > > from the old mm into the new mm. > > > +++ linux-2.6-

Re: [patch 3/3] mm: variable length argument support

2007-08-07 Thread Olaf Hering
On Wed, Jun 13, Peter Zijlstra wrote: > From: Ollie Wild <[EMAIL PROTECTED]> > > Remove the arg+env limit of MAX_ARG_PAGES by copying the strings directly > from the old mm into the new mm. > +++ linux-2.6-2/include/linux/binfmts.h 2007-06-13 11:52:46.0 > +0200 > @@ -6,11 +6,13 @@

[patch 3/3] mm: variable length argument support

2007-06-13 Thread Peter Zijlstra
From: Ollie Wild <[EMAIL PROTECTED]> 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