Bug 1558933

Summary: After Latest Samba Update (3.6.23-44.el6_9 ) winbind runs out of memory
Product: Red Hat Enterprise Linux 6 Reporter: amitkuma
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9CC: asn, gdeschner, jarrpa
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-21 16:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description amitkuma 2018-03-21 10:40:40 UTC
Description of problem:
customer updated RHEL. Straight after update, Winbind is running out of memory.
Applications used are host mail mta and web proxy.
Use samba/ winbind to authenticate with Active directory.
Currently one custoemr uses a cron job to restart winbind every hour or so.
The other customer has done a yum downgrade to the previous working version, which has resolved the issue for them.

Customer Env:
AD      RHEL-6.9
        All working fine

    Updates Whole system.
    RHEL-6.9(samba-3.6.23-46.el6_9.x86_64)
    # vim gw-smb.conf
     [global]
        password server = <>
        workgroup = <>
        realm =
        idmap uid = 9999-9999
        idmap gid = 9999-9999
        winbind reconnect delay = 20
        security = ads
 <--winbind--

/var/log/messages
Sep 4 11:31:39 <> kernel: : Out of memory: Kill process 27825 (winbindd) score 696 or sacrifice child
Sep 4 11:31:39 <> kernel: : Killed process 27844, UID 0, (winbindd) total-vm:96624kB, anon-rss:312kB, file-rss:388kB
Sep 4 11:31:39 <> kernel: : udisks-daemon invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
Sep 4 11:31:39 <> kernel: : udisks-daemon cpuset=/ mems_allowed=0
Sep 4 11:31:39 <> kernel: : Pid: 4516, comm: udisks-daemon Not tainted 2.6.32-696.10.1.el6.x86_64 #1
                
System logs
Sep 4 11:31:49 <> winbindd[27825]: [2017/09/04 11:31:49.553379, 0] winbindd/winbindd_dual.c:1377(fork_domain_child)
Sep 4 11:31:49 <> winbindd[27825]: Could not open child pipe: Too many open files

Version-Release number of selected component (if applicable):
samba-3.6.23-46.el6_9.x86_64

How reproducible:
All time in customer env

Steps to Reproduce:
1. 
2.
3.

Actual results:
winbind runs out of memory after upgrade

Expected results:
Winbind should not run out of memory after upgrade

Additional info:
1. Collected valgrind report after running command as:
# valgrind     --tool=memcheck     --log-file=report.txt --leak-check=full  /usr/sbin/winbindd -F
2. Asked customer for providing samba logs at log level=10 at time of issue
Please data provided by customer at:
https://foobar.gsslab.pnq.redhat.com/01936736/

Comment 2 Andreas Schneider 2018-03-21 16:36:10 UTC

*** This bug has been marked as a duplicate of bug 1513877 ***