2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/s390/mm
Ryan Roberts 02410ac72a mm: hugetlb: Add huge page size param to huge_ptep_get_and_clear()
In order to fix a bug, arm64 needs to be told the size of the huge page
for which the huge_pte is being cleared in huge_ptep_get_and_clear().
Provide for this by adding an `unsigned long sz` parameter to the
function. This follows the same pattern as huge_pte_clear() and
set_huge_pte_at().

This commit makes the required interface modifications to the core mm as
well as all arches that implement this function (arm64, loongarch, mips,
parisc, powerpc, riscv, s390, sparc). The actual arm64 bug will be fixed
in a separate commit.

Cc: stable@vger.kernel.org
Fixes: 66b3923a1a ("arm64: hugetlb: add support for PTE contiguous bit")
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> # riscv
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> # s390
Link: https://lore.kernel.org/r/20250226120656.2400136-2-ryan.roberts@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
2025-02-27 17:40:57 +00:00
..
cmm.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
dump_pagetables.c s390 updates for 6.12 merge window 2024-09-21 09:02:54 -07:00
extable.c s390/uaccess: Replace EX_TABLE_UA_LOAD_MEM exception handling 2025-01-26 17:24:06 +01:00
extmem.c s390/extmem: Convert to use flag output macros 2024-11-13 14:31:33 +01:00
fault.c more s390 updates for 6.13 merge window 2024-11-29 10:40:52 -08:00
gmap.c KVM: s390: remove the last user of page->index 2025-01-31 12:03:53 +01:00
hugetlbpage.c mm: hugetlb: Add huge page size param to huge_ptep_get_and_clear() 2025-02-27 17:40:57 +00:00
init.c s390/mm: Simplify noexec page protection handling 2024-12-17 12:46:13 +01:00
maccess.c s390: Remove __bootdata annotations from declarations 2024-12-15 16:19:04 +01:00
Makefile s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support 2024-03-13 09:23:49 +01:00
mmap.c s390/mm: Simplify noexec page protection handling 2024-12-17 12:46:13 +01:00
page-states.c s390/cmma: rework no-dat handling 2023-11-05 22:34:58 +01:00
pageattr.c s390/mm: Simplify noexec page protection handling 2024-12-17 12:46:13 +01:00
pfault.c s390/pfault: use consistent comment style 2023-07-29 14:57:18 +02:00
pgalloc.c KVM: s390: stop using lists to keep track of used dat tables 2025-01-31 12:03:53 +01:00
pgtable.c s390/mm: Simplify noexec page protection handling 2024-12-17 12:46:13 +01:00
physaddr.c s390/mm: provide simple ARCH_HAS_DEBUG_VIRTUAL support 2024-03-13 09:23:49 +01:00
vmem.c s390/vmem: Fix null-pointer-arithmetic warning in vmem_map_init() 2025-01-28 11:28:48 +01:00