[PATCH] Patch for memory leak in vfs_defaults.c

Jeremy Allison jra at samba.org
Fri Apr 6 23:03:08 UTC 2018


On Fri, Apr 06, 2018 at 04:40:44PM -0400, Andrew Walker via samba-technical wrote:
> 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.

OK, here is the version I'd like to push. Confirmed fixed by
the submitter.

Ralph, can you do a quick review ?

Thanks,

	Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbd-Fix-memory-leak-in-vfswrap_getwd.patch
Type: text/x-diff
Size: 1059 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180406/8a2c7300/0001-s3-smbd-Fix-memory-leak-in-vfswrap_getwd.diff>


More information about the samba-technical mailing list