Memory leak in smbd in 4.6.0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Memory leak in smbd in 4.6.0

Samba - General mailing list
Folks,

fyi: there's a memory leak in the fileserver in the just released Samba 4.6.0 that affects
anyone using aio.

<https://bugzilla.samba.org/show_bug.cgi?id=12624>

Again, this only affects you if you use

    aio read size > 0
    aio write size > 0

in smb.conf.

During read and write operation smbd will leak memory allocated by worker
threads, the amount of memory leaked over time depends on the IO pattern.

Samba 4.6.1 will ship a fix for this, patches are also available at the
bugreport.

Until then the workaround is to disable aio by removing the aio read|write
settings from smb.conf.

Cheerio!
-slow

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Memory leak in smbd in 4.6.0

Samba - General mailing list


Am 15.03.2017 um 11:05 schrieb Ralph Böhme via samba:

> Folks,
>
> fyi: there's a memory leak in the fileserver in the just released Samba 4.6.0 that affects
> anyone using aio.
>
> <https://bugzilla.samba.org/show_bug.cgi?id=12624>
>
> Again, this only affects you if you use
>
>      aio read size > 0
>      aio write size > 0
>
> in smb.conf.
>
> During read and write operation smbd will leak memory allocated by worker
> threads, the amount of memory leaked over time depends on the IO pattern.
>
> Samba 4.6.1 will ship a fix for this, patches are also available at the
> bugreport.
>
> Until then the workaround is to disable aio by removing the aio read|write
> settings from smb.conf.
>
> Cheerio!
> -slow
>
Hello Ralph,

Seems this patch ist still not applied in 4.6.2!

Cheers,
Achim

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Memory leak in smbd in 4.6.0

Samba - General mailing list
On Sat, Apr 15, 2017 at 05:35:27PM +0200, Achim Gottinger via samba wrote:
> Seems this patch ist still not applied in 4.6.2!

Oops. Thanks for spotting this!

https://bugzilla.samba.org/show_bug.cgi?id=12624#c4

-slow

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Loading...