]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: mm: Display guarded pages in ptdump
authorMark Brown <broonie@kernel.org>
Mon, 16 Mar 2020 16:50:53 +0000 (16:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Mar 2020 17:19:50 +0000 (17:19 +0000)
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 <broonie@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dump.c

index 860c00ec8bd32a7307ef2326df25364f52c609c9..78163b7a7dde4271a0dc670c5d4bd5abe5761e1d 100644 (file)
@@ -145,6 +145,11 @@ static const struct prot_bits pte_bits[] = {
                .val    = PTE_UXN,
                .set    = "UXN",
                .clear  = "   ",
+       }, {
+               .mask   = PTE_GP,
+               .val    = PTE_GP,
+               .set    = "GP",
+               .clear  = "  ",
        }, {
                .mask   = PTE_ATTRINDX_MASK,
                .val    = PTE_ATTRINDX(MT_DEVICE_nGnRnE),