misc/99307: mount_nfs incompatible with zVM VMNFS 3A0

JP Hartmann jphartmann at gmail.com
Thu Jun 22 16:30:22 UTC 2006


>Number:         99307
>Category:       misc
>Synopsis:       mount_nfs incompatible with zVM VMNFS 3A0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 16:30:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     JP Hartmann
>Release:        6.1
>Organization:
IBM
>Environment:
FreeBSD FreeBSD.jphartmann.net 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sat Jun 17 11:51:42 CEST 2006     root at FreeBSD.jphartmann.net:/usr/src/sys/i386/compile/KERNEL  i386

>Description:
The zVM NFS server returns RPCAUTH_NULL in the mount reply, at least when it is configured to support anonymous.  This is turned into EAUTH in xdr_fh().  Which in turn causes the mount to fail with 

FreeBSD# mount_nfs -T -3 -R 1 cphart:sfs /sfs
[tcp] cphart:sfs: Authentication error

It would have been a great help if mount_nfs had issued a message indicating the server authorisation it did not like.  The message indicates that the server rejected the mount, but to my surprise the server had as many mounts as I had tried.

That said, configuring that particular level of NFS server is also quite challenging :-)
>How-To-Repeat:
You need a zVM system clearly, and they are not easy to come by.  vm.marist.edu is one, but chances are slim that they are NFS exporting anything to the outside world.
>Fix:
--- mount_nfs.c.old     Thu Jun 22 12:06:24 2006
+++ mount_nfs.c Thu Jun 22 14:13:26 2006
@@ -900,7 +900,7 @@
                for (i = 0; i < authcnt; i++) {
                        if (!xdr_long(xdrsp, &auth))
                                return (0);
-                       if (auth == np->auth)
+                       if (auth == np->auth || RPCAUTH_NULL == auth)
                                authfnd++;
                }
                /*

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list