]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
crushtool: init with CINIT_FLAG_NO_DAEMON_ACTIONS
authorBill Scales <bill_scales@uk.ibm.com>
Tue, 29 Apr 2025 13:33:02 +0000 (14:33 +0100)
committerBill Scales <bill_scales@uk.ibm.com>
Fri, 2 May 2025 07:15:00 +0000 (08:15 +0100)
commit2f3ffff3476763bd7cb6ecd378b16cd39eb5f302
treee349b44d2681182c02969d1fa081bf15279fadcd
parent5792bc7cce4102a568450a93e674b4b5318fb1c1
crushtool: init with CINIT_FLAG_NO_DAEMON_ACTIONS

A change to mempool https://github.com/ceph/ceph/pull/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 <bill_scales@uk.ibm.com>
src/tools/crushtool.cc