Messages in this thread | | | Date | Mon, 17 Apr 2023 13:15:15 +0200 | Subject | Re: [PATCH v3 7/7] mm/gup: remove vmas array from internal GUP functions | From | David Hildenbrand <> |
| |
On 15.04.23 14:09, Lorenzo Stoakes wrote: > Now we have eliminated all callers to GUP APIs which use the vmas > parameter, eliminate it altogether. > > This eliminates a class of bugs where vmas might have been kept around > longer than the mmap_lock and thus we need not be concerned about locks > being dropped during this operation leaving behind dangling pointers. > > This simplifies the GUP API and makes it considerably clearer as to its > purpose - follow flags are applied and if pinning, an array of pages is > returned. > > Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com> > ---
Acked-by: David Hildenbrand <david@redhat.com>
-- Thanks,
David / dhildenb
| |