linux/net/ceph/crush
Ilya Dryomov f224a6915f crush: ensure bucket id is valid before indexing buckets array
We were indexing the buckets array without verifying the index was
within the [0,max_buckets) range.  This could happen because
a multistep rule does not have enough buckets and has CRUSH_ITEM_NONE
for an intermediate result, which would feed in CRUSH_ITEM_NONE and
make us crash.

Reflects ceph.git commit 976a24a326da8931e689ee22fce35feab5b67b76.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-04 18:25:23 +01:00
..
crush_ln_table.h crush: sync up with userspace 2015-06-25 11:49:31 +03:00
crush.c crush: sync up with userspace 2015-06-25 11:49:31 +03:00
hash.c crush: sync up with userspace 2015-06-25 11:49:31 +03:00
mapper.c crush: ensure bucket id is valid before indexing buckets array 2016-02-04 18:25:23 +01:00