Re: [PATCH v2 1/4] mm/page_table_check: Pass mm_struct to pxx_user_accessible_page()
From: IBM
Date: Tue Mar 10 2026 - 23:02:47 EST
Alexander Gordeev <agordeev@xxxxxxxxxxxxx> writes:
> 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.
>
> [agordeev@xxxxxxxxxxxxx: rephrased commit message, removed braces]
>
> Reviewed-by: Gerald Schaefer <gerald.schaefer@xxxxxxxxxxxxx>
> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Tobias Huschle <huschle@xxxxxxxxxxxxx>
> Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>
> ---
> arch/arm64/include/asm/pgtable.h | 6 +++---
> arch/powerpc/include/asm/book3s/32/pgtable.h | 2 +-
> arch/powerpc/include/asm/book3s/64/pgtable.h | 10 +++++-----
> arch/powerpc/include/asm/nohash/pgtable.h | 2 +-
> arch/powerpc/include/asm/pgtable.h | 4 ++--
straightforward change for adding mm struct param in the page table
check calls. Also verified building different powerpc configs using ci.
The changes looks good to me. Please feel free to add:
Reviewed-by Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx> #powerpc