Bug 1418943

Summary: If a long-running task (e.g. enumeration) blocks the sssd_be process, sssd_be can deadlock
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Reznik <jreznik>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: Amith <apeetham>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.3CC: afarley, apeetham, arajendr, christoph.maser, fidencio, fjayalat, gparente, grajaiya, jhrozek, jnansi, ldelouw, lslebodn, mkosek, mzidek, pbrezina, sgoveas, sssd-maint, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.14.0-43.el7_3.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1396912 Environment:
Last Closed: 2017-04-12 12:34:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1396912    
Bug Blocks:    

Description Jaroslav Reznik 2017-02-03 08:47:48 UTC
This bug has been copied from bug #1396912 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 4 Amith 2017-03-30 03:39:55 UTC
Verified the bug on SSSD version: sssd-1.14.0-43.el7_3.14

Steps followed during verification:

1. Setup ldap with with 25000 users.

2. Setup client with enumeration = true in sssd.conf

3. Run user auth and lookup to verify whether sssd_be process is hanged or not.

Automated these steps in the SSSD Performance test suite and also executed the regression round.
See beaker link: https://beaker.engineering.redhat.com/jobs/1786406

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: sssdbe can deadlock if a long running task like enumeration blocks it bz1418943
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Sleeping for 5 seconds
:: [   PASS   ] :: Command 'getent -s sss passwd puser15999' (Expected 0, got 0)
:: [   LOG    ] :: Authentication successfull, as expected
:: [   LOG    ] :: Duration: 3m 18s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: sssdbe can deadlock if a long running task like enumeration blocks it bz1418943

Comment 6 errata-xmlrpc 2017-04-12 12:34:07 UTC
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://access.redhat.com/errata/RHBA-2017:0908