CurrentOp shouldn't read OpCtx decorations

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2018-10-22, Repl 2018-11-05, Repl 2018-11-19
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The currentOp command loops over all Clients, and for any that have an associated OpCtx and OperationContextSession it reads the ReadConcernArgs decoration off the OpCtx. This isn't valid as there's no synchronization around writing to the decoration other than that it can only happen from the thread running the OpCtx.
      This means that there's a data race when reading the ReadConcernArgs decoration as it could be modified by the thread running the OpCtx while it is being read by currentOp.

            Assignee:
            Vesselina Ratcheva (Inactive)
            Reporter:
            Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: