Project

General

Profile

Bug #12611

object_map_update fails with -EINVAL return code

Added by Jason Dillaman about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
08/04/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

Description

The bit vector implementation incorrectly computes the number of bytes to read when decoding a data chunk. This results in BitVector::decode_data throwing an 'end_of_buffer' exception when it sees the out-of-range end offset.

2015-08-04 05:06:05.151676 7f837a876700  0 <cls> cls/rbd/cls_rbd.cc:2109: failed to decode data chunk [4096]: buffer::end_of_buffer

Related issues

Copied to rbd - Backport #12682: object_map_update fails with -EINVAL return code Resolved 08/04/2015

Associated revisions

Revision c6d98992 (diff)
Added by Jason Dillaman about 3 years ago

common: bit_vector extent calculation incorrect for last page

It's highly probable that the last page in the bit vector will not
be a full page size. As a result, the computed extents will extend
beyond the data portion of the bit vector, resulting in a end_of_buffer
exception.

Fixes: #12611
Backport: hammer
Signed-off-by: Jason Dillaman <>

Revision fca78765 (diff)
Added by Jason Dillaman about 3 years ago

common: bit_vector extent calculation incorrect for last page

It's highly probable that the last page in the bit vector will not
be a full page size. As a result, the computed extents will extend
beyond the data portion of the bit vector, resulting in a end_of_buffer
exception.

Fixes: #12611
Backport: hammer
Signed-off-by: Jason Dillaman <>
(cherry picked from commit c6d98992691683524d3d96def83a90a6f5fe7f93)

History

#1 Updated by Jason Dillaman about 3 years ago

  • Status changed from In Progress to Need Review

#2 Updated by Jason Dillaman about 3 years ago

  • Status changed from Need Review to Pending Backport

#3 Updated by Loic Dachary about 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF