Skip to content

Commit be4c378

Browse files
committed
arm64/ptdump: Test PMD_TYPE_MASK for block mapping
JIRA: https://issues.redhat.com/browse/RHEL-101059 commit f5e9381 Author: Anshuman Khandual <anshuman.khandual@arm.com> Date: Fri, 21 Feb 2025 10:12:21 +0530 Test given page table entries against PMD_TYPE_SECT on PMD_TYPE_MASK mask bits for identifying block mappings in stage 1 page tables. Cc: Will Deacon <will@kernel.org> Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Link: https://lore.kernel.org/r/20250221044227.1145393-3-anshuman.khandual@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent 97e2058 commit be4c378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/mm/ptdump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ static const struct ptdump_prot_bits pte_bits[] = {
8080
.set = "CON",
8181
.clear = " ",
8282
}, {
83-
.mask = PTE_TABLE_BIT | PTE_VALID,
84-
.val = PTE_VALID,
83+
.mask = PMD_TYPE_MASK,
84+
.val = PMD_TYPE_SECT,
8585
.set = "BLK",
8686
.clear = " ",
8787
}, {

0 commit comments

Comments
 (0)