]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: possible race condition leads to use-after-free 9009/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 May 2016 11:41:30 +0000 (07:41 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 May 2016 17:01:57 +0000 (13:01 -0400)
commita73b9dd670bcd3a77611c7240d86963b29527983
tree93864cfb3d8982fea995ab06a3db16d8356c377e
parentb6b3cdd40c60775c27b631cd8670e95bc84a5219
librbd: possible race condition leads to use-after-free

The invoke async operation state machine can complete before the
owner lock is released.  Use a stack reference to prevent
use-after-free.

Fixes: http://tracker.ceph.com/issues/15690
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d9421a25b582e41550526714b71fb55f05abb1de)
src/librbd/Operations.cc