From da2573687af820ec2a6e7ce4c48d8f41d22f7fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Tue, 27 Jan 2026 14:44:47 +0100 Subject: [PATCH] Fix winbind memory leak seen with long living rpcd_* workers - resolves: RHEL-144479 --- redhat-4.23.patch | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/redhat-4.23.patch b/redhat-4.23.patch index 1d45395..c21eb19 100644 --- a/redhat-4.23.patch +++ b/redhat-4.23.patch @@ -1,7 +1,7 @@ From e8384b6daea3b8091ad1bcfce84efc9e2c6a746d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Thu, 22 Jan 2026 14:27:09 +0100 -Subject: [PATCH] s3:libads: Allocate cli_credentials on a stackframe +Subject: [PATCH 1/2] s3:libads: Allocate cli_credentials on a stackframe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -78,3 +78,46 @@ index 9d6d962a2bc..d01afa69697 100644 -- 2.52.0 + +From 7af95c7cb142aeb5f422a69d3b7a0ea3c0d2c2c2 Mon Sep 17 00:00:00 2001 +From: Samuel Cabrero +Date: Mon, 26 Jan 2026 13:36:02 +0100 +Subject: [PATCH 2/2] s3:rpc_client: Fix memory leak opening local named pipe + +If no local server name was passed to rpc_pipe_open_local_np() then +get_myname() was called with NULL talloc context instead of the +current stackframe. + +This was causing an increase of memory usage on busy servers with long-living +rpcd_* workers. + +BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979 + +Signed-off-by: Samuel Cabrero +Reviewed-by: Noel Power +Reviewed-by: Volker Lendecke + +Autobuild-User(master): Volker Lendecke +Autobuild-Date(master): Tue Jan 27 10:13:40 UTC 2026 on atb-devel-224 + +(cherry picked from commit 24dc455362fb49ef81c99d95880e106a234ce29a) +--- + source3/rpc_client/cli_pipe.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c +index e3f48526492..c61b8eb16cf 100644 +--- a/source3/rpc_client/cli_pipe.c ++++ b/source3/rpc_client/cli_pipe.c +@@ -3625,7 +3625,7 @@ NTSTATUS rpc_pipe_open_local_np( + } + + if (local_server_name == NULL) { +- local_server_name = get_myname(result); ++ local_server_name = get_myname(frame); + } + + if (local_server_addr != NULL) { +-- +2.52.0 +