linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Chuck Lever <chuck.lever@oracle.com>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] Revert "mountd: handle allocation failures in auth_unix_ip upcall"
Date: Tue, 27 Nov 2012 09:23:57 -0500	[thread overview]
Message-ID: <50B4CCFD.6010900@RedHat.com> (raw)
In-Reply-To: <20121126225116.GE18186@fieldses.org>

Hello,

On 26/11/12 17:51, J. Bruce Fields wrote:
>> What exactly is the problem with the current code?
>> > 
>> > client_resolve() can return a NULL in some cases.  Why is it OK to
>> > pass a NULL "ai" to client_compose() ?  Looks like that can result in
>> > a mountd segfault.
> Bah, I thought I'd checked this and found it was prepared to handle
> that, but no:
> 
> 	client_check->check_wildcard()
> 
> looks like it can oops.
Yeah... added client_check->check_netgroup() to this list...

> 
> OK, I'll take another look.
A simply check that ai is not null when calling client_compose() should work..

> 
>> > The kernel won't get any downcall reply in that
>> > case!  Is that what you are trying to fix?
>> > 
>> > WRT my original objection: In general I don't see how to make it
>> > impossible for mountd to fail.
> Sure, but mountd is required for the server to function, so it's just a
> question of how we fail.
> 
>> > Thus the kernel needs to be better about recovering when mountd
>> > suddenly disappears.
> Currently it drops and lets the client retry.  I suspect that's the
> correct thing to do, but alternatives are welcomed.
This one things I didn't see happen... the client retrying... expected it would...

steved.

  parent reply	other threads:[~2012-11-27 14:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26 22:03 [PATCH] Revert "mountd: handle allocation failures in auth_unix_ip upcall" J. Bruce Fields
2012-11-26 22:05 ` Chuck Lever
2012-11-26 22:15   ` J. Bruce Fields
2012-11-26 22:38     ` Chuck Lever
2012-11-26 22:51       ` J. Bruce Fields
2012-11-26 23:10         ` Chuck Lever
2012-11-27 14:23         ` Steve Dickson [this message]
2012-11-27 21:31         ` J. Bruce Fields
2012-11-27 21:33           ` Chuck Lever
2012-11-28 14:39           ` Steve Dickson

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=50B4CCFD.6010900@RedHat.com \
    --to=steved@redhat.com \
    --cc=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /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).