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

mdd_unlink() may pass a NULL object to mdd_write_unlock()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.7.0
    • 3
    • 15053

    Description

      In mdd_unlink() the cobj may be NULL (when called from rm_entry and maybe in other cases). When this is so if mdd_update_time() fails then we call mdd_write_unlock(env, mdd_cobj) with a NULL mdd_cobj.

              la->la_valid = LA_CTIME | LA_MTIME;
              rc = mdd_update_time(env, mdd_pobj, pattr, la, handle);
              if (rc)
                      GOTO(cleanup, rc);
      
              /* Enough for only unlink the entry */
              if (unlikely(mdd_cobj == NULL))
                      GOTO(stop, rc);
      
      ...
      cleanup:
              mdd_write_unlock(env, mdd_cobj);
      ...
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: