From: Al Viro <viro@ZenIV.linux.org.uk>
To: Nathan Rutman <nathan_rutman@xyratex.com>
Cc: Peng Tao <bergwolf@gmail.com>,
"Dilger, Andreas" <andreas.dilger@intel.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: [lustre mess] is mgc_fs_setup() reachable at all?
Date: Thu, 18 Jul 2013 20:07:04 +0100 [thread overview]
Message-ID: <20130718190703.GB4165@ZenIV.linux.org.uk> (raw)
In-Reply-To: <5DD1CAAA-2008-47F9-B3B6-8D342B28D08C@xyratex.com>
On Thu, Jul 18, 2013 at 11:40:16AM -0700, Nathan Rutman wrote:
> >> }
> >> RETURN(rc);
> >> }
> >> What is going on here? We cast something to struct super_block *?
> >> Where does it come from? The function it's in is
> Well, addressing the "what's going on" question without getting into the larger philosophy,
> keys and values are used as a generic mechanism to pass various items between Lustre clients
> and servers. In this case, a specific key should only have a value of "a superblock", and so this is
> just a sanity check to make sure the value length is sane. It should probably be more of an ASSERT,
> but we can't reasonably assert on remotely-supplied data.
What? Excuse me, but have you seriously been intending to pass struct
super_block instances around? Ones that are choke-full of pointers to
all kinds of things, not to mention a mutex, spinlock, etc.?
_THAT_ was going to be a remotely supplied data? I really hope I've
misparsed what you said above...
And that still leaves the question about the code path that could lead to
execution of mgc_fs_setup().
next prev parent reply other threads:[~2013-07-18 19:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 9:08 [lustre mess] is mgc_fs_setup() reachable at all? Al Viro
2013-07-18 13:32 ` Peng Tao
[not found] ` <5DD1CAAA-2008-47F9-B3B6-8D342B28D08C@xyratex.com>
2013-07-18 19:07 ` Al Viro [this message]
2013-07-18 20:57 ` Andreas Dilger
2013-07-19 8:12 ` Al Viro
2013-07-19 9:55 ` Peng, Tao
2013-07-19 9:55 ` Peng, Tao
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=20130718190703.GB4165@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=andreas.dilger@intel.com \
--cc=bergwolf@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan_rutman@xyratex.com \
/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.