Fix potential data race condition in fail_fs.c

XMLWordPrintableJSON

    • Storage Engines
    • Megabat - 2024-05-14
    • 3

      Data race condition

      The value of the shared data will be determined by the interleaving of thread execution. Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition
      /ext/test/fail_fs/fail_fs.c:244: MISSING_LOCK 138871 Accessing "fail_fs->fail_enabled" without holding lock "FAIL_FILE_SYSTEM.lock". Elsewhere, "FAIL_FILE_SYSTEM.fail_enabled" is written to with "FAIL_FILE_SYSTEM.lock" held 4 out of 4 times.

            Assignee:
            Jie Chen
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: