Re: [PATCH RFC 0/5] mm: GUP dirty + ->release_folio() fixes
From: Pedro Falcato
Date: Fri Nov 27 2026 - 08:30:37 EST
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
> >
> > On 11/25/26 5:19 AM, David Hildenbrand (Arm) wrote:
> >> On 11/25/26 11:05, Christoph Hellwig wrote:
> >>>
> >>> We need to, if not for this series then for all the other outstanding
> >>> issues with GUP writes.
> >>
> >> Cool, and I agree (that's why I placed it at 1).
> >>
> >> But who is "we"? Because I recall that "we" wanted to do that a while ago.
> >>
> >> (I won't be "we" ;) Pedro, can you take a look? I'm afraid the fuse thing might
> >> be the harder nut to crack)
> >
> > 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!
--
Pedro