summaryrefslogtreecommitdiff
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-16 07:46:55 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-17 09:37:11 +0300
commitd4e337fe822354895334dbaded61f08206dcac25 (patch)
tree56a7325bd76b289ed96c0cd3ee5146b237d03728 /arch/xtensa
parentc2edb35ae342fedb5a39312c0fa676b74973887a (diff)
downloadlinux-d4e337fe822354895334dbaded61f08206dcac25.tar.xz
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);