lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 22 Jan 2020 21:21:44 +0000 From: Mark Brown <broonie@...nel.org> To: Catalin Marinas <catalin.marinas@....com>, Will Deacon <will@...nel.org> Cc: Alexander Viro <viro@...iv.linux.org.uk>, Paul Elliott <paul.elliott@....com>, Peter Zijlstra <peterz@...radead.org>, Yu-cheng Yu <yu-cheng.yu@...el.com>, Amit Kachhap <amit.kachhap@....com>, Vincenzo Frascino <vincenzo.frascino@....com>, Marc Zyngier <maz@...nel.org>, Eugene Syromiatnikov <esyr@...hat.com>, Szabolcs Nagy <szabolcs.nagy@....com>, "H . J . Lu " <hjl.tools@...il.com>, Andrew Jones <drjones@...hat.com>, Kees Cook <keescook@...omium.org>, Arnd Bergmann <arnd@...db.de>, Jann Horn <jannh@...gle.com>, Richard Henderson <richard.henderson@...aro.org>, Kristina Martšenko <kristina.martsenko@....com>, Thomas Gleixner <tglx@...utronix.de>, Florian Weimer <fweimer@...hat.com>, Sudakshina Das <sudi.das@....com>, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org, linux-fsdevel@...r.kernel.org, Mark Brown <broonie@...nel.org> Subject: [PATCH v5 12/12] 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@...nel.org> Reviewed-by: Catalin Marinas <catalin.marinas@....com> --- arch/arm64/mm/dump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 0a920b538a89..880bd5160dc2 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -143,6 +143,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), -- 2.20.1
Powered by blists - more mailing lists