Re: [PATCH v2 00/15] mm: COW fixes part 2: reliable GUP pins of anonymous pages

From: Jason Gunthorpe
Date: Fri Mar 18 2022 - 19:36:43 EST


On Tue, Mar 15, 2022 at 11:47:26AM +0100, David Hildenbrand wrote:

> This series fixes memory corruptions when a GUP pin (FOLL_PIN) was taken
> on an anonymous page and COW logic fails to detect exclusivity of the page
> to then replacing the anonymous page by a copy in the page table: The
> GUP pin lost synchronicity with the pages mapped into the page tables.

I don't know much about most of this part of the mm, but nothing here
gave me serious pause. We are trying to run this series in our RDMA
testing. Will let you know.

Thanks,
Jason