Re: [PATCH 08/10] mm/hugetlb: tolerate UFFD_WP markers outside uffd-wp VMAs
From: Lance Yang
Date: Sun Oct 18 2026 - 04:08:18 EST
On Thu, Oct 15, 2026 at 06:07:14PM +0200, David Hildenbrand (Arm) wrote:
>UFFD PTE bit handling is a bit like swiss cheese, in particular with
>recently added RWP mode. Having uffd-wp markers outside uffd-wp VMAs
>already confused this code in the past and resulted in uffd-pte bits
>confusing other code later.
>
>Let's play safe and just ignore these markers in hugetlb_no_page(), not
>silently propagating the uffd-wp PTE bit.
>
>Fixes: 2d427bb01639 ("mm/userfaultfd: add RWP fault delivery and expose UFFDIO_REGISTER_MODE_RWP")
>Cc: stable@xxxxxxxxxxxxxxx
>Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
>---
LGTM!
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>