From: Mike Frysinger <vapier.adi@gmail.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, Valdis.Kletnieks@vt.edu,
agruen@suse.de, hch@lst.de, hugh.dickins@tiscali.co.uk,
matthew@wil.cx
Subject: Re: [PATCH 2/2] vfs: fix d_path() for unreachable paths
Date: Mon, 21 Sep 2009 10:10:17 -0400 [thread overview]
Message-ID: <8bd0f97a0909210710h5bb75bcdwb666b51a9155a70a@mail.gmail.com> (raw)
In-Reply-To: <20090921140220.GD14381@ZenIV.linux.org.uk>
On Mon, Sep 21, 2009 at 10:02, Al Viro wrote:
> * blackfin cplbinfo: utter crap; it's used to decide which procfs file
> is being opened - by dumping full pathname into a (on-stack) buffer
> and then parsing it. Stupid *and* broken.
it works without having to copy & paste the same exact structures over
and over. a suggestion as how to do it cleanly without bloating the
code is certainly welcome. it doesnt really matter that it's on the
stack as the usage is small and d_path() is given the size of the
buffer, so it isnt going to overflow.
> * blackfin traps.c:decode_address(): for one thing, pathnames has been
> known to be longer than 256 bytes.
we know the paths are longer than 256 bytes. the output is to give a
reasonable idea of what is crashing. realistically, nothing
executable resides in a 256+ byte path on an embedded system.
> For another... locking in that loop
> over processes and VMAs of each looks very suspicios, while we are at it.
we've reviewed it several times and exercised it in multiple ways. so
unless you have a real idea of something being wrong, the code has
been vetted heavily.
-mike
next prev parent reply other threads:[~2009-09-21 14:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-21 12:48 [PATCH 1/2] vfs: seq_file: add helpers for data filling Miklos Szeredi
2009-09-21 12:51 ` [PATCH 2/2] vfs: fix d_path() for unreachable paths Miklos Szeredi
2009-09-21 14:02 ` Al Viro
2009-09-21 14:10 ` Mike Frysinger [this message]
2009-09-21 14:38 ` Al Viro
2009-09-21 14:43 ` Al Viro
2009-09-21 15:31 ` Mike Frysinger
2009-09-21 15:30 ` Mike Frysinger
2009-09-21 15:03 ` Miklos Szeredi
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=8bd0f97a0909210710h5bb75bcdwb666b51a9155a70a@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=agruen@suse.de \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=hugh.dickins@tiscali.co.uk \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=miklos@szeredi.hu \
--cc=viro@zeniv.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).