]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: fix use-after-free on ictx in list_descendants()
authorWang ShuaiChao <wangshuaich@chinatelecom.cn>
Tue, 7 Sep 2021 08:43:11 +0000 (16:43 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 Sep 2021 19:03:12 +0000 (21:03 +0200)
commitfa5d61ee5144f67cba53d54d36013614183e53a3
tree7156d5c0d884b4d028f9d5abf571a5a5215d6cfe
parentca906d0d7a65c8a598d397b764dd262cce645fe3
librbd: fix use-after-free on ictx in list_descendants()

Ictx is deleted when "ictx->state->open()" and "ictx->state->close()"
fail, and then "lderr(ictx->cct)" crashes.

Fixes: https://tracker.ceph.com/issues/52522
Signed-off-by: Wang ShuaiChao <wangshuaich@chinatelecom.cn>
src/librbd/api/Image.cc