]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: paxos: Delete logger in destructor 39160/head
authorBrad Hubbard <bhubbard@redhat.com>
Fri, 27 Nov 2020 00:55:54 +0000 (10:55 +1000)
committerNathan Cutler <ncutler@suse.com>
Fri, 29 Jan 2021 08:12:37 +0000 (09:12 +0100)
commit4d95645fdfa7c7563dc63d80c284e91f5b1c703c
treeae6082ef62b3f7e68cfad44479eaa524541488d3
parent9743ed991c7282b299a36c28d635ff251bdee338
mon: paxos: Delete logger in destructor

reset() can race with shutdown() leading to a use-after-free on the
'logger' object.

Fixes: https://tracker.ceph.com/issues/48386
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit cc295d1c87552eb76b9188d88d7e6ab2f3108149)

Conflicts:
src/mon/Paxos.h
- stable branch has slightly different Paxos and get_name function declarations
src/mon/Paxos.cc
src/mon/Paxos.h