Re: [PATCH] powerpc/kasan: Fix KASAN_SHADOW_START on BOOK3S_32

2020-08-18 Thread Michael Ellerman
On Wed, 5 Aug 2020 15:27:29 + (UTC), Christophe Leroy wrote: > On BOOK3S_32, when we have modules and strict kernel RWX, modules > are not in vmalloc space but in a dedicated segment that is > below PAGE_OFFSET. > > So KASAN_SHADOW_START must take it into account. > > MODULES_VADDR can't be

[PATCH] powerpc/kasan: Fix KASAN_SHADOW_START on BOOK3S_32

2020-08-05 Thread Christophe Leroy
On BOOK3S_32, when we have modules and strict kernel RWX, modules are not in vmalloc space but in a dedicated segment that is below PAGE_OFFSET. So KASAN_SHADOW_START must take it into account. MODULES_VADDR can't be used because it is not defined yet in kasan.h Fixes: 6ca055322da8