lkml.org 
[lkml]   [2000]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [FIX] Re: Argument list too long: out of environment space
Khimenko Victor wrote:
> JL> You can just not have an execve_mm at first, and still implement
> JL> argument construction using a second mm. That removes the limit, but
> JL> doesn't make the pages swappable during construction.
>
> Then it's trikier then my version and does not have any benefits :-)

Yup. :-)

> JL> I like the idea of removing the limit altogether because it's not
> JL> necessary, and large command lines are occasionally useful.
>
> No. You DO NOT want this. Even swap is limited resource. And with 8MiB of
> stack you can construct rougly 4TB (tera!) of arguments. Enough to overflow
> any sane swap :-)

Sure you can use lots of space, but it's no different to the user doing
ordinary memory allocations to use up lots of space. In fact you could
probably implement it in user space using ptrace, but let's not go there
:-)

Of course it should be accounted in the same way as an ordinary
memory usage too.

enjoy,
-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:3.063 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site