All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Mikael Pettersson <mikpe@it.uu.se>
Cc: james-p@moving-picture.com, linux-kernel@vger.kernel.org,
	aarapov@redhat.com, akpm@linux-foundation.org
Subject: Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters
Date: Wed, 19 Sep 2007 08:59:23 -0700	[thread overview]
Message-ID: <46F1475B.5050107@zytor.com> (raw)
In-Reply-To: <200709191454.l8JEsAQO010080@harpo.it.uu.se>

Mikael Pettersson wrote:
> On Wed, 19 Sep 2007 14:35:29 +0100, James Pearson wrote:
>> /proc/PID/environ currently truncates at 4096 characters, patch based on 
>> the /proc/PID/mem code.
> 
> Does /proc/PID/mem even work? If I do `strace cat /proc/PID/mem > /dev/null'
> for a known good PID, the first read() from /proc/PID/mem fails with ESRCH,

Of course it does.  Address zero isn't typically mapped.

	-hpa

  reply	other threads:[~2007-09-19 16:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19 14:54 [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters Mikael Pettersson
2007-09-19 15:59 ` H. Peter Anvin [this message]
2007-09-19 18:35   ` Mikael Pettersson
2007-09-19 19:29     ` Hugh Dickins
  -- strict thread matches above, loose matches on Subject: below --
2007-09-25 16:44 James Pearson
2007-09-19 13:35 James Pearson
2007-09-20 23:46 ` Andrew Morton
2007-09-21  9:41   ` James Pearson
2007-09-21 10:00   ` Mel Gorman
2007-09-21  1:56 ` Arvin Moezzi
2007-09-21  9:47   ` James Pearson
2007-09-21 12:47     ` Arvin Moezzi
2007-09-21 13:47       ` James Pearson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46F1475B.5050107@zytor.com \
    --to=hpa@zytor.com \
    --cc=aarapov@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=james-p@moving-picture.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@it.uu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.