]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rbd: don't produce info on errors in aio_mirror_image_get_info()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 12 Oct 2023 17:03:10 +0000 (19:03 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 13 Oct 2023 15:39:26 +0000 (17:39 +0200)
commita81bd2db3af4d7b53736be8e42a3eaa53028d60c
tree3f1809f0b1bb72bb81423e0786465abcec268e3f
parent9b8e8d93b6fbb512f5565e7dcc5559c40faf4449
pybind/rbd: don't produce info on errors in aio_mirror_image_get_info()

Check completion return value before attemting to decode c_info.
Otherwise we are guaranteed to access invalid memory in decode_cstr()
while trying to compute global_id string length when the client is
blocklisted for example.

Fixes: https://tracker.ceph.com/issues/63028
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/pybind/rbd/rbd.pyx