arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow.patch removed from -mm tree
The patch titled
Subject: arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow
has been removed from the -mm tree. Its filename was
arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Will Deacon <[email protected]>
Subject: arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow
The kasan shadow is currently mapped using vmemmap_populate() since that provides a semi-convenient way to map pages into init_top_pgt. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires zeroed shadow memory.
Add kasan_populate_shadow() interface and use it instead of vmemmap_populate(). Besides, this allows us to take advantage of gigantic pages and use them to populate the shadow, which should save us some memory wasted on page tables and reduce TLB pressure.
---
arch/arm64/Kconfig | 2 arch/arm64/mm/kasan_init.c | 130 +++++++++++++++++++++-------------- 2 files changed, 81 insertions(+), 51 deletions(-)
arch/arm64/Kconfig renamed from arch/arm64/Kconfig~arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow +1 -1
@@ -85,7 +85,7 @@ config ARM64 select HAVE_ARCH_BITREVERSE select HAVE_ARCH_HUGE_VMAP select HAVE_ARCH_JUMP_LABEL - select HAVE_ARCH_KASAN if SPARSEMEM_VMEMMAP && !(ARM64_16K_PAGES && ARM64_VA_BITS_48) + select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48) select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
arch/arm64/mm/kasan_init.c renamed from arch/arm64/mm/kasan_init.c~arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow +80 -50
199 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
scripts-decodecode-fix-decoding-for-aarch64-arm64-instructions.patch