summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-03-16 16:50:53 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2020-03-16 17:19:50 +0000
commitde48bb369242fe17022fab3a2addc9c6dacad43f (patch)
tree8d771d514f89115c9ba4be51062df313c249f084 /arch/arm64/mm
parent30685d789c48f27f97f6ecde6185b606a6c7abf6 (diff)
downloadlinux-de48bb369242fe17022fab3a2addc9c6dacad43f.tar.gz
linux-de48bb369242fe17022fab3a2addc9c6dacad43f.tar.bz2
linux-de48bb369242fe17022fab3a2addc9c6dacad43f.zip
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 <broonie@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/dump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
index 860c00ec8bd3..78163b7a7dde 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",