The Samba-Bugzilla – Attachment 18798 Details for
Bug 15937
winbindd crashes with Bad talloc magic value - unknown value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.23
bug-15954-v4-23.patch (text/plain), 1.93 KB, created by
Douglas Bagnall
on 2026-01-14 02:19:44 UTC
(
hide
)
Description:
patch for 4.23
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2026-01-14 02:19:44 UTC
Size:
1.93 KB
patch
obsolete
>From cf11803ec998c0cf6fdd8e271b8437627b73e4c2 Mon Sep 17 00:00:00 2001 >From: Gary Lockyer <gary@catalyst.net.nz> >Date: Wed, 7 Jan 2026 10:23:33 +1300 >Subject: [PATCH] s3:winbindd fix race condition in terminate_child > >Fixes: > >winbindd[306061]: Bad talloc magic value - unknown value >winbindd[306061]: ========================================================= >winbindd[306061]: INTERNAL ERROR: Bad talloc magic value - unknown value in > winbindd () () pid > >A race condition in source3/windbindd/winbindd_util.c::terminate_child >between the child socket closing, and the destructor de-registering the >child socket from epoll. > >If the socket closes before it is de-registered from epoll, the event >is added to the epoll rdllink and will be retrieved when epoll_wait >is next called. However monitor_fde has been deallocated and we get the >observed failure. > >Moving the TALLOC_FREE before the kill ensures that the child socket has been >de-registered from epoll before it closes. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=15937 > >Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> >Reviewed-by: Stefan Metzmacher <metze@samba.org> > >Autobuild-User(master): Stefan Metzmacher <metze@samba.org> >Autobuild-Date(master): Tue Jan 13 14:50:20 UTC 2026 on atb-devel-224 > >(cherry picked from commit a3684a2284cdf421090d6064b720b81b05b6eae6) >--- > source3/winbindd/winbindd_util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c >index 3c991425dd9..566794b86a0 100644 >--- a/source3/winbindd/winbindd_util.c >+++ b/source3/winbindd/winbindd_util.c >@@ -971,13 +971,13 @@ static void terminate_child(struct tevent_req *subreq) > TALLOC_FREE(subreq); > > if (c->pid != 0) { >+ TALLOC_FREE(c->monitor_fde); > kill(c->pid, SIGTERM); > c->pid = 0; > if (c->sock != -1) { > close(c->sock); > } > c->sock = -1; >- TALLOC_FREE(c->monitor_fde); > } > > c = NULL; >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
gary
:
review+
Actions:
View
Attachments on
bug 15937
:
18763
|
18792
|
18796
| 18798