Patch for memory leak in vfs_defaults.c

Andrew Walker awalker at ixsystems.com
Fri Apr 6 20:40:44 UTC 2018


Hi all,
I encountered an issue where several FreeNAS users on samba 4.7 were
experiencing memory leak resulting in single smbd process consuming all
available RAM and swap space. Disabling the getwd cache significantly
increased rate of leak, and enabling widelinks / disabling unix extensions
made the leak apparently stop. Investigation indicated that the leak was in
vfswrap_getwd().

The attached patch resolved the issue.

Thank you,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-memory-leak-in-vfswrap_getwd.patch
Type: application/octet-stream
Size: 1271 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180406/f1cbecae/0001-Fix-memory-leak-in-vfswrap_getwd.obj>


More information about the samba-technical mailing list