OSDN Git Service

powerpc/32: Force KASAN_VMALLOC for modules
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 Jan 2020 17:54:02 +0000 (17:54 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jan 2020 11:37:41 +0000 (22:37 +1100)
commit47febbeeec440eec213960e3d25c57a8312d5340
treecee805de32b544e2dfaa9807607119f8bbca0908
parentaf1725d2493dcad4eeb7e63141678181fcd8a2ff
powerpc/32: Force KASAN_VMALLOC for modules

Unloading/Reloading of modules seems to fail with KASAN_VMALLOC
but works properly with it.

Force selection of KASAN_VMALLOC when MODULES are selected, and
drop module_alloc() which was dedicated to KASAN for modules.

Reported-by: <erhard_f@mailbox.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=205283
Link: https://lore.kernel.org/r/f909da11aecb59ab7f32ba01fae6f356eaa4d7bc.1579024426.git.christophe.leroy@c-s.fr
arch/powerpc/mm/kasan/kasan_init_32.c
arch/powerpc/platforms/Kconfig.cputype