[PATCH V12 2/5] mm: userfaultfd: Add pgtable_supports_uffd_wp()

Conor Dooley conor at kernel.org
Mon Sep 15 10:05:28 PDT 2025


On Mon, Sep 15, 2025 at 06:13:40PM +0800, Chunyan Zhang wrote:
> Some platforms can customize the PTE/PMD entry uffd-wp bit making
> it unavailable even if the architecture provides the resource.
> This patch adds a macro API that allows architectures to define their
> specific implementations to check if the uffd-wp bit is available
> on which device the kernel is running.
> 
> Signed-off-by: Chunyan Zhang <zhangchunyan at iscas.ac.cn>

According to patchwork CI for riscv, this doesn't build for 32-bit
defconfigs or the no-mmu defconfigs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20250915/08928294/attachment.sig>


More information about the linux-riscv mailing list