Thread (2 messages) flat view 2 messages, 2 authors, 2018-02-14
DORMANTno replies

[PATCH] arm64: proc: Set PTE_NG for table entries to avoid traversing them twice

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2018-02-14 18:55:30

On Tue, Feb 13, 2018 at 01:14:09PM +0000, Will Deacon wrote:
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 <redacted>
Queued for -rc2. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help