Bug 2311296

Summary: Coverity detected lock ordering issue
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Frank Filz <ffilz>
Component: NFS-GaneshaAssignee: Frank Filz <ffilz>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, cephqe-warriors, kkeithle, rpollack, tserlin, vereddy
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:09:41 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: 2317218    

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