Skip to content

Commit d2699c4

Browse files
committed
client: clamp sizes to INT_MAX in sync i/o code paths
Fixes: https://tracker.ceph.com/issues/67612 Signed-off-by: Dhairya Parmar <[email protected]>
1 parent f4f359e commit d2699c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/Client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16091,7 +16091,7 @@ int64_t Client::ll_writev(struct Fh *fh, const struct iovec *iov, int iovcnt, in
1609116091
ldout(cct, 3) << "(fh)" << fh << " is invalid" << dendl;
1609216092
return -CEPHFS_EBADF;
1609316093
}
16094-
return _preadv_pwritev_locked(fh, iov, iovcnt, off, true, false);
16094+
return _preadv_pwritev_locked(fh, iov, iovcnt, off, true, true);
1609516095
}
1609616096

1609716097
int64_t Client::ll_readv(struct Fh *fh, const struct iovec *iov, int iovcnt, int64_t off)
@@ -16106,7 +16106,7 @@ int64_t Client::ll_readv(struct Fh *fh, const struct iovec *iov, int iovcnt, int
1610616106
ldout(cct, 3) << "(fh)" << fh << " is invalid" << dendl;
1610716107
return -CEPHFS_EBADF;
1610816108
}
16109-
return _preadv_pwritev_locked(fh, iov, iovcnt, off, false, false);
16109+
return _preadv_pwritev_locked(fh, iov, iovcnt, off, false, true);
1611016110
}
1611116111

1611216112
int64_t Client::ll_preadv_pwritev(struct Fh *fh, const struct iovec *iov,

0 commit comments

Comments
 (0)