Description of problem: If a v2 image's randomly generated id is longer than 14 characters, it will overflow the fixed-sized C-string allocated for the block name prefix within the 'stat' function. It has been reported upstream that OpenStack glance, due to this potential string overflow within the librbd Python bindings, can fail to function. Version-Release number of selected component (if applicable): 2.0, 1.3 How reproducible: Random -- requires a v2 image whose randomly generated image id is longer than 14 characters. Steps to Reproduce: 1. Get rbd CLI to generate a v2 image id > 14 characters 2. Use "stat" API method -- block_name_prefix C-string within result might not be null terminated. Actual results: Expected results: Additional info:
Upstream, master branch PR: https://github.com/ceph/ceph/pull/11148
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2815.html