summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-02-13 16:14:09 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2018-02-14 21:58:20 +0300
commit2ce77f6d8a9ae9ce6d80397d88bdceb84a2004cd (patch)
tree5012c64db317e922cd1c6eaa26f481d9e8f2c479 /arch/arm64/include/asm/mmu_context.h
parent16e574d762ac5512eb922ac0ac5eed360b7db9d8 (diff)
downloadlinux-2ce77f6d8a9ae9ce6d80397d88bdceb84a2004cd.tar.xz
arm64: proc: Set PTE_NG for table entries to avoid traversing them twice
When KASAN is enabled, the swapper page table contains many identical mappings of the zero page, which can lead to a stall during boot whilst the G -> nG code continually walks the same page table entries looking for global mappings. This patch sets the nG bit (bit 11, which is IGNORED) in table entries after processing the subtree so we can easily skip them if we see them a second time. Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/mmu_context.h')
0 files changed, 0 insertions, 0 deletions