Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-15877

Race condition in OSK startup mutex

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 0.4.12
    • Component/s: Applications
    • Labels:
      None

      Description

      OSK uses the "osk" mutex to ensure it is only started once. However the mutex is not created atomically, so it is possible for two instances to fail OpenMutex and reach the CreateMutex code path.
      Instead, a single CreateMutex call should be used and its last error code checked to see whether the mutex previously existed.

        Attachments

          Activity

            People

            • Assignee:
              hbelusca hbelusca
              Reporter:
              ThFabba ThFabba
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: