]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/config_proxy: hold lock while accessing mutable container 30661/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 00:20:10 +0000 (20:20 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 1 Oct 2019 12:28:38 +0000 (14:28 +0200)
commitbcdec9fa8be4243acd1fefa6daa4ee4248b55e88
tree9b0e071b81dd1bd47e9023653d93060026cbf1df
parentf3d0921081b2e3569ec65e0df6a4853b2b405917
common/config_proxy: hold lock while accessing mutable container

The 'call_gate_leave' method was accessing the 'obs_call_gate' map
without holding the required lock. This data structure could be
manipulated by another thread underneath the observer callback
thread context.

Fixes: https://tracker.ceph.com/issues/41354
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0cc2dd7bd1021dd8b5e22850495ce97da7d98716)
src/common/config_proxy.h