Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11904

jobid cache cleanup is not safe

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      jobid_cache_fini uses the jobid_hash_lock to protect the jobid_hash pointer:

      spin_lock(&jobid_hash_lock);
      tmp_hash = jobid_hash;
      jobid_hash = NULL;
      spin_unlock(&jobid_hash_lock);

      But other places in the code use that pointer without holding the jobid_hash_lock (notably jobid_get_from_cache()).

      This can cause unexpected behavior in those locations during unmount.

      No plan to do a patch for this ATM.

      Attachments

        Activity

          People

            wc-triage WC Triage
            pfarrell Patrick Farrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: