Re: [RFC/PATCH] RLIMIT_ARG_MAX

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Kerrisk <michael.kerrisk@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, aaw <aaw@...>, Andrew Morton <akpm@...>, <carlos@...>, Alan Cox <alan@...>, linux-kernel <linux-kernel@...>, <drepper@...>, <mtk.manpages@...>, Geoff Clare <gwc@...>
Date: Friday, February 29, 2008 - 5:34 pm

On Fri, 29 Feb 2008, Michael Kerrisk wrote:


Well, what I have tried to argue is that even if they care, the patch 
won't actually really help. It just moves existing behaviour around a bit, 
but leaves all the fundamental issues totally untouched in that it may 
count the strings, but not the pointers themselves etc.

More importantly, anybody who would depend on any new behaviour would 
still be screwed on all other platforms - including older Linux ones - in 
that they'd depend on some very specific behaviour that simply isn't going 
to be there in other cases.

So yeah, I can see that people could care, but they *shouldn't*.


Very few reasonably can. The thing is, in order to care, you have to count 
things like your own environment space etc, and you have to know that 
there is something you can even *do* about it if the counts go wrong.

So in practice, I think it's just about things like "xargs" and very few 
actual applications. 

I did try to do a google codesearch on "sysconf(_SC_ARG_MAX)" and it 
exists, but there wasn't a whole lot. The most logical one (and the one 
that didn't prefer the ARG_MAX #define) was the built-in xargs in ksh.

But I really didn't look very hard, just a few screenfuls of codesearch.

Realistically, "xargs" really is the main user. *Most* users of execve() 
simply either want all their arguments or none. It's not that common that 
somebody says "ok, I have a ton of arguments, but if you limit them I'll 
just use a fraction of them".

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC/PATCH] RLIMIT_ARG_MAX, Peter Zijlstra, (Wed Feb 27, 9:37 am)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 12:05 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Michael Kerrisk, (Fri Feb 29, 12:58 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Peter Zijlstra, (Fri Feb 29, 1:14 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 1:35 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Peter Zijlstra, (Fri Feb 29, 1:55 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Alan Cox, (Fri Feb 29, 2:40 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Michael Kerrisk, (Fri Feb 29, 2:18 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Geoff Clare, (Sat Mar 1, 4:42 am)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 2:39 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Michael Kerrisk, (Fri Feb 29, 3:49 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 4:07 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 5:57 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Carlos O'Donell, (Sat Mar 1, 10:21 am)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Michael Kerrisk, (Fri Feb 29, 4:43 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 5:34 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 2:14 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 1:12 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Peter Zijlstra, (Fri Feb 29, 1:18 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 1:29 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Pavel Machek, (Tue Mar 4, 4:07 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Peter Zijlstra, (Fri Feb 29, 1:42 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 2:12 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Ollie Wild, (Fri Feb 29, 3:01 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Jakub Jelinek, (Fri Feb 29, 3:09 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Linus Torvalds, (Fri Feb 29, 3:50 pm)
Re: [RFC/PATCH] RLIMIT_ARG_MAX, Ollie Wild, (Fri Feb 29, 4:03 pm)