diff options
| author | Raphael Zimmer <raphael.zimmer@tu-ilmenau.de> | 2026-04-24 15:37:37 +0200 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2026-05-11 10:39:22 +0200 |
| commit | 596f91294b351866956808b1ecb8dfae15382a6d (patch) | |
| tree | 6905a0900c95e22788cea2e7ed72e0cb845d11b8 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4c79fc2d598694bda845b46229c9d48b65042970 (diff) | |
| download | linux-596f91294b351866956808b1ecb8dfae15382a6d.tar.gz linux-596f91294b351866956808b1ecb8dfae15382a6d.zip | |
libceph: Fix unnecessarily high ceph_decode_need() for uniform bucket
In crush_decode_uniform_bucket(), the item_weight field of the bucket
is set. This is a single field of type u32 since the uniform bucket uses
the same weight for all items. The value in ceph_decode_need() is set to
(1+b->h.size) * sizeof(u32), which is higher than actually needed.
This patch removes the call to ceph_decode_need() with the unnecessarily
high value and switches the subsequent operation from ceph_decode_32()
to ceph_decode_32_safe(), which already includes the correct bounds
check.
Signed-off-by: Raphael Zimmer <raphael.zimmer@tu-ilmenau.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
