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

incorrect use of bvec_iter_page in dio_complete_routine

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      bvec_iter_page is expecting a biovecs list as a first argument, not a biovec. That works as long as there is only one biovec in the bio. If there is more than one, then invalid memory is dereferences since bvl is a single vector, not a list. This only affect 3.14+ kernels, where HAVE_BVEC_ITER is true. Don't use bvec_iter_page, but create the right macro to simply return the vector's bv_page. Bug introduced in commit 833b670a.

      Attachments

        Activity

          [LU-6995] incorrect use of bvec_iter_page in dio_complete_routine
          pjones Peter Jones added a comment -

          Landed for 2.8

          pjones Peter Jones added a comment - Landed for 2.8

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15967/
          Subject: LU-6995 osd: fix invalid use of bvec_iter_page
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: decbd1c0bfbc2d6c9e43c6fb880d7cbfe41b9143

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15967/ Subject: LU-6995 osd: fix invalid use of bvec_iter_page Project: fs/lustre-release Branch: master Current Patch Set: Commit: decbd1c0bfbc2d6c9e43c6fb880d7cbfe41b9143

          Hi Bob,
          Can you have a look at the patch?
          Thanks.
          Joe

          jgmitter Joseph Gmitter (Inactive) added a comment - Hi Bob, Can you have a look at the patch? Thanks. Joe

          No problem, James.

          fzago Frank Zago (Inactive) added a comment - No problem, James.

          frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/15967
          Subject: LU-6995 osd: fix invalid use of bvec_iter_page
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 6a57311a84ae1046588d6be2d2c3556dfc16f4d2

          gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/15967 Subject: LU-6995 osd: fix invalid use of bvec_iter_page Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6a57311a84ae1046588d6be2d2c3556dfc16f4d2

          Yeah I have know about this bug for a while but never got around to fixing since I was busy with other task Thanks for picking this up.

          simmonsja James A Simmons added a comment - Yeah I have know about this bug for a while but never got around to fixing since I was busy with other task Thanks for picking this up.

          People

            bogl Bob Glossman (Inactive)
            fzago Frank Zago (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: