Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-07 Thread Daniel Axtens
>>> +#ifdef CONFIG_KASAN >>> +#define _GLOBAL_KASAN(fn) .weak fn ; _GLOBAL(__##fn) ; _GLOBAL(fn) >>> +#define _GLOBAL_TOC_KASAN(fn) .weak fn ; _GLOBAL_TOC(__##fn) ; >>> _GLOBAL_TOC(fn) >>> +#define EXPORT_SYMBOL_KASAN(fn)EXPORT_SYMBOL(__##fn) ; >>> EXPORT_SYMBOL(fn) >> >> I'm having so

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-07 Thread Daniel Axtens
Christophe Leroy writes: > Le 04/03/2019 à 06:26, Daniel Axtens a écrit : >> Hi Christophe, >>> diff --git a/arch/powerpc/include/asm/kasan.h >>> b/arch/powerpc/include/asm/kasan.h >>> new file mode 100644 >>> index ..c3161b8fc017 >>> --- /dev/null >>> +++ b/arch/powerpc/include/asm/

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-06 Thread Christophe Leroy
Hi Daniel, On 03/04/2019 05:26 AM, Daniel Axtens wrote: Hi Christophe, diff --git a/arch/powerpc/include/asm/kasan.h b/arch/powerpc/include/asm/kasan.h new file mode 100644 index ..c3161b8fc017 --- /dev/null +++ b/arch/powerpc/include/asm/kasan.h @@ -0,0 +1,15 @@ +/* SPDX-License-Id

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-06 Thread Christophe Leroy
Le 04/03/2019 à 06:26, Daniel Axtens a écrit : Hi Christophe, diff --git a/arch/powerpc/include/asm/kasan.h b/arch/powerpc/include/asm/kasan.h new file mode 100644 index ..c3161b8fc017 --- /dev/null +++ b/arch/powerpc/include/asm/kasan.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifie

Re: [PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-03 Thread Daniel Axtens
Hi Christophe, > diff --git a/arch/powerpc/include/asm/kasan.h > b/arch/powerpc/include/asm/kasan.h > new file mode 100644 > index ..c3161b8fc017 > --- /dev/null > +++ b/arch/powerpc/include/asm/kasan.h > @@ -0,0 +1,15 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef __ASM_KASAN

[PATCH v9 02/11] powerpc: prepare string/mem functions for KASAN

2019-03-01 Thread Christophe Leroy
CONFIG_KASAN implements wrappers for memcpy() memmove() and memset() Those wrappers are doing the verification then call respectively __memcpy() __memmove() and __memset(). The arches are therefore expected to rename their optimised functions that way. For files on which KASAN is inhibited, #defin