[RFC PATCH V1 7/8] powerpc/mm: kasan: Add kasan support for ppc64

Andrey Ryabinin ryabinin.a.a at gmail.com
Tue Aug 18 18:40:27 AEST 2015

2015-08-18 8:36 GMT+03:00 Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>:
> Andrey Ryabinin <ryabinin.a.a at gmail.com> writes:
>> 2015-08-17 15:13 GMT+03:00 Andrey Ryabinin <ryabinin.a.a at gmail.com>:
>>> Did you disable stack instrumentation (in scripts/Makefile.kasa),
>>> or you version of gcc doesn't support it (e.g. like 4.9.x on x86) ?
>>> Because this can't work with stack instrumentation as you don't have shadow for stack in early code.
>>> But this should be doable, as I think. All you need is to setup shadow for init task's
>>> stack before executing any instrumented function.
>> And you also need to define CONFIG_KASAN_SHADOW_OFFSET, so it will be
>> passed to GCC
>> via -fasan-shadow-offset= option.
> I am using KASAN minimal config. Hence this was not needed. Do we need
> to pass that option for outline instrumentation ? If not it would be a
> good idea to split that out and make it depend on KASAN_INLINE

We need to pass this for stack instrumentation too.

> -aneesh

More information about the Linuxppc-dev mailing list