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

struct hsm_user_request extent fields set to random values.

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.15.0
    • None
    • RHEL7.9 client.
    • 3
    • 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

            [LU-14732] struct hsm_user_request extent fields set to random values.

            Patch has landed.

            simmonsja James A Simmons added a comment - Patch has landed.

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43893/
            Subject: LU-14732 utils: ensure hsm_user_request extent fields are zero
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 0cdd427e2f043cf667c9a921b48ce3b99a5f81fc

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43893/ Subject: LU-14732 utils: ensure hsm_user_request extent fields are zero Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0cdd427e2f043cf667c9a921b48ce3b99a5f81fc

            People

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

              Dates

                Created:
                Updated:
                Resolved: