The Samba-Bugzilla – Attachment 11610 Details for
Bug 11375
Panic in 4.2.2 around file_close_user > smbXsrv_session_logoff > smbXsrv_session_destructor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am test patch for master.
0001-s3-smbd-Don-t-explicitly-free-global_smbXsrv_client-.patch (text/plain), 1.38 KB, created by
Jeremy Allison
on 2015-11-21 01:08:24 UTC
(
hide
)
Description:
git-am test patch for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2015-11-21 01:08:24 UTC
Size:
1.38 KB
patch
obsolete
>From 764e2e2f50452cee076a8eaba1a45f7c6cab272c Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Fri, 20 Nov 2015 16:47:56 -0800 >Subject: [PATCH] s3: smbd: Don't explicitly free global_smbXsrv_client->scon. > It's a child of global_smbXsrv_client. > >NB. This is a *fragile* fix. It depends on global_smbXsrv_client->scon >bein freed *after* global_smbXsrv_client->session_table, which owns >the struct smbXsrv_session being freed that causes bug: > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11375 > >We get away with it as global_smbXsrv_client->scon is one >of the first talloc children added to global_smbXsrv_client, >so is later on the internal talloc linked list than >global_smbXsrv_client->session_table. > >We need to get access to the struct smbXsrv_session *session >associated with global_smbXsrv_client and free that *first*. > >This looks like a non-trivial problem... > >Signed-off-by: Jeremy Allison <jra@samba.org> >--- > source3/smbd/server_exit.c | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c >index bf50394..80f118a 100644 >--- a/source3/smbd/server_exit.c >+++ b/source3/smbd/server_exit.c >@@ -221,7 +221,6 @@ static void exit_server_common(enum server_exit_reason how, > talloc_free(xconn); > DO_PROFILE_INC(disconnect); > } >- TALLOC_FREE(client->sconn); > } > sconn = NULL; > xconn = NULL; >-- >2.6.0.rc2.230.g3dd15c0 >
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
Actions:
View
Attachments on
bug 11375
:
11610