Project

General

Profile

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

Added by Dhairya Parmar over 2 years ago. Updated 3 months ago.

Status:
Backporting
Priority:
High
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):
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.


Related issues 1 (1 open — 0 closed)

Copied to CephFS - Backport #80032: umbrella: client: `ll_writev`/`ll_readv` suffers int overflow if write len exceeds 2GiBNewDhairya Parmar

Actions

VS Updated by Venky Shankar over 2 years ago Actions #1

  • 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 Actions #2

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 Actions #3

  • 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 Actions #4

  • Status changed from New to In Progress
  • Pull request ID set to 58481

KS Updated by Konstantin Shalygin over 2 years ago Actions #5

  • Backport changed from quincy,reef,pacific to quincy,reef

KS Updated by Konstantin Shalygin almost 2 years ago Actions #6

  • Backport changed from quincy,reef to reef

PD Updated by Patrick Donnelly over 1 year ago Actions #7

  • Target version deleted (v20.0.0)

KS Updated by Konstantin Shalygin 8 months ago Actions #8

  • Backport deleted (reef)

VS Updated by Venky Shankar 5 months ago Actions #9

  • Target version set to v22.0.0

CH Updated by Christopher Hoffman 5 months ago Actions #10

  • Backport set to umbrella

UB Updated by Upkeep Bot 4 months ago Actions #11

  • 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 Actions #12

  • 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 Actions #13

  • 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

Also available in: PDF Atom