Re: [PATCH 1/4] mm/page_table_check: Pass mm_struct to pxx_user_accessible_page()

From: Andrew Morton

Date: Mon Feb 23 2026 - 13:18:14 EST


On Mon, 23 Feb 2026 12:53:13 +0100 Alexander Gordeev <agordeev@xxxxxxxxxxxxx> wrote:

> From: Tobias Huschle <huschle@xxxxxxxxxxxxx>
>
> Unlike other architectures, s390 does not have means to
> distinguish kernel vs user page table entries - neither
> an entry itself, nor the address could be used for that.
> It is only the mm_struct that indicates whether an entry
> in question is mapped to a user space. So pass mm_struct
> to pxx_user_accessible_page() callbacks.
>
> ...
>
> arch/arm64/include/asm/pgtable.h | 6 +++---
> arch/riscv/include/asm/pgtable.h | 6 +++---
> arch/x86/include/asm/pgtable.h | 6 +++---
> mm/page_table_check.c | 15 ++++++---------
> 4 files changed, 15 insertions(+), 18 deletions(-)

Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

I assume this can go into the s390 tree?