Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon: paxos: Delete logger in destructor #38314

Merged

Conversation

badone
Copy link
Contributor

@badone badone commented Nov 27, 2020

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

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@tchaikov
Copy link
Contributor

@badone
Copy link
Contributor Author

badone commented Nov 29, 2020

@tchaikov Thanks for testing this.

src/mon/Paxos.cc Outdated Show resolved Hide resolved
@badone badone force-pushed the wip-monitor-reset-abort-if-is_shutdown branch from e695ec8 to 439b7e8 Compare December 1, 2020 04:55
@github-actions github-actions bot added the mon label Dec 1, 2020
@badone badone force-pushed the wip-monitor-reset-abort-if-is_shutdown branch from 439b7e8 to 087af9f Compare December 1, 2020 04:55
src/mon/Paxos.h Outdated Show resolved Hide resolved
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>
@badone badone force-pushed the wip-monitor-reset-abort-if-is_shutdown branch from 087af9f to cc295d1 Compare December 1, 2020 22:34
@badone badone added the needs-qa label Dec 1, 2020
@badone badone changed the title mon: paxos: Don't reset if shutting down mon: paxos: Delete logger in destructor Dec 2, 2020
@tchaikov tchaikov merged commit fb825dd into ceph:master Dec 5, 2020
@badone badone deleted the wip-monitor-reset-abort-if-is_shutdown branch December 7, 2020 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants