[PATCH] linux: sysconf: limit _SC_MAX_ARG to 6 MiB [BZ #25305]

Adhemerval Zanella adhemerval.zanella@linaro.org
Wed Apr 7 19:34:24 GMT 2021



On 07/04/2021 16:04, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>> IMHO being conservative and use the lower bound of all supported kernels.
>> I really don't think trying to be smart here with dynamic probing
>> will add much, specially since this upper limit is what kernel will
>> support from now on.
> 
> Ah, if the conservative choice does not penalize newer kernels, then I
> guess that's okay as well.

My understanding is newer kernel are more restrictive since they limit
maximum argument plus environment size to up to 6MB, different than older 
kernels that have a higher bar to up 1/4 of maximum stack size. 

So I take you don't oppose to the patch.

> 
> Then the argument goes like this: If you want us to make the limit
> dynamic, add something to the auxiliary vector. 8-)

I am not sure if kernel will be willing to make this dynamic, at least
it seems not be an issue.


More information about the Libc-alpha mailing list