From owner-freebsd-stable@FreeBSD.ORG Fri Feb 19 16:12:54 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0CAF1065679 for ; Fri, 19 Feb 2010 16:12:54 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id A8A698FC12 for ; Fri, 19 Feb 2010 16:12:54 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAONGfkuDaFvJ/2dsb2JhbACbB3S+EIRnBIMV X-IronPort-AV: E=Sophos;i="4.49,504,1262581200"; d="scan'208";a="66153578" Received: from ganges.cs.uoguelph.ca ([131.104.91.201]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 19 Feb 2010 11:12:53 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id CECE7FB808C; Fri, 19 Feb 2010 11:12:53 -0500 (EST) X-Virus-Scanned: amavisd-new at ganges.cs.uoguelph.ca Received: from ganges.cs.uoguelph.ca ([127.0.0.1]) by localhost (ganges.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id biBhO15c6FdH; Fri, 19 Feb 2010 11:12:52 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id 7115EFB80D9; Fri, 19 Feb 2010 11:12:52 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o1JGOY327467; Fri, 19 Feb 2010 11:24:34 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Fri, 19 Feb 2010 11:24:34 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: George Mamalakis In-Reply-To: <4B7EB1E5.3080907@eng.auth.gr> Message-ID: References: <4B7EB1E5.3080907@eng.auth.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable Subject: Re: mountd segfaults in NFSv4 if -alldirs is present in exports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 16:12:55 -0000 On Fri, 19 Feb 2010, George Mamalakis wrote: > Hi all, > > the title explains it all... > > But ok, let's be a bit more extensive. > > If I have one line in /etc/exports reading: > > V4: / -alldirs > > and try to start mountd, it segfaults with signal 11. From the manpage I read > that -alldirs is the "second method" used to export a filesystem and V4 is > the "third", maybe implying that they are mutually exclusive. Nevertheless, I > suppose that mountd shouldn't segfault in my case, it could just refuse to > start giving an error message or something. I've tried a different > /etc/exports containing a dummy option -dummy instead of -alldirs and mountd > won't segfault, hence there's no problem with its parser. > The "V4:" line does not export a file system. It only specifies where the "root" is for NFSv4 and what clients/security flavours are supported for the NFSv4 lock state Ops that aren't associated with any file handle is. (There can be multiple V4: lines for different hosts, but they should differ in their "-sec" specification and only that.) The file systems must still be exported by separate lines, just like NFSv2,3. It happens that "-alldirs" always applies to NFSv4, since it does not use the Mount protocol and can mount anything under the "root" that has been exported. As such, "-sec" plus the ones related to specifying host(s) "-network, -mask" are the only ones that should be in the "V4:" line(s). But, of course it shouldn't segfault. I'll put that on my to do list. Thanks for reporting it, rick