Actions
Bug #65389
openThe ceph_readdir function in libcephfs returns incorrect d_reclen value
Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
% Done:
0%
Source:
Development
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, ceph-fuse, libcephfs
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Merge Commit:
Fixed In:
v19.3.0-5186-gcfac7ef803
Released In:
v20.2.0~1930
Upkeep Timestamp:
2025-11-01T00:57:52+00:00
Description
When struct dirent entries are returned by ceph_readdir() function, the field d_reclen is always 1.
Based on the documentation from man pages (from readdir and getdents/64), this field should contain the used size of the dirent structure, which include the size of the fixed fields plus the space used by the name (which may be different than the actual size of a struct dirent ).
Updated by Venky Shankar almost 2 years ago
- Target version set to v20.0.0
- Backport set to quincy,reef,squid
- Component(FS) ceph-fuse added
Updated by Patrick Donnelly almost 2 years ago
- Status changed from New to Fix Under Review
Updated by Patrick Donnelly over 1 year ago
- Status changed from Fix Under Review to Pending Backport
- Source set to Development
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68246: quincy: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68247: squid: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68248: reef: The ceph_readdir function in libcephfs returns incorrect d_reclen value added
Updated by Upkeep Bot 8 months ago
- Merge Commit set to cfac7ef803bff86bf0b473c3d69dab196753bdf1
- Fixed In set to v19.3.0-5186-gcfac7ef803b
- Upkeep Timestamp set to 2025-07-09T13:46:48+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v19.3.0-5186-gcfac7ef803b to v19.3.0-5186-gcfac7ef803
- Upkeep Timestamp changed from 2025-07-09T13:46:48+00:00 to 2025-07-14T17:40:43+00:00
Updated by Upkeep Bot 4 months ago
- Released In set to v20.2.0~1930
- Upkeep Timestamp changed from 2025-07-14T17:40:43+00:00 to 2025-11-01T00:57:52+00:00
Actions