Author: rmacklem
Date: Thu Jul  7 00:30:34 2011
New Revision: 223830
URL: http://svn.freebsd.org/changeset/base/223830

Log:
  MFC: r223441
  Plug an mbuf leak in the new NFS client that occurred when a
  server replied NFS3ERR_JUKEBOX/NFS4ERR_DELAY to an rpc.
  This affected both NFSv3 and NFSv4. Found during testing
  at the recent NFSv4 interoperability Bakeathon.

Modified:
  stable/8/sys/fs/nfs/nfs_commonkrpc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/fs/nfs/nfs_commonkrpc.c
==============================================================================
--- stable/8/sys/fs/nfs/nfs_commonkrpc.c        Thu Jul  7 00:14:20 2011        
(r223829)
+++ stable/8/sys/fs/nfs/nfs_commonkrpc.c        Thu Jul  7 00:30:34 2011        
(r223830)
@@ -687,6 +687,8 @@ tryagain:
                                while (NFSD_MONOSEC < waituntil)
                                        (void) nfs_catnap(PZERO, 0, "nfstry");
                                trylater_delay *= 2;
+                               m_freem(nd->nd_mrep);
+                               nd->nd_mrep = NULL;
                                goto tryagain;
                        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to