]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: paxos: Delete logger in destructor 39161/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:16:54 +0000 (09:16 +0100)
commit185779356bfcf3f91f9c9027931971bf36c44d6d
tree1ec084d2430d4783a08046f12b78fb9782a636c5
parent482eda5eea4262ce6a42509d97bad80a5b5fb28e
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