Re: [PATCH v1 0/2] mm/userfaultfd: fix and cleanup for migration entries with uffd-wp

From: Peter Xu
Date: Wed Apr 05 2023 - 11:21:34 EST


On Wed, Apr 05, 2023 at 04:25:33PM +0200, David Hildenbrand wrote:
> One fix (I have a simple reproducer but it's too long to paste it into
> the commit)

I hope the recent rework of the unit test can help having more of these
unit tests into the kselftests directly.

Currently it's still ugly even after the rework patchset - we'll need to
reference e.g. area_dst in unit tests for the allocated memory region (with
specified type of either MEM_ANON, MEM_SHMEM, ...), but there's plan to
make it even better.

Thanks for fixing those already.

--
Peter Xu