]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix Allocator::allocate() int truncation 13010/head
authorSage Weil <sage@redhat.com>
Fri, 20 Jan 2017 01:51:45 +0000 (19:51 -0600)
committerSage Weil <sage@redhat.com>
Fri, 20 Jan 2017 01:51:45 +0000 (19:51 -0600)
commite19aa8484632ac7d83aa5dc868a1fe4dc167d9b9
tree44fe2a88429c56db166b0992ab8bcf92005ef75f
parent3e75c6bea6c05831a33e1709f729186b98151c64
os/bluestore: fix Allocator::allocate() int truncation

An allocation of size 0x80000000 gets truncated to 0.  Larger values can
break things in similar ways.

Introduced in 5ab034345d7320fbc86a2133c0c29ec1aca4b71a.

Fixes: http://tracker.ceph.com/issues/18595
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/Allocator.h