svn commit: r223830 - stable/8/sys/fs/nfs

Rick Macklem rmacklem at FreeBSD.org
Thu Jul 7 00:30:35 UTC 2011


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;
 			}
 


More information about the svn-src-stable mailing list