Bug 2311296 - Coverity detected lock ordering issue
Summary: Coverity detected lock ordering issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: NFS-Ganesha
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0
Assignee: Frank Filz
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On:
Blocks: 2317218
TreeView+ depends on / blocked
 
Reported: 2024-09-10 19:25 UTC by Frank Filz
Modified: 2024-11-25 09:09 UTC (History)
6 users (show)

Fixed In Version: nfs-ganesha-6.0-4.el9cp; rhceph-container-8-73
Doc Type: Bug Fix
Doc Text:
.The `reap_expired_client_list` no longer causes a deadlock Previously, in some cases, the `reap_expired_client_list` would create a deadlock. This would occur due two threads waiting on each other to acquire a lock. With this fix, the lock order is resolved and no deadlock occurs.
Clone Of:
Environment:
Last Closed: 2024-11-25 09:09:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9762 0 None None None 2024-09-10 19:25:17 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:09:46 UTC

Description Frank Filz 2024-09-10 19:25:05 UTC
Description of problem:

Coverity CID 502248 Thread deadlock

Two threads will be stuck waiting forever if each holds a lock the other needs to acquire.

In reap_expired_client_list: Threads may try to acquire two locks in different orders, potentially causing deadlock (CWE-833)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

Hung server


Expected results:

No hang


Additional info:

Comment 1 Storage PM bot 2024-09-10 19:25:14 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 10 errata-xmlrpc 2024-11-25 09:09:41 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 (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), 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-2024:10216


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