diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-15 20:46:55 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-16 22:37:11 -0800 |
commit | d4e337fe822354895334dbaded61f08206dcac25 (patch) | |
tree | 56a7325bd76b289ed96c0cd3ee5146b237d03728 /arch/xtensa | |
parent | c2edb35ae342fedb5a39312c0fa676b74973887a (diff) | |
download | linux-d4e337fe822354895334dbaded61f08206dcac25.tar.gz linux-d4e337fe822354895334dbaded61f08206dcac25.tar.bz2 linux-d4e337fe822354895334dbaded61f08206dcac25.zip |
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.c | 1 |
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); |