Actions
Bug #66771
closed
DP
DP
client: `ll_writev`/`ll_readv` suffers int overflow if write len exceeds 2GiB
Bug #66771:
client: `ll_writev`/`ll_readv` suffers int overflow if write len exceeds 2GiB
Status:
Backporting
Priority:
High
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:
0%
Source:
Development
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.3.0-2449-ge42a6907c7
Released In:
Upkeep Timestamp:
2026-08-27T18:01:21+00:00
Description
This happens because `Client::ll_writev` calls `Client::_preadv_pwritev_locked` with `clamp_to_int` param value passed as `false` and since the `ObjectCacher::file_write`'s return type is `int`, there is int overflow and the retval from the sync vectored write call is -ve val.
VS Updated by Venky Shankar over 2 years ago
- Category set to Correctness/Safety
- Assignee set to Dhairya Parmar
- Target version set to v20.0.0
- Backport set to quincy,reef,pacific
DP Updated by Dhairya Parmar over 2 years ago
So as per https://man7.org/linux/man-pages/man2/write.2.html the max bytes that can be transferred through write() and similar system calls is 2147479552 bytes. Therefore this isn't actually a bug
DP Updated by Dhairya Parmar over 2 years ago
- Subject changed from client: `ll_writev` suffers int overflow if write len exceeds 2GiB to client: `ll_writev`/`ll_readv` suffers int overflow if write len exceeds 2GiB
DP Updated by Dhairya Parmar over 2 years ago
- Status changed from New to In Progress
- Pull request ID set to 58481
KS Updated by Konstantin Shalygin over 2 years ago
- Backport changed from quincy,reef,pacific to quincy,reef
KS Updated by Konstantin Shalygin almost 2 years ago
- Backport changed from quincy,reef to reef
PD Updated by Patrick Donnelly over 1 year ago
- Target version deleted (
v20.0.0)
KS Updated by Konstantin Shalygin 8 months ago
- Backport deleted (
reef)
VS Updated by Venky Shankar 5 months ago
- Target version set to v22.0.0
CH Updated by Christopher Hoffman 5 months ago
- Backport set to umbrella
UB Updated by Upkeep Bot 4 months ago
- Status changed from In Progress to Pending Backport
- Merge Commit set to e42a6907c7f07e3932db1e3c63dd08bfee31246c
- Fixed In set to v21.3.0-2449-ge42a6907c7
- Upkeep Timestamp set to 2026-08-20T13:34:57+00:00
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80032: umbrella: client: `ll_writev`/`ll_readv` suffers int overflow if write len exceeds 2GiB added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Upkeep Timestamp changed from 2026-08-20T13:34:57+00:00 to 2026-08-27T18:01:21+00:00
Actions