Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.10.0
    • Lustre 2.9.0
    • 3
    • 9223372036854775807

    Description

      Patch http://review.whamcloud.com/21857 added this code in nodemap_fileset_seq_write():

      	OBD_ALLOC(nm_fileset, count);
      	if (nm_fileset == NULL)
      		RETURN(-ENOMEM);
      
      	if (copy_from_user(nm_fileset, buffer, count))
      		GOTO(out, rc = -EFAULT);
      

      'count' is the length of the string to write. So it is necessary to allocate count+1 for nm_fileset in order to add a '\0' after copy_from_user().

      Attachments

        Activity

          [LU-9289] Fix fileset string length issue
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26335/
          Subject: LU-9289 nodemap: fix fileset string length issue
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 7a32eff39c8b4bd17f173a62293374c5b4ff04e1

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26335/ Subject: LU-9289 nodemap: fix fileset string length issue Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7a32eff39c8b4bd17f173a62293374c5b4ff04e1
          pjones Peter Jones added a comment -

          Emoly

          Could you please review this patch?

          Thanks

          Peter

          pjones Peter Jones added a comment - Emoly Could you please review this patch? Thanks Peter

          Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/26335
          Subject: LU-9289 nodemap: fix fileset string length issue
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 73071dde8c826897bc106a418821417f770dac99

          gerrit Gerrit Updater added a comment - Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/26335 Subject: LU-9289 nodemap: fix fileset string length issue Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 73071dde8c826897bc106a418821417f770dac99

          People

            emoly.liu Emoly Liu
            sbuisson Sebastien Buisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: