Re: [PATCH] proc: fix PAGE_SIZE limit of /proc/$PID/cmdline

From: Alexey Dobriyan
Date: Wed Mar 25 2015 - 07:29:54 EST


On Wed, Mar 25, 2015 at 12:42 AM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, 20 Mar 2015 20:51:47 +0300 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
>> /proc/$PID/cmdline truncates output at PAGE_SIZE. It is easy to see with

> I'm desperately trying to think of a reason to not merge this patch :(
>
> I haven't seen anyone complain about the PAGE_SIZE limit - can't we
> pretend we didn't notice? Or tell 'em to switch to powerpc so they
> get 64k!

Well, people do notice the limitation
http://stackoverflow.com/questions/199130/how-do-i-increase-the-proc-pid-cmdline-4096-byte-limit

I think public interface should work 100% of the time.

setproctitle(2) can be added with documented 4KB limit.

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