OSDN Git Service

powerpc/32: Add support of KASAN_VMALLOC
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 Jan 2020 17:54:00 +0000 (17:54 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jan 2020 11:37:33 +0000 (22:37 +1100)
commit3d4247fcc938d0ab5cf6fdb752dae07fdeab9736
tree7f4743175d8918073dde336c10cd68b12afe7507
parent0f9aee0cb9da7db7d96f63cfa2dc5e4f1bffeb87
powerpc/32: Add support of KASAN_VMALLOC

Add support of KASAN_VMALLOC on PPC32.

To allow this, the early shadow covering the VMALLOC space
need to be removed once high_memory var is set and before
freeing memblock.

And the VMALLOC area need to be aligned such that boundaries
are covered by a full shadow page.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/031dec5487bde9b2181c8b3c9800e1879cf98c1a.1579024426.git.christophe.leroy@c-s.fr
arch/powerpc/Kconfig
arch/powerpc/include/asm/book3s/32/pgtable.h
arch/powerpc/include/asm/kasan.h
arch/powerpc/include/asm/nohash/32/pgtable.h
arch/powerpc/mm/kasan/kasan_init_32.c
arch/powerpc/mm/mem.c