Skip to content

Comments

crushtool: init with CINIT_FLAG_NO_DAEMON_ACTIONS#63092

Merged
yuriw merged 1 commit intoceph:mainfrom
bill-scales:issue71027
May 28, 2025
Merged

crushtool: init with CINIT_FLAG_NO_DAEMON_ACTIONS#63092
yuriw merged 1 commit intoceph:mainfrom
bill-scales:issue71027

Conversation

@bill-scales
Copy link
Contributor

@bill-scales bill-scales commented May 2, 2025

A change to mempool #55696 has exposed a use after free bug in crushtool during process exit where dtors are being called to free up mempool data structures at the same time that the ceph context service thread is trying to update them.

This commit modifies crushtool's initialization to prevent this (unneeded) thread from being created. See issue for more details about why the thread was not terminiating.

Fixes: https://tracker.ceph.com/issues/71027
Signed-off-by: Bill Scales [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

A change to mempool ceph#55696 has
exposed a use after free bug in crushtool during process exit
where dtors are being called to free up mempool data structures
at the same time that the ceph context service thread is trying
to update them.

This commit modifies crushtool's initialization to prevent
this (unneeded) thread from being created. See issue for more
details about why the thread was not terminiating.

Fixes: https://tracker.ceph.com/issues/71027
Signed-off-by: Bill Scales <[email protected]>
@github-actions github-actions bot added the core label May 2, 2025
@bill-scales
Copy link
Contributor Author

jenkins test make check

1 similar comment
@bill-scales
Copy link
Contributor Author

jenkins test make check

@rzarzynski rzarzynski added this to the tentacle milestone May 5, 2025
Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@Naveenaidu
Copy link
Contributor

@yuriw yuriw merged commit 3bfb9d6 into ceph:main May 28, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants