public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paulo Alcantara <paalcant@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cifs-utils] rawhide: Update to cifs-utils-7.6
Date: Fri, 26 Jun 2026 17:49:24 GMT	[thread overview]
Message-ID: <178249616457.1.15346716342516985342.rpms-cifs-utils-9c13a809edae@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/cifs-utils
            Branch : rawhide
            Commit : 9c13a809edae445be97466c1d1d349e5da9db6f4
            Author : Paulo Alcantara <paalcant@redhat.com>
            Date   : 2026-06-26T14:29:35-03:00
            Stats  : +51/-2 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/cifs-utils/c/9c13a809edae445be97466c1d1d349e5da9db6f4?branch=rawhide

            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 4f7d724..a23b775 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@ cifs-utils-4.6.tar.bz2
 /cifs-utils-7.2.tar.bz2
 /cifs-utils-7.4.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

                 reply	other threads:[~2026-06-26 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178249616457.1.15346716342516985342.rpms-cifs-utils-9c13a809edae@fedoraproject.org \
    --to=paalcant@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox