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

2015-08-18 Thread Andrey Ryabinin
2015-08-18 8:36 GMT+03:00 Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com: Andrey Ryabinin ryabinin@gmail.com writes: 2015-08-17 15:13 GMT+03:00 Andrey Ryabinin ryabinin@gmail.com: Did you disable stack instrumentation (in scripts/Makefile.kasa), or you version of gcc doesn't

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

2015-08-17 Thread Andrey Ryabinin
On 08/17/2015 09:36 AM, Aneesh Kumar K.V wrote: We use the region with region ID 0xe as the kasan shadow region. Since we use hash page table, we can't have the early zero page based shadow region support. Hence we disable kasan in the early code and runtime enable this. We could imporve the

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

2015-08-17 Thread Andrey Ryabinin
2015-08-17 15:13 GMT+03:00 Andrey Ryabinin ryabinin@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

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

2015-08-17 Thread Aneesh Kumar K.V
Andrey Ryabinin ryabinin@gmail.com writes: On 08/17/2015 09:36 AM, Aneesh Kumar K.V wrote: We use the region with region ID 0xe as the kasan shadow region. Since we use hash page table, we can't have the early zero page based shadow region support. Hence we disable kasan in the early code

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

2015-08-17 Thread Aneesh Kumar K.V
Andrey Ryabinin ryabinin@gmail.com writes: 2015-08-17 15:13 GMT+03:00 Andrey Ryabinin ryabinin@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

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

2015-08-17 Thread Aneesh Kumar K.V
We use the region with region ID 0xe as the kasan shadow region. Since we use hash page table, we can't have the early zero page based shadow region support. Hence we disable kasan in the early code and runtime enable this. We could imporve the condition using static keys. (but that is for a later