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

reef: pybind/rbd: don't produce info on errors in aio_mirror_image_get_info() #54055

Merged
merged 2 commits into from Oct 27, 2023

Conversation

idryomov
Copy link
Contributor

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>
(cherry picked from commit a81bd2d)
Make it clear that mirror mode, mirror info and snap ID can be None if
the respective operation fails.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 01fff6a)
@idryomov idryomov added this to the reef milestone Oct 17, 2023
@idryomov idryomov requested a review from a team as a code owner October 17, 2023 11:54
@yuriw yuriw merged commit b8bb040 into ceph:reef Oct 27, 2023
11 checks passed
@idryomov idryomov deleted the wip-63028-reef branch October 27, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants