RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2141744 - SSS_CLIENT: fix thread unsafe access to get*ent structs.
Summary: SSS_CLIENT: fix thread unsafe access to get*ent structs.
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-12-05
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: sssd
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Alexey Tikhonov
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks: 2141830
TreeView+ depends on / blocked
 
Reported: 2022-11-10 16:59 UTC by Alexey Tikhonov
Modified: 2023-05-09 10:28 UTC (History)
3 users (show)

Fixed In Version: sssd-2.8.1-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2141830 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:19:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd pull 6333 0 None closed CLIENT: fix thread unsafe acces to get*ent structs. 2022-11-10 17:24:52 UTC
Red Hat Issue Tracker RHELPLAN-139054 0 None None None 2022-11-10 17:10:51 UTC
Red Hat Issue Tracker SSSD-5178 0 None None None 2022-11-10 17:26:54 UTC
Red Hat Product Errata RHBA-2023:2514 0 None None None 2023-05-09 08:20:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.