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

bogus memcpy in lod_layout_repeat_comp()

    XMLWordPrintable

Details

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

    Description

      In lod_layout_repeat_comp() (lustre/lod/lod_object.c:4811):

          if (new_comp->llc_ostlist.op_array) {
              __u32 *op_array = NULL;
              OBD_ALLOC(op_array, new_comp->llc_ostlist.op_size);
              if (!op_array)
                  GOTO(out, rc = -ENOMEM);
              memcpy(op_array, &new_comp->llc_ostlist.op_array, // trim & is correct
                     new_comp->llc_ostlist.op_size);
              new_comp->llc_ostlist.op_array = op_array;
          } 

      It seems triggered only when an SEL component with an explicit OST list (lfs setstripe -o) exhausts its extension space and is repeated into a new component.

       Found by code inspection.

      Attachments

        Activity

          People

            skoyama Sohei Koyama
            skoyama Sohei Koyama
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: