[Samba] The memory maybe leak in samba 4.3.11

L.P.H. van Belle belle at bazuin.nl
Thu May 4 12:52:32 UTC 2017


Oeps, sorry wrong one. 

There where multiple fixes. 

https://wiki.samba.org/index.php/Samba_4.4_Features_added/changed 
BUG #12377: vfs_glusterfs: Fix a memory leak in connect path. 

https://wiki.samba.org/index.php/Samba_4.5_Features_added/changed
BUG #12485: ctdbd_conn: Fix a resource leak. 

https://wiki.samba.org/index.php/Samba_4.6_Features_added/changed
## BUG #12624: lib/pthreadpool: Fix a memory leak.


Greetz, 

Louis

> -----Oorspronkelijk bericht-----
> Van: samba-technical 
> [mailto:samba-technical-bounces at lists.samba.org] Namens 
> Zhangxiaoxu via samba-technical
> Verzonden: donderdag 4 mei 2017 14:42
> Aan: 'bugzilla-maintenance at samba.org'; 
> 'samba-technical at lists.samba.org'
> Onderwerp: The memory maybe leak in samba 4.3.11
> 
> Hi,
> 
> SCENE:
> Client A and Client B write data to an share.
> Client B open the share with windows explorer.
> 
> Problem:
> The RES of smbd grows quickly.
>      $ top
> PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     
> TIME+ COMMAND        CODE    DATA
> 2913029 nobody    20   0 1664536 1.204g  16608 D   0.0  1.3   
> 5:09.21 smbd            64        1318580
> 
> Process 2913029 is the connection of client B.
> The DATA also grows quickly.
> 
> Use smbcontrol, we found smbd process not talloc so much memory.
> $ smbcontrol 2913029 pool-usage
> full talloc report on 'null_context' (total  92353 bytes in 
> 1274 blocks)
> 
>   From logs, we found there a lot of 0x310(maybe 
> MSG_PVFS_NOTIFY) message from the ctdb.
> 
> Environment:
> Ubuntu 14.04
> Samba 4.3.11
> Windows 7 Client
> 
> Configuration:
> clustering = yes
>     ctdbd socket = /var/run/ctdb/ctdbd.socket
>    max protocol = SMB3
>    large readwrite = yes
>    idmap config *:range = 1000000-1999999
>    log level = 2
>    use sendfile = yes
>    store dos attributes = yes
>    acl_xattr:ignore system acls = yes
>    aio read size = 1024
>    deadtime = 10
> 
> Is this an exist problem?
> Could you give us some suggestion about how to find the root 
> cause about the problem.
> 
> Br,
> Zhang Xiaoxu.
> --------------------------------------------------------------
> --------------------------------------------------------------
> ---------
> ??????????????????????????????????????????????????????????????
> ??????????????????????????????????????????????????????????
> ??????????????????????????????????????????????????????????????
> ??????????????????????????????????????????????????????????
> ??????????????????????????????????????????????????????????????
> ??????????????????????????????????????????????????????????
> ?????????
> This e-mail and its attachments contain confidential 
> information from H3C, which is intended only for the person 
> or entity whose address is listed above. Any use of the 
> information contained herein in any way (including, but not 
> limited to, total or partial disclosure, reproduction, or 
> dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in 
> error, please notify the sender by phone or email immediately 
> and delete it!
> 




More information about the samba mailing list