From: Garrick Staples <garrick@usc.edu>
To: nfs@lists.sourceforge.net
Subject: Re: rpc.mountd stops functioning
Date: Sat, 28 Aug 2004 10:20:12 -0700 [thread overview]
Message-ID: <20040828172012.GZ13362@polop.usc.edu> (raw)
In-Reply-To: <20040827231654.GA2836@fieldses.org>
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
On Fri, Aug 27, 2004 at 07:16:54PM -0400, J. Bruce Fields alleged:
> On Fri, Aug 27, 2004 at 01:31:20PM +1000, Neil Brown wrote:
> > I don't think this patch is needed (though it wouldn't actually break anything).
> > The loop in svc_run.c starts:
> >
> >
> > readfds = svc_fdset;
> > cache_set_fds(&readfds);
> >
> > so readfds is completely initialised at the top of the loop, so
> > clearing something at the bottom (which is essentially what this patch
> > does) should be a no-op.
> >
> > Am I wrong?
>
> Note that cache_process_req() (which the patch below modifies) is not
> all the way at the bottom of the loop; there's still an importan call to
> svc_getreqset() after it.
>
> If I understand the problem correctly, what happens is that if select()
> returns with a set that includes two file descriptors, the first for a
> cache channel and the second for an rpc socket, and if we don't clear
> the first file descriptor from that set before passing it to
> svc_getreqset(), then the rpc code will try to read an rpc request from
> a cache channel file, and will get very confused.
>
> The symptom is that mountd may die occasionally on a server that's
> using the new interface (hence mountd is handling upcalls), and that's
> getting a lot of mount requests.
Yes, this is exactly what happens. The RPC code reading from the cache channel
file segfaults mountd every time.
On my two main fileservers, mountd would die every few hours. Sometimes,
conditions being optimal to trigger the bug, it would chain-crash. It hasn't
segfaulted at all since that one line patch.
I'm surprised more people haven't reported this segfault. I guess not many
people are using the new interface in heavy production.
--
Garrick Staples, Linux/HPCC Administrator
University of Southern California
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-08-28 17:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-05 11:19 rpc.mountd stops functioning Johan van den Dorpe
2004-08-05 11:55 ` Johan van den Dorpe
2004-11-25 12:45 ` Johan van den Dorpe
2004-08-05 14:46 ` J. Bruce Fields
2004-08-11 10:02 ` Johan van den Dorpe
2004-08-19 15:26 ` Johan van den Dorpe
2004-08-27 3:31 ` Neil Brown
2004-08-27 23:16 ` J. Bruce Fields
2004-08-28 17:20 ` Garrick Staples [this message]
2004-08-30 5:54 ` Neil Brown
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=20040828172012.GZ13362@polop.usc.edu \
--to=garrick@usc.edu \
--cc=nfs@lists.sourceforge.net \
/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.