Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83161

Fix concurrent read to `_errMsg` from `MigrationDestinationManager` without acquiring mutex

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.25, 5.0.22, 6.0.11, 7.0.3, 7.2.0-rc1
    • None
    • None
    • Fully Compatible
    • ALL
    • v7.2, v7.0, v6.0, v5.0, v4.4
    • CAR Team 2023-11-27
    • 104

    Description

      An unprotected read access of the variable _errMsg from MigrationDestinationManager at the destructor of MoveTimingHelper, can be concurrent with write accesses, e.g. MigrationDestinationManager::_setStateFail or MigrationDestinationManager::_setStateFailWarn

      An implementation idea is to create a copy of the _errMsg protected by the mutex when instantiating a MoveTimingHelper, and not passing an unprotected pointer.

      Attachments

        Activity

          People

            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: