]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix segfault on out-of-bound offset provided to claim_free_to_right... 38637/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 5 Oct 2020 14:49:12 +0000 (17:49 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 17 Dec 2020 12:58:13 +0000 (15:58 +0300)
commit67088da0825667f5004eb78531687513e9965835
tree237ba63b8b59327a6f7d41c8753b0cabcbb69a88
parent1e708dc3e402e0829b2fade6a1722408cdceda7e
os/bluestore: fix segfault on out-of-bound offset provided to  claim_free_to_right() call

Hybrid allocator might provide such an offset when final extent is marked as free by HybridAllocator::_add_to_tree().
Hence provides start+size point out to the end of the controled space.

Fixes: https://tracker.ceph.com/issues/47751
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 0792382f4c51ec612d596efb13bf63fea92f3a2d)
src/os/bluestore/fastbmap_allocator_impl.cc
src/test/objectstore/fastbmap_allocator_test.cc