freebsd-nq/sys/nfsserver
Jeff Roberson 24b50116ed - Introduce a new macro, since that's what nfs loves, called
nfsm_srvpathsiz.  This macro plucks a length out of an rpc request and
   verifies that its size does not exceed NFS_MAXPATHLEN.  If it does
   it generates an ENAMETOOLONG response.
 - Use this macro, and the existing nfsm_srvnamsiz macro in two places
   where we deal with paths passed in by the client.

This fixes a linux interoperability bug.  Linux was sending oversized path
components which would cause us to ignore the request all together.  This
causes linux to hang indefinitly while it waits for a response.  This
could still happen in other cases where we error out with EBADRPC.

Sponsored by:	Isilon Systems, Inc.
Reviewed by:	alfred, fabbri@isilon.com, neal@isilon.com
2002-10-31 22:35:03 +00:00
..
nfs_serv.c - Introduce a new macro, since that's what nfs loves, called 2002-10-31 22:35:03 +00:00
nfs_srvcache.c Add IPv6 support. 2002-07-15 19:40:23 +00:00
nfs_srvsock.c Stick a dark comment in about the fact that the NFS server code allocates 2002-07-24 14:24:16 +00:00
nfs_srvsubs.c - Introduce a new macro, since that's what nfs loves, called 2002-10-31 22:35:03 +00:00
nfs_syscalls.c Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
nfs.h Fully exterminate nfsd_srvargs and nfsd_cargs. They were either unused 2002-07-24 22:27:35 +00:00
nfsm_subs.h - Introduce a new macro, since that's what nfs loves, called 2002-10-31 22:35:03 +00:00
nfsrvcache.h Cleanup and split of nfs client and server code. 2001-09-18 23:32:09 +00:00
nfsrvstats.h Cleanup and split of nfs client and server code. 2001-09-18 23:32:09 +00:00