public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cifs-utils] f43: Update to cifs-utils-7.6
@ 2026-06-26 18:08 Paulo Alcantara
  0 siblings, 0 replies; only message in thread
From: Paulo Alcantara @ 2026-06-26 18:08 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/cifs-utils
            Branch : f43
            Commit : 7a2a37d8d97a9748bc71b063ce92f99a1bbfd987
            Author : Paulo Alcantara <paalcant@redhat.com>
            Date   : 2026-06-26T15:02:41-03:00
            Stats  : +51/-2 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/cifs-utils/c/7a2a37d8d97a9748bc71b063ce92f99a1bbfd987?branch=f43

            Log:
            Update to cifs-utils-7.6

- resolves: rhbz#2489081 - Fix CVE-2026-12505

Signed-off-by: Paulo Alcantara <paalcant@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index 8d82da8..1b08bdb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,4 @@ cifs-utils-4.6.tar.bz2
 /cifs-utils-7.1.tar.bz2
 /cifs-utils-7.2.tar.bz2
 /cifs-utils-7.5.tar.bz2
+/cifs-utils-7.6.tar.bz2

diff --git a/cifs-utils.spec b/cifs-utils.spec
index b433190..eb354cf 100644
--- a/cifs-utils.spec
+++ b/cifs-utils.spec
@@ -4,7 +4,7 @@
 %global bash_completion_dir %(pkg-config --variable=completionsdir bash-completion || echo /etc/bash_completion.d)
 
 Name:            cifs-utils
-Version:         7.5
+Version:         7.6
 Release:         %autorelease
 Summary:         Utilities for mounting and managing CIFS mounts
 
@@ -24,6 +24,8 @@ Recommends: %{name}-info%{?_isa} = %{version}-%{release}
 
 Source0:         https://download.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}.tar.bz2
 
+Patch0: cifs.upcall-fix-compiler-warning-with-Wvla.patch
+
 %description
 The SMB/CIFS protocol is a standard file sharing protocol widely deployed
 on Microsoft Windows machines. This package contains tools for mounting

diff --git a/cifs.upcall-fix-compiler-warning-with-Wvla.patch b/cifs.upcall-fix-compiler-warning-with-Wvla.patch
new file mode 100644
index 0000000..5ef0dc1
--- /dev/null
+++ b/cifs.upcall-fix-compiler-warning-with-Wvla.patch
@@ -0,0 +1,46 @@
+From d2f39a20d68aa55023b63e575f06941721e644c6 Mon Sep 17 00:00:00 2001
+From: Paulo Alcantara <pc@manguebit.org>
+Date: Tue, 23 Jun 2026 15:06:20 -0300
+Subject: [PATCH] cifs.upcall: fix compiler warning with -Wvla
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The length value for @path array in get_uidgid() needs to be evaluated
+at compile time, so replace strlen() with sizeof() when defining
+PROC_PID_PATH_MAXLEN and then fix the following warning:
+
+ cifs.upcall.c: In function ‘get_uidgid’:
+ cifs.upcall.c:1400:9: warning: ISO C90 forbids array ‘path’ whose size
+ cannot be evaluated [-Wvla]
+  1400 |         char path[PROC_PID_PATH_MAXLEN] = {}, buf[256];
+       |         ^~~~
+
+Fixes: 972c5b5ff95e ("cifs.upcall: remove getpwuid() dependency")
+Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
+Reviewed-by: David Howells <dhowells@redhat.com>
+Cc: Enzo Matsumiya <ematsumiya@suse.de>
+Cc: linux-cifs@vger.kernel.org
+Signed-off-by: Steve French <stfrench@microsoft.com>
+---
+ cifs.upcall.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cifs.upcall.c b/cifs.upcall.c
+index 01690dfcade1..11dbc6186a74 100644
+--- a/cifs.upcall.c
++++ b/cifs.upcall.c
+@@ -1375,8 +1375,8 @@ static int ip_to_fqdn(const char *addrstr, char *host, size_t hostlen)
+ 	return 0;
+ }
+ 
+-/* cover worst case/impossible scenarios, + 1 for NUL */
+-#define PROC_PID_PATH_MAXLEN	((int)strlen("/proc/2147483647/status") + 1)
++/* cover worst case/impossible scenarios */
++#define PROC_PID_PATH_MAXLEN	((int)sizeof("/proc/2147483647/status"))
+ /* max valid UID/GID is (UINT_MAX - 1) */
+ #define INVALID_UIDGID		UINT_MAX
+ 
+-- 
+2.54.0
+

diff --git a/sources b/sources
index a5832e3..f09ce0a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cifs-utils-7.5.tar.bz2) = d44b26ca3224160bcb4fc712eb6c6d09fcfee196197d46481e95333494eaae1a4851712fba9b922c203e3cd301c481b433ff49ec396428c12ff7db3c628ce9e9
+SHA512 (cifs-utils-7.6.tar.bz2) = 000bca9eb0242c8c04dc1110244ad26cd39f11541cc038e36a1b36c2e683fde19d61a59234e0e592bf8d83ebebafb4d46a7e6978c745bba5e3e155e05908dcbc

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-26 18:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 18:08 [rpms/cifs-utils] f43: Update to cifs-utils-7.6 Paulo Alcantara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox