Bug 2141744

Summary: SSS_CLIENT: fix thread unsafe access to get*ent structs.
Product: Red Hat Enterprise Linux 9 Reporter: Alexey Tikhonov <atikhono>
Component: sssdAssignee: Alexey Tikhonov <atikhono>
Status: CLOSED ERRATA QA Contact: sssd-qe
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.1CC: aboscatt, pbrezina, sgadekar
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.8.1-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2141830 (view as bug list) Environment:
Last Closed: 2023-05-09 08:19:51 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:
Bug Depends On:    
Bug Blocks: 2141830    
Deadline: 2022-12-05   

Description Alexey Tikhonov 2022-11-10 16:59:48 UTC
All get*ent structs were protected with socket mutex. In case SSSD is built with lock-free client support, `sss_nss_lock()` is a no-op, thus resulting in thread unsafe access.

Issue is fixed in https://github.com/SSSD/sssd/pull/6333

Comment 1 Alexey Tikhonov 2022-11-10 17:24:52 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6333

* `master`
    * 69fd828c1d5e92bc3b2e327a45dfed116f49d50a - CLIENT: fix thread unsafe acces to get*ent structs.
* `sssd-2-7`
    * 181d6fb901afa5aa2e87c4e5f5de4a0b77a1cac5 - CLIENT: fix thread unsafe acces to get*ent structs.

Comment 11 errata-xmlrpc 2023-05-09 08:19:51 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 (sssd bug fix and enhancement update), 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-2023:2514