summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-15 20:46:55 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-16 22:37:11 -0800
commitd4e337fe822354895334dbaded61f08206dcac25 (patch)
tree56a7325bd76b289ed96c0cd3ee5146b237d03728 /arch/xtensa
parentc2edb35ae342fedb5a39312c0fa676b74973887a (diff)
downloadlinux-d4e337fe822354895334dbaded61f08206dcac25.tar.bz2
xtensa: don't clear swapper_pg_dir in paging_init
swapper_pg_dir is located in the .bss, so it's zero-initialized anyway. With KASAN enabled paging_init will be called after KASAN initialization, it must not erase page directory entries set up for KASAN shadow map. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/mm/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/xtensa/mm/mmu.c b/arch/xtensa/mm/mmu.c
index 54c01e3ebf05..9d1ecfc53670 100644
--- a/arch/xtensa/mm/mmu.c
+++ b/arch/xtensa/mm/mmu.c
@@ -56,7 +56,6 @@ static void __init fixedrange_init(void)
void __init paging_init(void)
{
- memset(swapper_pg_dir, 0, PAGE_SIZE);
#ifdef CONFIG_HIGHMEM
fixedrange_init();
pkmap_page_table = init_pmd(PKMAP_BASE, LAST_PKMAP);