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

Potential one off bug in lmv_fid2path

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0
    • Upstream, Lustre 2.11.0
    • 3
    • 9223372036854775807

    Description

      Potential off by two in lmv_fid2path()

      We want to concatonate join string one, a '/' character, string two and
      then a NUL terminator. The destination buffer holds ori_gf->gf_pathlen
      characters. The strlen() function returns the number of characters not
      counting the NUL terminator. So we should be adding two extra spaces,
      one for the foward slash and one for the NULL..

      Attachments

        Issue Links

          Activity

            [LU-9863] Potential one off bug in lmv_fid2path
            pjones Peter Jones added a comment -

            Does this affect 2.10.x?

            pjones Peter Jones added a comment - Does this affect 2.10.x?
            pjones Peter Jones added a comment -

            Landed for 2.11

            pjones Peter Jones added a comment - Landed for 2.11

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28477/
            Subject: LU-9863 lmv: Off by two in lmv_fid2path()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3f86915bdfe506ac9070f091b5a1c52ed134f5d2

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28477/ Subject: LU-9863 lmv: Off by two in lmv_fid2path() Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3f86915bdfe506ac9070f091b5a1c52ed134f5d2

            So someone has actually been impacted by this bug.

            simmonsja James A Simmons added a comment - So someone has actually been impacted by this bug.

            James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/28477
            Subject: LU-9863 lmv: Off by two in lmv_fid2path()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6d81128c753d610fd01412e153b7e9af667b3583

            gerrit Gerrit Updater added a comment - James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/28477 Subject: LU-9863 lmv: Off by two in lmv_fid2path() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6d81128c753d610fd01412e153b7e9af667b3583

            People

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

              Dates

                Created:
                Updated:
                Resolved: