lkml.org 
[lkml]   [2008]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH] RLIMIT_ARG_MAX
On Fri 2008-02-29 09:29:19, Linus Torvalds wrote:
>
>
> On Fri, 29 Feb 2008, Peter Zijlstra wrote:
> >
> > > ... and what's the point? We've never had it before, nobody has ever cared,
> > > and the whole notion is just stupid. Why would we want to limit it? The
> > > only thing that the kernel *cares* about is the stack size - any other
> > > size limits are always going to be arbitrary.
> >
> > Well, don't think of limiting it, but querying the limit.
> >
> > Programs like xargs would need to know how much to stuff into argv
> > before starting a new invocation.
>
> But they already can't really do that. More importantly, isn't it better
> to just use the whole stack size then (or just return "stack size / 4" or
> whatever)?

Using whole stack smells like a security problem to me.

...pass so much parameters that passwd dies on stack shortage. Make
sure passwd grabbed some system-wide lock before dying.

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2008-03-04 21:13    [W:0.180 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site