Skip to content

Commit f5e9381

Browse files
Anshuman Khandualctmarinas
authored andcommitted
arm64/ptdump: Test PMD_TYPE_MASK for block mapping
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>
1 parent 0b626b2 commit f5e9381

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)