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

mdd_object_type() uses need audit

    XMLWordPrintable

Details

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

    Description

      mdd_object_type() calls lu_object_attr() and hence it asserts that the object exists. We need to audit the callers to ensure that a non-existing object is not passed. For example in mdd_migrate_entries() we have:

                      child = mdd_object_find(env, mdd, &ent->lde_fid);
                      if (IS_ERR(child))
      			GOTO(out, rc = PTR_ERR(child));
      
                      mdd_write_lock(env, child, MOR_SRC_CHILD);
                      is_dir = S_ISDIR(mdd_object_type(child));
      

      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: