Project

General

Profile

Bug #13314

Rados bench verification crashing when there's no objects

Added by Piotr Dalek over 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Abhishek Varshney
Category:
common
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

https://github.com/ceph/ceph/pull/5853

When specified pool is empty or doesn't contain valid bench objects, rados bench can crash because it attempts to memcmp through NULL pointer. Added check for valid object size (which also fixes the case when objects are there, but they're truncated), and made object_size being size_t instead of int.

Also, fix lock issue under similar conditions in seq_read_bench().

History

#1 Updated by Piotr Dalek about 7 years ago

  • Status changed from New to Resolved

Fix merged.

Also available in: Atom PDF