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

iovec created with iov_iter_get_pages_alloc must be freed with kvfree

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Commit 98883bd3e2cc48a3a5674ce140ad74bece37df05 added support for iov_iter_get_pages_alloc for newer kernels, instead of ll_get_user_pages. However the iovec was still freed within ll_free_user_pages, using OBD_FREE_LARGE. Use kvfree instead (like in the linux kernel).

      Attachments

        Issue Links

          Activity

            [LU-7052] iovec created with iov_iter_get_pages_alloc must be freed with kvfree
            pjones Peter Jones added a comment -

            Hope I am understanding correctly that it is this ticket that can be closed

            pjones Peter Jones added a comment - Hope I am understanding correctly that it is this ticket that can be closed

            Thanks James. So that patch is not needed for head of tree then.

            That issue can be closed.

            fzago Frank Zago (Inactive) added a comment - Thanks James. So that patch is not needed for head of tree then. That issue can be closed.

            OBD_FREE thanks to LU-6587 handles freeing both vmalloc and kmalloc memory. It test if the memory in question was created with vmalloc. You will noticed OBD_FREE_LARGE is now a place holder for OBD_FREE.

            simmonsja James A Simmons added a comment - OBD_FREE thanks to LU-6587 handles freeing both vmalloc and kmalloc memory. It test if the memory in question was created with vmalloc. You will noticed OBD_FREE_LARGE is now a place holder for OBD_FREE.

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/16111
            Subject: LU-7052 llite: free iovec with kvfree
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 91b253a4385f2884bee5abad383555c4b33a3222

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/16111 Subject: LU-7052 llite: free iovec with kvfree Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 91b253a4385f2884bee5abad383555c4b33a3222

            People

              wc-triage WC Triage
              fzago Frank Zago (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: