Bug 1353951
| Summary: | sssd_pam leaks file descriptors | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Steeve Goveas <sgoveas> |
| Component: | sssd | Assignee: | Lukas Slebodnik <lslebodn> |
| Status: | CLOSED ERRATA | QA Contact: | Steeve Goveas <sgoveas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, sgoveas |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | sssd-1.14.0-18.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 07:19:38 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
Steeve Goveas
2016-07-08 13:51:33 UTC
Hi Steeve, I tried to reproduce the failure locally, but in my testing the client socket is closed after some idle time, as expected. Could you please send me a link to the beaker test so I can reserve a machine and poke around? Lukas agreed to take a look. Initial fd for sssd_nss lrwx------. 1 root root 64 Jul 27 16:58 0 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 1 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 2 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 3 -> anon_inode:[eventpoll] lr-x------. 1 root root 64 Jul 27 16:58 4 -> pipe:[40752] l-wx------. 1 root root 64 Jul 27 16:58 5 -> pipe:[40752] lrwx------. 1 root root 64 Jul 27 16:58 6 -> anon_inode:[eventpoll] lr-x------. 1 root root 64 Jul 27 16:58 7 -> pipe:[39724] l-wx------. 1 root root 64 Jul 27 16:58 8 -> pipe:[39724] lrwx------. 1 root root 64 Jul 27 16:58 9 -> /var/lib/sss/db/config.ldb l-wx------. 1 root root 64 Jul 27 16:58 10 -> /var/log/sssd/sssd_nss.log lr-x------. 1 root root 64 Jul 27 16:58 11 -> anon_inode:inotify lrwx------. 1 root root 64 Jul 27 16:58 12 -> socket:[40753] lrwx------. 1 root root 64 Jul 27 16:58 13 -> socket:[40754] lrwx------. 1 root root 64 Jul 27 16:58 14 -> socket:[40755] lrwx------. 1 root root 64 Jul 27 16:58 15 -> anon_inode:[eventpoll] lrwx------. 1 root root 64 Jul 27 16:58 16 -> /var/lib/sss/db/cache_LDAP.ldb lrwx------. 1 root root 64 Jul 27 16:58 17 -> anon_inode:[eventpoll] lrwx------. 1 root root 64 Jul 27 16:58 18 -> /var/lib/sss/db/timestamps_LDAP.ldb lrwx------. 1 root root 64 Jul 27 16:58 19 -> socket:[40756] lrwx------. 1 root root 64 Jul 27 16:58 20 -> /var/lib/sss/mc/passwd lrwx------. 1 root root 64 Jul 27 16:58 21 -> /var/lib/sss/mc/group lrwx------. 1 root root 64 Jul 27 16:58 22 -> /var/lib/sss/mc/initgroups Final fd for sssd_nss lrwx------. 1 root root 64 Jul 27 16:58 0 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 1 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 2 -> /dev/null lrwx------. 1 root root 64 Jul 27 16:58 3 -> anon_inode:[eventpoll] lr-x------. 1 root root 64 Jul 27 16:58 4 -> pipe:[40752] l-wx------. 1 root root 64 Jul 27 16:58 5 -> pipe:[40752] lrwx------. 1 root root 64 Jul 27 16:58 6 -> anon_inode:[eventpoll] lr-x------. 1 root root 64 Jul 27 16:58 7 -> pipe:[39724] l-wx------. 1 root root 64 Jul 27 16:58 8 -> pipe:[39724] lrwx------. 1 root root 64 Jul 27 16:58 9 -> /var/lib/sss/db/config.ldb l-wx------. 1 root root 64 Jul 27 16:58 10 -> /var/log/sssd/sssd_nss.log lr-x------. 1 root root 64 Jul 27 16:58 11 -> anon_inode:inotify lrwx------. 1 root root 64 Jul 27 16:58 12 -> socket:[40753] lrwx------. 1 root root 64 Jul 27 16:58 13 -> socket:[40754] lrwx------. 1 root root 64 Jul 27 16:58 14 -> socket:[40755] lrwx------. 1 root root 64 Jul 27 16:58 15 -> anon_inode:[eventpoll] lrwx------. 1 root root 64 Jul 27 16:58 16 -> /var/lib/sss/db/cache_LDAP.ldb lrwx------. 1 root root 64 Jul 27 16:58 17 -> anon_inode:[eventpoll] lrwx------. 1 root root 64 Jul 27 16:58 18 -> /var/lib/sss/db/timestamps_LDAP.ldb lrwx------. 1 root root 64 Jul 27 16:58 19 -> socket:[40756] lrwx------. 1 root root 64 Jul 27 16:58 20 -> /var/lib/sss/mc/passwd lrwx------. 1 root root 64 Jul 27 16:58 21 -> /var/lib/sss/mc/group lrwx------. 1 root root 64 Jul 27 16:58 22 -> /var/lib/sss/mc/initgroups lr-x------. 1 root root 64 Jul 27 16:58 25 -> /var/lib/sss/mc/passwd It looks like a "race-condition" when sssd tried to reload memory cache. I will try to run other test and capture file descriptors after a while. There should not be memory cache for passwd opened twice. I expect that memory cache is opened due to negative cache for local users https://fedorahosted.org/sssd/ticket/2928 Upstream ticket: https://fedorahosted.org/sssd/ticket/3122 * master: 950716d2087446205c84f00b371f468d6ead1ec2 Hi Steeve, we fixed the bug upstream, can you qa_ack this bug report? Verified in version sssd-1.14.0-41.el7 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: performance_01: BZ726475 test for file descriptor leak :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ BEGIN ] :: Running 'check_user_func' spawn ./check_user -n 1000 kau1 Password: User "kau1" authenticated successfully 1000 times :: [ PASS ] :: Command 'check_user_func' (Expected 0, got 0) :: [ PASS ] :: no sssd fd leaks: consistent 21 fds :: [ PASS ] :: no sssd_be fd leaks: consistent 22 fds :: [ PASS ] :: no sssd_pam fd leaks: consistent 21 fds :: [ PASS ] :: no sssd_nss fd leaks: consistent 23 fds '5a25d15e-a72e-48ea-ac91-e4f61f4821e7' performance-01-BZ726475-test-for-file-descriptor-leak result: PASS Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2476.html |