[Samba] Memory leak in smbd in 4.6.0

Ralph Böhme slow at samba.org
Wed Mar 15 10:05:15 UTC 2017


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


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

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


More information about the samba mailing list