Re: [PATCH 14/24] alpha: add ARCH_SUPPORTS_PAGE_TABLE_CHECK support
From: Magnus Lindholm
Date: Tue Sep 01 2026 - 18:48:58 EST
Hi Matt,
On Tue, Sep 1, 2026 at 5:51 PM Matt Turner <mattst88@xxxxxxxxx> wrote:
>
> Add the page table check helpers needed for CONFIG_PAGE_TABLE_CHECK
> and select ARCH_SUPPORTS_PAGE_TABLE_CHECK in Kconfig.
>
> Alpha does not support huge pages, so pmd_user_accessible_page() and
> pud_user_accessible_page() always return false. pte_user_accessible_page()
> checks for present PTEs with user read access (_PAGE_URE).
>
This patch does not build with CONFIG_PAGE_TABLE_CHECK enabled on
v7.3-rc1.
Commit cf8771ca4cdb ("mm/page_table_check: Pass mm_struct to
pxx_user_accessible_page()") changed these helpers from:
pte_user_accessible_page(pte, addr)
to:
pte_user_accessible_page(mm, addr, pte)
The Alpha definitions added here still use the old two-argument API.
The same applies to pmd_user_accessible_page() and
pud_user_accessible_page().
Could you update the helpers to use the new three-argument signatures?
Regards,
Magnus