Subject: Re: bug#28082: bash: /bin/rm: Argument list too long

From: L A Walsh <[email-masked]>
Date: Fri, 25 Aug 2017 22:45:51 -0700

Dmitry V. Levin wrote:
> It's a security limit rather than a fixed buffer, see e.g.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=da029c11e6b12f321f36dac8771e833b65cec962
>
>
>   
Hmm,  original poster had about 2.3MB of data.
The patch referenced above says to limit arg stack usage to at
most 75% of _STK_LIM (6MB), or about 4.5MB.

Ah... also, 25% of your stack limit.  Mine's 8M, so that wouldn't allow
for 2.4MB of args.  You might get that specific case to pass
if you increased your stack limit(?), but it still would be
a problem in the general case.