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

Wrong memory copy in tgt_pages2shortio

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • None
    • 9223372036854775807

    Description

      tgt_pages2shortio() try to copy local pages memory to ptlrpc inline buf.

      The right logic should move page @ptr to offset + count, however, it does this logic wrongly, this doesn't cause any problem so far, because normally @lnb_page_offset is 0. when i tried to play with unaligned DIO, we could hit the problem.

      Attachments

        Activity

          [LU-13775] Wrong memory copy in tgt_pages2shortio
          pjones Peter Jones added a comment -

          Landed for 2.14

          pjones Peter Jones added a comment - Landed for 2.14

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39333/
          Subject: LU-13775 target: fix memory copy in tgt_pages2shortio()
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: b8faae3756e5ded135b392209125975807021691

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39333/ Subject: LU-13775 target: fix memory copy in tgt_pages2shortio() Project: fs/lustre-release Branch: master Current Patch Set: Commit: b8faae3756e5ded135b392209125975807021691

          Wang Shilong (wshilong@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39333
          Subject: LU-13775 target: fix memory copy in tgt_pages2shortio()
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 07ed9ef23edbfcd4a22d09381f50ce1134f32814

          gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39333 Subject: LU-13775 target: fix memory copy in tgt_pages2shortio() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 07ed9ef23edbfcd4a22d09381f50ce1134f32814

          People

            wshilong Wang Shilong (Inactive)
            wshilong Wang Shilong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: