Skip to contentSkip to conversation

arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

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.

Cc Andrey Ryabinin <[email protected]>
Cc Steven Sistare <[email protected]>
Cc Daniel Jordan <[email protected]>
Cc Bob Picco <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Ard Biesheuvel <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc David S. Miller <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Thomas Gleixner <[email protected]>

---

 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
diff -puN arch/arm64/Kconfig~arm64-mm-kasan-dont-use-vmemmap_populate-to-initialize-shadow arch/arm64/Kconfig
@@ -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