]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix length overflow. 27366/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:35:56 +0000 (12:35 +0300)
commit7ebd14c5deabe052d35d0ce979e63831d39343f3
treebfb8f8d118ba01c756a1b8ec14a12540f9b0663b
parentbd54ae9aa0fa479331c3315e181c6540bbc57dad
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)
src/os/bluestore/fastbmap_allocator_impl.h