[PATCH] TALLOC_FREE(domain->check_online_event) refers to null pointer in winbindd_reinit_after_fork() [Was Re: [PATCH] clean the event context after fork in fork_domain_child()]

boyang boyang at suse.de
Mon Jan 12 08:08:34 GMT 2009


Jeremy Allison wrote:
> On Sun, Jan 11, 2009 at 12:58:37PM +0800, boyang wrote:
>
>   
>> It is a pity that I have no testing or building environment around at
>> present, they are in company and the vpn is quite lagging. :-(  I'll
>> test the new code tomorrow(Monday). I'll get back to you as soon as I
>> finished the test.
>>     
>
> Oh, no problem. I will do the same, but your Monday comes
> before mine :-).
>   
Hi, Jeremy:
     There is still bug in winbindd_reinit_after_fork(), when
TALLOC_FREE(domain->check_online_event), the destructor is called, which
refers to null pointer, because te->event_ctx is set to NULL in
event_context_destructor(), which is called by reinit_after_fork(). So,
te->event_ctx->timer_events in timed_event_destructor() crashes the process.

Patches are in attachment for v3-0-test and v3-2-test, please review them.

After the fix applied, everything works for me very well. :-)

Thanks!
Best
         Regards
BoYang
11th, Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: null-pointer-refrence-v3-0-test.diff
Type: text/x-patch
Size: 1823 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090112/ca374d2c/null-pointer-refrence-v3-0-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: null-pointer-refrence-v3-2-test.diff
Type: text/x-patch
Size: 1086 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090112/ca374d2c/null-pointer-refrence-v3-2-test.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boyang.vcf
Type: text/x-vcard
Size: 187 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090112/ca374d2c/boyang.vcf


More information about the samba-technical mailing list