]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/page_table_check: Pass mm_struct to pxx_user_accessible_page()
authorTobias Huschle <huschle@linux.ibm.com>
Fri, 6 Mar 2026 16:16:30 +0000 (17:16 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 12 Mar 2026 23:07:47 +0000 (00:07 +0100)
commitcf8771ca4cdbd78232338652b98a7c5c9e0a6184
tree985e552b95a6f60b4439f7ce5f371756b31a706a
parent11439c4635edd669ae435eec308f4ab8a0804808
mm/page_table_check: Pass mm_struct to pxx_user_accessible_page()

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@linux.ibm.com: rephrased commit message, removed braces]

Acked-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> #powerpc
Signed-off-by: Tobias Huschle <huschle@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/r/ca77f3489453c2fe01b25e50e53b778929e0dfc5.1772812343.git.agordeev@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/arm64/include/asm/pgtable.h
arch/powerpc/include/asm/book3s/32/pgtable.h
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/nohash/pgtable.h
arch/powerpc/include/asm/pgtable.h
arch/riscv/include/asm/pgtable.h
arch/x86/include/asm/pgtable.h
mm/page_table_check.c