From: Mark Brown Date: Mon, 16 Mar 2020 16:50:53 +0000 (+0000) Subject: arm64: mm: Display guarded pages in ptdump X-Git-Tag: v5.10.7~2348^2~9^2~16^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de48bb369242fe17022fab3a2addc9c6dacad43f;p=platform%2Fkernel%2Flinux-rpi.git arm64: mm: Display guarded pages in ptdump v8.5-BTI introduces the GP field in stage 1 translation tables which indicates that blocks and pages with it set are guarded pages for which branch target identification checks should be performed. Decode this when dumping the page tables to aid debugging. Signed-off-by: Mark Brown Reviewed-by: Kees Cook Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 860c00e..78163b7 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -146,6 +146,11 @@ static const struct prot_bits pte_bits[] = { .set = "UXN", .clear = " ", }, { + .mask = PTE_GP, + .val = PTE_GP, + .set = "GP", + .clear = " ", + }, { .mask = PTE_ATTRINDX_MASK, .val = PTE_ATTRINDX(MT_DEVICE_nGnRnE), .set = "DEVICE/nGnRnE",