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 <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Mark Rutland <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
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)