]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix length overflow. 27365/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 20 Jun 2018 12:22:38 +0000 (20:22 +0800)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 4 Apr 2019 09:40:03 +0000 (12:40 +0300)
commit2e3b3cf720527a7b49e613b0f01804f2c4b7f754
tree1ecf48e7df5ad66aa1ad64d766b19bdee99ec1ce
parent28838f6d7403c64b4043e084a08a5e0e1ae137c1
os/bluestore: fix length overflow.

In fact, length of 'struct interval_t' and 'struct bluestore_pextent_t'
is uint32_t. But len of AllocatorLevel02::_mark_allocated is uint64_t.
So it may cause data overflow which cause bug.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 40d13406b85ad1630e61296b0b4f2a85f228d2a4)

 Conflicts:
src/os/bluestore/fastbmap_allocator_impl.h
src/os/bluestore/fastbmap_allocator_impl.h