linux_dsm_epyc7002/net/ceph
Ilya Dryomov b3b33b0e43 crush: pass weight vector size to map function
Pass the size of the weight vector into crush_do_rule() to ensure that we
don't access values past the end.  This can happen if the caller misbehaves
and passes a weight vector that is smaller than max_devices.

Currently the monitor tries to prevent that from happening, but this will
gracefully tolerate previous bad osdmaps that got into this state.  It's
also a bit more defensive.

Reflects ceph.git commit 5922e2c2b8335b5e46c9504349c3a55b7434c01a.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-12-31 20:32:10 +02:00
..
crush crush: pass weight vector size to map function 2013-12-31 20:32:10 +02:00
armor.c
auth_none.c
auth_none.h
auth_x_protocol.h
auth_x.c
auth_x.h
auth.c
buffer.c
ceph_common.c libceph: all features fields must be u64 2013-12-31 20:32:08 +02:00
ceph_fs.c
ceph_hash.c
ceph_strings.c
crypto.c
crypto.h
debugfs.c
Kconfig
Makefile
messenger.c libceph: update ceph_features.h 2013-12-31 20:32:09 +02:00
mon_client.c
msgpool.c
osd_client.c libceph: resend all writes after the osdmap loses the full flag 2013-12-13 23:04:28 +02:00
osdmap.c crush: pass weight vector size to map function 2013-12-31 20:32:10 +02:00
pagelist.c
pagevec.c
snapshot.c