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

potentially unsace spec check in mdd_object_make_hint()

    XMLWordPrintable

Details

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

    Description

      in mdd_object_make_hint we have this code:

              if (S_ISDIR(attr->la_mode) &&
                  unlikely(spec != NULL && spec->sp_cr_flags & MDS_OPEN_HAS_EA)) {
                      hint->dah_eadata = spec->u.sp_ea.eadata;
                      hint->dah_eadata_len = spec->u.sp_ea.eadatalen;
              } else {
                      hint->dah_eadata = NULL;
                      hint->dah_eadata_len = 0;
                      if (spec->sp_cr_flags & MDS_OPEN_APPEND) {
      

      where we assume spec could be NULL but a bit later we also assume it cannot.

      probably need to check in both or neither cases?

      Attachments

        Activity

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: