Re: [PATCH] mm, hugetlb: fix resv_huge_pages underflow on UFFDIO_COPY

From: Peter Xu
Date: Fri May 14 2021 - 15:16:45 EST


On Fri, May 14, 2021 at 10:56:36AM -0700, Mike Kravetz wrote:
> Since this is a shared mapping, can we not have a 'regular' mapping to
> the same range that is uffd registered? And, that regular mappings could
> fault and race with the uffd copy code?

Yeah we can.. Please ignore the paragraph in the parenthesis. Sorry.

--
Peter Xu