From: "J. Bruce Fields" <bfields@fieldses.org>
To: sdrb <sdrb@onet.eu>
Cc: linux-nfs@vger.kernel.org, steved@redhat.com, chuck.lever@oracle.com
Subject: Re: Issue in nfs-utils 1.2.3
Date: Wed, 12 Jan 2011 11:04:59 -0500 [thread overview]
Message-ID: <20110112160459.GA6124@fieldses.org> (raw)
In-Reply-To: <4D2DB1D8.8030606@onet.eu>
On Wed, Jan 12, 2011 at 02:51:20PM +0100, sdrb wrote:
> I've investigated a little the sources and I noticed that probably
> there should be some pointer NULL-ed in mountlist_list() procedure
> like in patch I've attached.
>
> Anyone can confirm that such a fix is ok?
Thanks for the report.
I haven't tried to verify that it could cause the backtrace you saw, but
clearly mlist is used after that mountlist_freeall(mlist), so your patch
is necessary.
Looks like this was introduced with a8348c2c4 "mountd: Add
mountlist_freeall()".
--b.
> diff -rNup nfs-utils-1.2.3_orig/utils/mountd/rmtab.c nfs-utils-1.2.3/utils/mountd/rmtab.c
> --- nfs-utils-1.2.3/utils/mountd/rmtab.c 2010-09-28 14:24:16.000000000 +0200
> +++ nfs-utils-1.2.3/utils/mountd/rmtab.c 2011-01-12 14:44:22.320000000 +0100
> @@ -205,6 +205,7 @@ mountlist_list(void)
> }
> if (stb.st_mtime != last_mtime) {
> mountlist_freeall(mlist);
> + mlist=NULL;
> last_mtime = stb.st_mtime;
>
> setrmtabent("r");
next prev parent reply other threads:[~2011-01-12 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 11:31 Issue in nfs-utils 1.2.3 sdrb
2011-01-12 13:51 ` sdrb
2011-01-12 16:04 ` J. Bruce Fields [this message]
2011-01-13 15:47 ` Chuck Lever
2011-01-13 15:52 ` J. Bruce Fields
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=20110112160459.GA6124@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=sdrb@onet.eu \
--cc=steved@redhat.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.