Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: crush/CrushWrapper: ensure crush_choose_arg_map.size == max_buckets #27082

merged 1 commit into from Apr 5, 2019


None yet
5 participants
Copy link

commented Mar 21, 2019

crush/CrushWrapper: ensure crush_choose_arg_map.size == max_buckets
The crush/builder.c crush_add_bucket method resizes the max_buckets array
but a power of 2 when it has to expand, but the code in CrushWrapper was
assuming that if the array grew the pos for the new bucket would be the
last position in the new array.  This led to a situation where the
crush_choose_arg_map args array size didn't match max_buckets, and
eventually caused a crash.

Signed-off-by: Sage Weil <>
(cherry picked from commit ccda488)

	src/crush/ : Resolved in add_bucket

@tchaikov tchaikov added this to the mimic milestone Mar 21, 2019

@smithfarm smithfarm requested a review from liewegas Mar 22, 2019


This comment has been minimized.

Copy link

commented Apr 2, 2019

@yuriw yuriw merged commit cf41e71 into ceph:mimic Apr 5, 2019

4 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.