Re: [PATCH] mm/userfaultfd: reject DAX mappings

From: David Hildenbrand (Arm)

Date: Thu Nov 19 2026 - 07:23:50 EST


On 11/19/26 13:11, Gupta, Pankaj wrote:
>
>> UFFD_FEATURE_WP_ASYNC made DAX mappings eligible for userfaultfd
>> write-protection, but the DAX fault paths have never fully supported it.
>>
>> DAX faults use vmf_insert_mixed() and vmf_insert_mixed_mkwrite(), which
>
> Should we use vmf_insert_page_mkwrite instead?

vmf_insert_mixed_mkwrite() is getting removed concurrently, so I think it
doesn't really matter in the end in this commit.

Thanks for the review!

--
Cheers,

David