The Samba-Bugzilla – Attachment 9449 Details for
Bug 10250
Segfaults: PANIC: Bad talloc magic value - access after free
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.1
4.1.patch (text/plain), 1.30 KB, created by
Volker Lendecke
on 2013-11-20 08:18:43 UTC
(
hide
)
Description:
Patch for 4.1
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2013-11-20 08:18:43 UTC
Size:
1.30 KB
patch
obsolete
>From 0c3cf315a335badcd6f4976c19428c99ade276ff Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Thu, 14 Nov 2013 21:30:49 +0100 >Subject: [PATCH] smbd: Fix a talloc hierarchy problem in msg_channel > >When tearing down a watch_send with an open tevent_immediate, we >talloc_free the msg_channel while the tevent_immediate still references >it. Don't make the tevent_immediate outlive the msg_channel. > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=10250 >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Wed Nov 20 00:13:51 CET 2013 on sn-devel-104 >(cherry picked from commit 2d91577f984bc83c2c87141cfdda87d068060b32) >--- > source3/lib/msg_channel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c >index 537b162..625d07c 100644 >--- a/source3/lib/msg_channel.c >+++ b/source3/lib/msg_channel.c >@@ -244,7 +244,7 @@ struct tevent_req *msg_read_send(TALLOC_CTX *mem_ctx, > > num_msgs = talloc_array_length(channel->msgs); > if (num_msgs != 0) { >- im = tevent_create_immediate(channel->ev); >+ im = tevent_create_immediate(channel); > if (tevent_req_nomem(im, req)) { > return tevent_req_post(req, ev); > } >-- >1.7.9.5 >
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:
jra
:
review+
Actions:
View
Attachments on
bug 10250
:
9374
|
9375
|
9376
|
9377
|
9421
| 9449 |
9450