Re: [PATCH RFC 0/5] mm: GUP dirty + ->release_folio() fixes

From: Lorenzo Stoakes (ARM)

Date: Fri Nov 27 2026 - 08:34:19 EST


On Fri, Nov 27, 2026 at 02:31:12PM +0100, David Hildenbrand (Arm) wrote:
> On 11/27/26 14:30, Pedro Falcato wrote:
> > On Thu, Nov 26, 2026 at 07:43:37AM +0100, David Hildenbrand (Arm) wrote:
> >> On 11/26/26 03:24, Tal Zussman wrote:
> >>> +CC Miklos
> >>>
> >>>
> >>> Coincidentally, I sent out a patch to convert fuse_copy_fill() to use
> >>> iov_iter_extract_pages() a few days ago in order to remove its usage of
> >>> set_page_dirty_lock() and address a different race. I think it should
> >>> address the fuse side of this issue as well.
> >>>
> >>> https://lore.kernel.org/all/20261120-fuse-copy-fill-pin-v1-1-72a0d888f140@xxxxxxxxxxxx/
> >
> > Awesome!
> >
> >>
> >> Oh, nice! I was assuming the usual "we use put_page() on some random hidden path
> >> or core code" would make that harder.
> >
> > Right.
> >
> >> I recall that's the reason why vmsplice
> >> still uses FOLL_GET years after we discussed that it should be using
> >> FOLL_PIN|FOLL_LONGTERM.
> >
> > You almost gave me a heart attack, before I remembered these vmspliced pages
> > aren't writable :) That's a battle for another day!
>
> Haha, sorry :)

Actually, because they are VM_MAYWRITE and... nah kidding ;)

--
Cheers, Lorenzo