Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1847

Race condition in server_get_parameter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.2.5
    • 2.2.6
    • Core
    • None

    Description

      The return value of server_get_parameter function is retrieved without locking the server. In addition to this, the pointed to value is used instead of it being copied locally. This can cause reads of freed memory if server parameters are freed at runtime. The returned value can be a stale value as no locking is performed.

      The updating of server parameters in config_runtime.cc can cause a parameter to be temporarily lost while it is being updated. In other words, the update is not fully atomic.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.