lkml.org 
[lkml]   [2015]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] proc: fix PAGE_SIZE limit of /proc/$PID/cmdline
From
On Wed, Mar 25, 2015 at 12:42 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Fri, 20 Mar 2015 20:51:47 +0300 Alexey Dobriyan <adobriyan@gmail.com> 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


\
 
 \ /
  Last update: 2015-03-25 12:41    [W:0.032 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site