]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96421a19555b3b536991cd6971b575c52a17907d
tree7f4743175d8918073dde336c10cd68b12afe7507
parentec0e7323174f5e6fdd360e9b8c002b932731d1ab
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