Project

General

Profile

Actions

Bug #432

closed

Memory leak in smbd/libsmb smb_idmap_getsid

Added by Gordon Ross over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Start date:
2010-11-30
Due date:
% Done:

90%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

This is badly exposed when using quotas, apparently.
Here's a sample ::findleaks -d output:

umem_alloc_56 leak: 2643958 buffers, 56 bytes each, 148061648 bytes total
ADDR BUFADDR TIMESTAMP THREAD
CACHE LASTLOG CONTENTS
859e0f8 8585df0 104c33a965aaf 178
808c010 0 0
libumem.so.1`umem_cache_alloc_debug+0x144
libumem.so.1`umem_cache_alloc+0x19a
libumem.so.1`umem_alloc+0xcd
libumem.so.1`malloc+0x2a
libc_hwcap1.so.1`strdup+0x26
libidmap.so.1`idmap_get_mappings+0x150
libsmb.so.1`smb_idmap_batch_getmappings+0x35
libsmb.so.1`smb_idmap_getsid+0x53
libmlsvc.so.1`smb_quota_sidstr+0x42
libmlsvc.so.1`smb_quota_zfs_callback+0x69
libzfs.so.1`zfs_userspace+0xf8
libmlsvc.so.1`smb_quota_zfs_get_quotas+0x54
libmlsvc.so.1`smb_quota_tree_populate+0x96
libmlsvc.so.1`smb_quota_query+0x58
smbd_dop_quota_query+0x58


Files

fix-432.patch (883 Bytes) fix-432.patch Gordon Ross, 2010-12-08 11:12 AM
Actions

Also available in: Atom PDF