Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-12 Thread Andrey Ryabinin
On 2/12/19 2:38 PM, Christophe Leroy wrote: > > > Le 12/02/2019 à 02:08, Daniel Axtens a écrit : >> Andrey Ryabinin writes: >> >>> >>> Christophe, you can specify KASAN_SHADOW_OFFSET either in Kconfig (e.g. >>> x86_64) or >>> in Makefile (e.g. arm64). And make early mapping writable, because co

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-12 Thread Andrey Ryabinin
On 2/12/19 4:08 AM, Daniel Axtens wrote: > Andrey Ryabinin writes: > >> On 2/11/19 3:25 PM, Andrey Konovalov wrote: >>> On Sat, Feb 9, 2019 at 12:55 PM christophe leroy >>> wrote: Hi Andrey, Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : > On Fri, Feb 8, 2019 at 6:1

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-12 Thread Christophe Leroy
Le 12/02/2019 à 02:08, Daniel Axtens a écrit : Andrey Ryabinin writes: On 2/11/19 3:25 PM, Andrey Konovalov wrote: On Sat, Feb 9, 2019 at 12:55 PM christophe leroy wrote: Hi Andrey, Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : On Fri, Feb 8, 2019 at 6:17 PM Christophe Leroy wrot

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-11 Thread Daniel Axtens
Andrey Ryabinin writes: > On 2/11/19 3:25 PM, Andrey Konovalov wrote: >> On Sat, Feb 9, 2019 at 12:55 PM christophe leroy >> wrote: >>> >>> Hi Andrey, >>> >>> Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : On Fri, Feb 8, 2019 at 6:17 PM Christophe Leroy wrote: > > Hi Danie

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-11 Thread Andrey Ryabinin
On 2/11/19 3:25 PM, Andrey Konovalov wrote: > On Sat, Feb 9, 2019 at 12:55 PM christophe leroy > wrote: >> >> Hi Andrey, >> >> Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : >>> On Fri, Feb 8, 2019 at 6:17 PM Christophe Leroy >>> wrote: Hi Daniel, Le 08/02/2019 à 17:18,

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-09 Thread christophe leroy
Hi Andrey, Le 08/02/2019 à 18:40, Andrey Konovalov a écrit : On Fri, Feb 8, 2019 at 6:17 PM Christophe Leroy wrote: Hi Daniel, Le 08/02/2019 à 17:18, Daniel Axtens a écrit : Hi Christophe, I've been attempting to port this to 64-bit Book3e nohash (e6500), although I think I've ended up wit

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-08 Thread Christophe Leroy
Hi Daniel, Le 08/02/2019 à 17:18, Daniel Axtens a écrit : Hi Christophe, I've been attempting to port this to 64-bit Book3e nohash (e6500), although I think I've ended up with an approach more similar to Aneesh's much earlier (2015) series for book3s. Part of this is just due to the changes be

Re: [PATCH v4 3/3] powerpc/32: Add KASAN support

2019-02-08 Thread Daniel Axtens
Hi Christophe, I've been attempting to port this to 64-bit Book3e nohash (e6500), although I think I've ended up with an approach more similar to Aneesh's much earlier (2015) series for book3s. Part of this is just due to the changes between 32 and 64 bits - we need to hack around the discontiguo

[PATCH v4 3/3] powerpc/32: Add KASAN support

2019-01-22 Thread Christophe Leroy
This patch adds KASAN support for PPC32. Note that on book3s it will only work on the 603 because the other ones use hash table and can therefore not share a single PTE table covering the entire early KASAN shadow area. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig