Actions
Bug #70618
closed
MC
MM
mgr: fix use-after-free issue with MgrOpRequest
Bug #70618:
mgr: fix use-after-free issue with MgrOpRequest
Status:
Backporting
Priority:
Urgent
Assignee:
Category:
ceph-mgr
Target version:
Due date:
% Done:
0%
Source:
Q/A
Backport:
tentacle,squid
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
temp-assign
Merge Commit:
Fixed In:
v20.3.0-1100-g6fc889466f
Released In:
v21.2.0~2672
Upkeep Timestamp:
2026-11-04T01:11:14+00:00
Description
Build with -fsanitize=address threw up this issue in teuthology testing.
2025-03-17T10:18:45.933 INFO:[email protected]:Mar 17 10:18:45 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: ================================================================= 2025-03-17T10:18:45.934 INFO:[email protected]:Mar 17 10:18:45 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: ==2==ERROR: AddressSanitizer: heap-use-after-free on address 0x614000e15250 at pc 0x7f217509297b bp 0x7f2104dd4710 sp 0x7f2104dd4700 2025-03-17T10:18:45.934 INFO:[email protected]:Mar 17 10:18:45 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: READ of size 8 at 0x614000e15250 thread T21 2025-03-17T10:18:46.434 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f217509297a in ceph::common::RefCountedObject::put() const (/usr/lib64/ceph/libceph-common.so.2+0x65697a) 2025-03-17T10:18:46.434 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x55a0a62c118f in MgrOpRequest::~MgrOpRequest() (/usr/bin/ceph-mgr+0x80718f) 2025-03-17T10:18:46.434 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x55a0a603f713 in TrackedOp::put() (/usr/bin/ceph-mgr+0x585713) 2025-03-17T10:18:46.434 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x55a0a62f3ffb in std::_Rb_tree<std::pair<double, boost::intrusive_ptr<TrackedOp> >, std::pair<double, boost::intrusive_ptr<TrackedOp> >, std::_Identity<std::pair<double, boost::intrusive_ptr<TrackedOp> > >, std::less<std::pair<double, boost::intrusive_ptr<TrackedOp> > >, std::allocator<std::pair<double, boost::intrusive_ptr<TrackedOp> > > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<double, boost::intrusive_ptr<TrackedOp> > >) (/usr/bin/ceph-mgr+0x839ffb) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x55a0a62d24ab in OpHistory::cleanup(utime_t) (/usr/bin/ceph-mgr+0x8184ab) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x55a0a62d3910 in OpHistory::_insert_delayed(utime_t const&, boost::intrusive_ptr<TrackedOp>) (/usr/bin/ceph-mgr+0x819910) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x55a0a62d4120 in OpHistoryServiceThread::entry() (/usr/bin/ceph-mgr+0x81a120) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x7f2175096866 in Thread::entry_wrapper() (/usr/lib64/ceph/libceph-common.so.2+0x65a866) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #8 0x7f21750968a2 in Thread::_entry_func(void*) (/usr/lib64/ceph/libceph-common.so.2+0x65a8a2) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #9 0x7f2174679001 in start_thread (/lib64/libc.so.6+0x8a001) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #10 0x7f21746fe06f in __GI___clone3 (/lib64/libc.so.6+0x10f06f) 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.435 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x614000e15250 is located 16 bytes inside of 416-byte region [0x614000e15240,0x614000e153e0) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: freed by thread T21 here: 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f2177c223cf in operator delete(void*, unsigned long) (/lib64/libasan.so.6+0xb73cf) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x7f2175730ed1 in MMgrCommand::~MMgrCommand() (/usr/lib64/ceph/libceph-common.so.2+0xcf4ed1) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x7f21750928d4 in ceph::common::RefCountedObject::put() const (/usr/lib64/ceph/libceph-common.so.2+0x6568d4) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x55a0a62c1110 in MgrOpRequest::~MgrOpRequest() (/usr/bin/ceph-mgr+0x807110) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x55a0a603f713 in TrackedOp::put() (/usr/bin/ceph-mgr+0x585713) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x55a0a62f3ffb in std::_Rb_tree<std::pair<double, boost::intrusive_ptr<TrackedOp> >, std::pair<double, boost::intrusive_ptr<TrackedOp> >, std::_Identity<std::pair<double, boost::intrusive_ptr<TrackedOp> > >, std::less<std::pair<double, boost::intrusive_ptr<TrackedOp> > >, std::allocator<std::pair<double, boost::intrusive_ptr<TrackedOp> > > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<double, boost::intrusive_ptr<TrackedOp> > >) (/usr/bin/ceph-mgr+0x839ffb) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x55a0a62d24ab in OpHistory::cleanup(utime_t) (/usr/bin/ceph-mgr+0x8184ab) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x55a0a62d3910 in OpHistory::_insert_delayed(utime_t const&, boost::intrusive_ptr<TrackedOp>) (/usr/bin/ceph-mgr+0x819910) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #8 0x55a0a62d4120 in OpHistoryServiceThread::entry() (/usr/bin/ceph-mgr+0x81a120) 2025-03-17T10:18:46.436 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #9 0x7f2175096866 in Thread::entry_wrapper() (/usr/lib64/ceph/libceph-common.so.2+0x65a866) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #10 0x7f21750968a2 in Thread::_entry_func(void*) (/usr/lib64/ceph/libceph-common.so.2+0x65a8a2) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #11 0x7f2174679001 in start_thread (/lib64/libc.so.6+0x8a001) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: previously allocated by thread T4 here: 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f2177c21367 in operator new(unsigned long) (/lib64/libasan.so.6+0xb6367) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x7f2175885253 in boost::intrusive_ptr<MMgrCommand> ceph::make_message<MMgrCommand>() (/usr/lib64/ceph/libceph-common.so.2+0xe49253) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x7f217577e084 in decode_message(ceph::common::CephContext*, int, ceph_msg_header&, ceph_msg_footer&, ceph::buffer::v15_2_0::list&, ceph::buffer::v15_2_0::list&, ceph::buffer::v15_2_0::list&, boost::intrusive_ptr<Connection>) (/usr/lib64/ceph/libceph-common.so.2+0xd42084) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x7f2175af8869 in ProtocolV2::handle_message() (/usr/lib64/ceph/libceph-common.so.2+0x10bc869) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x7f2175afc6f7 in ProtocolV2::handle_read_frame_dispatch() (/usr/lib64/ceph/libceph-common.so.2+0x10c06f7) 2025-03-17T10:18:46.437 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x7f2175afcb88 in ProtocolV2::_handle_read_frame_epilogue_main() (/usr/lib64/ceph/libceph-common.so.2+0x10c0b88) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x7f2175afd9d9 in ProtocolV2::handle_read_frame_epilogue_main(std::unique_ptr<ceph::buffer::v15_2_0::ptr_node, ceph::buffer::v15_2_0::ptr_node::disposer>&&, int) (/usr/lib64/ceph/libceph-common.so.2+0x10c19d9) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x7f2175b3657a in CtRxNode<ProtocolV2>::call(ProtocolV2*) const (/usr/lib64/ceph/libceph-common.so.2+0x10fa57a) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #8 0x7f2175aed0df in ProtocolV2::run_continuation(Ct<ProtocolV2>&) (/usr/lib64/ceph/libceph-common.so.2+0x10b10df) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #9 0x7f2175b4502e in std::_Function_handler<void (char*, long), ProtocolV2::read(CtRxNode<ProtocolV2>&, std::unique_ptr<ceph::buffer::v15_2_0::ptr_node, ceph::buffer::v15_2_0::ptr_node::disposer>&&)::{lambda(char*, int)#1}>::_M_invoke(std::_Any_data const&, char*&&, long&&) [clone .lto_priv.0] (/usr/lib64/ceph/libceph-common.so.2+0x110902e) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #10 0x7f2175a1bd7e in AsyncConnection::process() (/usr/lib64/ceph/libceph-common.so.2+0xfdfd7e) 2025-03-17T10:18:46.438 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #11 0x7f2175a1c647 in C_handle_read::do_request(unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0xfe0647) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #12 0x7f2175b6129f in EventCenter::process_events(unsigned int, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >*) (/usr/lib64/ceph/libceph-common.so.2+0x112529f) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #13 0x7f2175b945e4 in NetworkStack::add_thread(Worker*)::{lambda()#1}::operator()() const (/usr/lib64/ceph/libceph-common.so.2+0x11585e4) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #14 0x7f2175b94e70 in std::_Function_handler<void (), NetworkStack::add_thread(Worker*)::{lambda()#1}>::_M_invoke(std::_Any_data const&) (/usr/lib64/ceph/libceph-common.so.2+0x1158e70) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #15 0x7f2175b72f86 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::function<void ()> > > >::_M_run() (/usr/lib64/ceph/libceph-common.so.2+0x1136f86) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #16 0x7f21748eeae3 in execute_native_thread_routine (/lib64/libstdc++.so.6+0xdbae3) 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.439 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Thread T21 created by T14 here: 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f2177bc37d5 in pthread_create (/lib64/libasan.so.6+0x587d5) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x7f2175096a38 in Thread::try_create(unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0x65aa38) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x7f21750a709b in Thread::create(char const*, unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0x66b09b) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x55a0a62ce1cd in OpHistory::OpHistory(ceph::common::CephContext*) (/usr/bin/ceph-mgr+0x8141cd) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x55a0a62e99a9 in OpTracker::OpTracker(ceph::common::CephContext*, bool, unsigned int) (/usr/bin/ceph-mgr+0x82f9a9) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x55a0a604dbca in DaemonServer::DaemonServer(MonClient*, Finisher&, DaemonStateIndex&, ClusterState&, PyModuleRegistry&, std::shared_ptr<LogChannel>, std::shared_ptr<LogChannel>) (/usr/bin/ceph-mgr+0x593bca) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x55a0a618f83e in Mgr::Mgr(MonClient*, MgrMap const&, PyModuleRegistry*, Messenger*, Objecter*, std::shared_ptr<LogChannel>, std::shared_ptr<LogChannel>) (/usr/bin/ceph-mgr+0x6d583e) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x55a0a61e8d6a in MgrStandby::handle_mgr_map(boost::intrusive_ptr<MMgrMap>) (/usr/bin/ceph-mgr+0x72ed6a) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #8 0x55a0a61ea4bc in MgrStandby::ms_dispatch2(boost::intrusive_ptr<Message> const&) (/usr/bin/ceph-mgr+0x7304bc) 2025-03-17T10:18:46.440 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #9 0x7f21755f6700 in Messenger::ms_deliver_dispatch(boost::intrusive_ptr<Message> const&) (/usr/lib64/ceph/libceph-common.so.2+0xbba700) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #10 0x7f21755fdadd in DispatchQueue::entry() (/usr/lib64/ceph/libceph-common.so.2+0xbc1add) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #11 0x7f2175a43414 in DispatchQueue::DispatchThread::entry() (/usr/lib64/ceph/libceph-common.so.2+0x1007414) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #12 0x7f2175096866 in Thread::entry_wrapper() (/usr/lib64/ceph/libceph-common.so.2+0x65a866) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #13 0x7f21750968a2 in Thread::_entry_func(void*) (/usr/lib64/ceph/libceph-common.so.2+0x65a8a2) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #14 0x7f2174679001 in start_thread (/lib64/libc.so.6+0x8a001) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Thread T14 created by T0 here: 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f2177bc37d5 in pthread_create (/lib64/libasan.so.6+0x587d5) 2025-03-17T10:18:46.441 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x7f2175096a38 in Thread::try_create(unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0x65aa38) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x7f21750a709b in Thread::create(char const*, unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0x66b09b) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x7f21755f11ec in DispatchQueue::start() (/usr/lib64/ceph/libceph-common.so.2+0xbb51ec) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x7f2175a49646 in AsyncMessenger::ready() (/usr/lib64/ceph/libceph-common.so.2+0x100d646) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x55a0a61dde1f in MgrStandby::init() (/usr/bin/ceph-mgr+0x723e1f) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x55a0a5bcfe0a in main (/usr/bin/ceph-mgr+0x115e0a) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x7f21746185cf in __libc_start_call_main (/lib64/libc.so.6+0x295cf) 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Thread T4 created by T0 here: 2025-03-17T10:18:46.442 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #0 0x7f2177bc37d5 in pthread_create (/lib64/libasan.so.6+0x587d5) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #1 0x7f21748eebb8 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xdbbb8) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #2 0x7f2175b7636a in std::thread& std::vector<std::thread, std::allocator<std::thread> >::emplace_back<std::function<void ()> >(std::function<void ()>&&) (/usr/lib64/ceph/libceph-common.so.2+0x113a36a) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #3 0x7f2175b76468 in PosixNetworkStack::spawn_worker(std::function<void ()>&&) (/usr/lib64/ceph/libceph-common.so.2+0x113a468) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #4 0x7f2175b76cc6 in NetworkStack::start() (/usr/lib64/ceph/libceph-common.so.2+0x113acc6) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #5 0x7f2175a5d072 in AsyncMessenger::AsyncMessenger(ceph::common::CephContext*, entity_name_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0x1021072) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #6 0x7f2175a0dd52 in Messenger::create(ceph::common::CephContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, entity_name_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long) (/usr/lib64/ceph/libceph-common.so.2+0xfd1d52) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #7 0x7f2175a0e57f in Messenger::create_client_messenger(ceph::common::CephContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (/usr/lib64/ceph/libceph-common.so.2+0xfd257f) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #8 0x7f2175d85c19 in MonClient::get_monmap_and_config() (/usr/lib64/ceph/libceph-common.so.2+0x1349c19) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #9 0x55a0a641bffd in global_init(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const*, std::vector<char const*, std::allocator<char const*> >&, unsigned int, code_environment_t, int, bool) (/usr/bin/ceph-mgr+0x961ffd) 2025-03-17T10:18:46.443 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #10 0x55a0a5bcfd28 in main (/usr/bin/ceph-mgr+0x115d28) 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: #11 0x7f21746185cf in __libc_start_call_main (/lib64/libc.so.6+0x295cf) 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: SUMMARY: AddressSanitizer: heap-use-after-free (/usr/lib64/ceph/libceph-common.so.2+0x65697a) in ceph::common::RefCountedObject::put() const 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Shadow bytes around the buggy address: 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801ba9f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa00: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa30: 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 2025-03-17T10:18:46.444 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: =>0x0c28801baa40: fa fa fa fa fa fa fa fa fd fd[fd]fd fd fd fd fd 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa60: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa70: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa80: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: 0x0c28801baa90: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Shadow byte legend (one shadow byte represents 8 application bytes): 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Addressable: 00 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Partially addressable: 01 02 03 04 05 06 07 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Heap left redzone: fa 2025-03-17T10:18:46.445 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Freed heap region: fd 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Stack left redzone: f1 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Stack mid redzone: f2 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Stack right redzone: f3 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Stack after return: f5 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Stack use after scope: f8 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Global redzone: f9 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Global init order: f6 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Poisoned by user: f7 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Container overflow: fc 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Array cookie: ac 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Intra object redzone: bb 2025-03-17T10:18:46.446 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: ASan internal: fe 2025-03-17T10:18:46.447 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Left alloca redzone: ca 2025-03-17T10:18:46.447 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Right alloca redzone: cb 2025-03-17T10:18:46.447 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: Shadow gap: cc 2025-03-17T10:18:46.447 INFO:[email protected]:Mar 17 10:18:46 smithi017 ceph-7a0b893a-0317-11f0-bb94-bd4984dce30f-mgr-x[35884]: ==2==ABORTING
MC Updated by Milind Changire over 1 year ago
- Project changed from CephFS to mgr
- Category changed from Correctness/Safety to ceph-mgr
MC Updated by Milind Changire over 1 year ago
- Pull request ID set to 62445
MC Updated by Milind Changire over 1 year ago
- Description updated (diff)
PD Updated by Patrick Donnelly over 1 year ago
- Status changed from New to Fix Under Review
- Assignee set to Milind Changire
- Priority changed from Normal to Urgent
- Target version set to v21.0.0
- Source set to Q/A
- Backport set to tentacle,squid,reef
- Severity changed from 3 - minor to 1 - critical
PD Updated by Patrick Donnelly over 1 year ago
- Has duplicate Bug #68683: crash: virtual ceph::common::RefCountedObject::~RefCountedObject(): ceph_assert(nref == 0) added
MC Updated by Milind Changire over 1 year ago
- Status changed from Fix Under Review to Pending Backport
changing status to Pending Backport as per merge status (MERGED) at the PR
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72562: tentacle: mgr: fix use-after-free issue with MgrOpRequest added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72563: reef: mgr: fix use-after-free issue with MgrOpRequest added
UB Updated by Upkeep Bot over 1 year ago
- Copied to Backport #72564: squid: mgr: fix use-after-free issue with MgrOpRequest added
UB Updated by Upkeep Bot over 1 year ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 6fc889466f2054cd3b5d33de9c03f72fef7d22e0
- Fixed In set to v20.3.0-1100-g6fc889466f
- Upkeep Timestamp set to 2025-08-13T07:39:53+00:00
RZ Updated by Radoslaw Zarzynski about 1 year ago
- Backport changed from tentacle,squid,reef to tentacle,squid
VS Updated by Venky Shankar 10 months ago
- Assignee changed from Milind Changire to Mahesh Mohan
- Tags (freeform) changed from backport_processed to temp-assign
UB Updated by Upkeep Bot 10 months ago
- Tags (freeform) changed from temp-assign to temp-assign backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Upkeep Timestamp changed from 2025-08-13T07:39:53+00:00 to 2026-08-27T18:05:58+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) changed from temp-assign backport_processed to temp-assign
- Upkeep Timestamp changed from 2026-08-27T18:05:58+00:00 to 2026-08-28T01:51:25+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~2671
- Upkeep Timestamp changed from 2026-08-28T01:51:25+00:00 to 2026-10-24T01:23:07+00:00
UB Updated by Upkeep Bot 29 days ago
- Released In changed from v21.2.0~2671 to v21.2.0~2672
- Upkeep Timestamp changed from 2026-10-24T01:23:07+00:00 to 2026-11-04T01:11:14+00:00
Actions