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

struct hsm_user_request extent fields set to random values.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.15.0
    • Fix Version/s: Lustre 2.15.0
    • Labels:
      None
    • Environment:
      RHEL7.9 client.
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      While working on another unrelated patch sanity-hsm test 29c started to fail. The reason for this failure was llapi_hsm_user_request_alloc() allocates a struct hsm_user_request but never zeros the values. So the extent fields could have random values which where sent to the MDT and back to the copytool. If the extent field was larger then the size of the migrating file then the copytool would see this as a failure. The bug was hidden due to the linking flags which in the unrelated patch changed and exposed this problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simmonsja James A Simmons
              Reporter:
              simmonsja James A Simmons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: