[nfs-utils/f14/master] Fixed segfault in rpc.mountd (bz 669065)

Steve Dickson steved at fedoraproject.org
Wed Jan 26 12:39:56 UTC 2011


commit c7c19b6db4dc5e6679c65b1ba50fedc7c63cab70
Author: Steve Dickson <steved at redhat.com>
Date:   Wed Jan 26 07:39:08 2011 -0500

    Fixed segfault in rpc.mountd (bz 669065)
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 nfs-utils-1.2.3-mountd-mlist.patch |   11 +++++++++++
 nfs-utils.spec                     |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/nfs-utils-1.2.3-mountd-mlist.patch b/nfs-utils-1.2.3-mountd-mlist.patch
new file mode 100644
index 0000000..568ed56
--- /dev/null
+++ b/nfs-utils-1.2.3-mountd-mlist.patch
@@ -0,0 +1,11 @@
+diff -up nfs-utils-1.2.3/utils/mountd/rmtab.c.orig nfs-utils-1.2.3/utils/mountd/rmtab.c
+--- nfs-utils-1.2.3/utils/mountd/rmtab.c.orig	2011-01-25 11:09:29.484980000 -0500
++++ nfs-utils-1.2.3/utils/mountd/rmtab.c	2011-01-25 11:09:40.693309000 -0500
+@@ -205,6 +205,7 @@ mountlist_list(void)
+ 	}
+ 	if (stb.st_mtime != last_mtime) {
+ 		mountlist_freeall(mlist);
++		mlist = NULL;
+ 		last_mtime = stb.st_mtime;
+ 
+ 		setrmtabent("r");
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 39edb6c..b0394ca 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
 Name: nfs-utils
 URL: http://sourceforge.net/projects/nfs
 Version: 1.2.3
-Release: 4%{?dist}
+Release: 5%{?dist}
 Epoch: 1
 
 # group all 32bit related archs
@@ -19,6 +19,7 @@ Source14: rpcsvcgssd.init
 Source15: nfs.sysconfig
 
 Patch001: nfs-utils-1.2.4-rc5.patch
+Patch002: nfs-utils-1.2.3-mountd-mlist.patch
 
 Patch100: nfs-utils-1.2.1-statdpath-man.patch
 Patch101: nfs-utils-1.2.2-statdpath.patch
@@ -73,6 +74,7 @@ This package also contains the mount.nfs and umount.nfs program.
 %setup -q
 
 %patch001 -p1
+%patch002 -p1
 
 %patch100 -p1
 %patch101 -p1
@@ -244,6 +246,7 @@ fi
 /usr/sbin/start-statd
 /usr/sbin/mountstats
 /usr/sbin/nfsiostat
+/usr/sbin/nfsidmap
 %{_mandir}/*/*
 %config /etc/rc.d/init.d/nfslock
 
@@ -253,6 +256,9 @@ fi
 %attr(4755,root,root)   /sbin/umount.nfs4
 
 %changelog
+* Tue Jan 25 2011 Steve Dickson <steved at redhat.com> 1.2.3-5
+- Fixed segfault in rpc.mountd (bz 669065)
+
 * Sat Jan 15 2011 Steve Dickson <steved at redhat.com> 1.2.3-4
 - Update to upstream RC release: nfs-utils-1-2-4-rc5
 - Add initscripts changes needed for rpcbind to be running when nfs is started


More information about the scm-commits mailing list