Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nfs-utils for openSUSE:Factory 
checked in at 2026-09-09 16:19:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nfs-utils (Old)
 and      /work/SRC/openSUSE:Factory/.nfs-utils.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nfs-utils"

Wed Sep  9 16:19:04 2026 rev:194 rq:1376363 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/nfs-utils/nfs-utils.changes      2026-08-05 
17:46:16.245354701 +0200
+++ /work/SRC/openSUSE:Factory/.nfs-utils.new.1265/nfs-utils.changes    
2026-09-09 16:21:22.804598203 +0200
@@ -1,0 +2,6 @@
+Tue Sep  1 11:28:33 UTC 2026 - Petr Vorel <[email protected]>
+
+- Backport upstream memory leak fix in statd
+  0001-statd-fix-memory-leak-in-sm_mon_1_svc-when-existing-.patch
+
+-------------------------------------------------------------------

New:
----
  0001-statd-fix-memory-leak-in-sm_mon_1_svc-when-existing-.patch

----------(New B)----------
  New:- Backport upstream memory leak fix in statd
  0001-statd-fix-memory-leak-in-sm_mon_1_svc-when-existing-.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nfs-utils.spec ++++++
--- /var/tmp/diff_new_pack.csdp0I/_old  2026-09-09 16:21:24.223657335 +0200
+++ /var/tmp/diff_new_pack.csdp0I/_new  2026-09-09 16:21:24.225657419 +0200
@@ -43,6 +43,7 @@
 Source25:       rpc-svcgssd.options.conf
 Source26:       nfs.conf
 Source27:       nfs-utils.tmpfiles.conf
+Patch0:         0001-statd-fix-memory-leak-in-sm_mon_1_svc-when-existing-.patch
 BuildRequires:  e2fsprogs-devel
 BuildRequires:  gcc-c++
 BuildRequires:  libtool

++++++ 0001-statd-fix-memory-leak-in-sm_mon_1_svc-when-existing-.patch ++++++
>From cf80edaeb9b120b7a533e0d3aea2f05cfcab85ae Mon Sep 17 00:00:00 2001
From: xuchenchen <[email protected]>
Date: Sat, 15 Aug 2026 13:58:16 -0400
Subject: [PATCH] statd: fix memory leak in sm_mon_1_svc() when existing host
 re-monitors

When an already-monitored host sends a new SM_MON request with a
different priv cookie, the code sets existing=1 and reuses the
existing notify_list entry. However, clnt->dns_name is overwritten
with the newly allocated dnsname without freeing the old value,
causing a memory leak.

Since statd is a long-running daemon, repeated SM_MON requests with
changing cookies will accumulate leaked strings.

Fix by freeing the old dns_name before overwriting it.

Signed-off-by: xuchenchen <[email protected]>
Signed-off-by: Steve Dickson <[email protected]>
Upstream: 
https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=cf80edaeb9b120b7a533e0d3aea2f05cfcab85ae
---
 utils/statd/monitor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/statd/monitor.c b/utils/statd/monitor.c
index c76589ca..76ef16f1 100644
--- a/utils/statd/monitor.c
+++ b/utils/statd/monitor.c
@@ -187,6 +187,8 @@ sm_mon_1_svc(struct mon *argp, struct svc_req *rqstp)
        NL_MY_VERS(clnt) = id->my_vers;
        NL_MY_PROC(clnt) = id->my_proc;
        memcpy(NL_PRIV(clnt), argp->priv, SM_PRIV_SIZE);
+       if (existing)
+               free(clnt->dns_name);
        clnt->dns_name = dnsname;
 
        /*
-- 
2.53.0

Reply via email to