]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only 32837/head
authoryangjun <yangjun@cmss.chinamobile.com>
Sun, 8 Dec 2019 01:09:53 +0000 (09:09 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:08:53 +0000 (17:08 +0100)
commit73e6265e8afac96dbc690f0343a418ca301d4495
tree9d9150631432ac47f51c8b0387a3f40bf6599149
parentb3d662aad44afaebb123540bd2b5ed93199910ec
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only

These methods incorrectly delete ImageCtx on error, resulting
in double-free heap corruption.

Fixes: https://tracker.ceph.com/issues/43178
Signed-off-by: yangjun <yangjun@cmss.chinamobile.com>
(cherry picked from commit 3457192c24a66ba499a7c9b1747bc29c79b34636)
src/librbd/librbd.cc