]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix segfault on out-of-bound offset provided to claim_free_to_right... 37547/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 5 Oct 2020 14:49:12 +0000 (17:49 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 5 Oct 2020 14:56:08 +0000 (17:56 +0300)
commit0792382f4c51ec612d596efb13bf63fea92f3a2d
tree46aa11f547870d1d8f813556874bfad88b74894b
parentba395abdd6bf8ab78ddeb6c882d43703ee0649f7
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>
src/os/bluestore/fastbmap_allocator_impl.cc
src/test/objectstore/fastbmap_allocator_test.cc