Re: [PATCH 2/2] string.h: fix incompatibility between FORTIFY_SOURCE and KASAN

2020-01-15 Thread Dmitry Vyukov
refers to the kernel's implementation of foo, __underlying_foo could be > either the kernel implementation or the __builtin_foo implementation. > > Remove all the attempted disablement code in arch string headers. > > This makes all the tests succeed with FORTIFY_SOURCE en

Re: [PATCH 1/2] kasan: stop tests being eliminated as dead code with FORTIFY_SOURCE

2020-01-15 Thread Dmitry Vyukov
e write their results to a global, > which makes them live. The strlen and memchr tests now pass. > > The memcmp test still fails to trigger, which is addressed in the next > patch. > > Cc: Daniel Micay > Cc: Andrey Ryabinin > Cc: Alexander Potapenko > Cc: Dmitry Vyuko

Re: [PATCH v11 1/4] kasan: support backing vmalloc space with real shadow memory

2019-11-29 Thread Dmitry Vyukov
On Fri, Nov 29, 2019 at 1:29 PM Daniel Axtens wrote: > >>> Nope, it's vm_map_ram() not being handled > >> Another suspicious one. Related to kasan/vmalloc? > > Very likely the same as with ion: > > > > # git grep vm_map_ram|grep xfs > > fs/xfs/xfs_buf.c:* vm_map_ram() will

Re: [PATCH v11 1/4] kasan: support backing vmalloc space with real shadow memory

2019-11-29 Thread Dmitry Vyukov
On Fri, Nov 29, 2019 at 11:43 AM Dmitry Vyukov wrote: > > On Tue, Nov 19, 2019 at 10:54 AM Andrey Ryabinin > wrote: > > On 11/18/19 6:29 AM, Daniel Axtens wrote: > > > Qian Cai writes: > > > > > >> On Thu, 2

Re: BUG: KASAN: stack-out-of-bounds

2019-02-28 Thread Dmitry Vyukov
On Thu, Feb 28, 2019 at 10:22 AM Andrey Ryabinin wrote: > > > > On 2/27/19 4:11 PM, Christophe Leroy wrote: > > > > > > Le 27/02/2019 à 10:19, Andrey Ryabinin a écrit : > >> > >> > >> On 2/27/19 11:25 AM, Christophe Leroy wrote: > >>> With version v8 of the series implementing KASAN on 32 bits

Re: BUG: KASAN: stack-out-of-bounds

2019-02-27 Thread Dmitry Vyukov
On Wed, Feb 27, 2019 at 1:35 PM Christophe Leroy wrote: > > > > On 02/27/2019 08:34 AM, Dmitry Vyukov wrote: > > On Wed, Feb 27, 2019 at 9:25 AM Christophe Leroy > > wrote: > >> > >> With version v8 of the series implementing KASAN on 32 bits powerpc

Re: BUG: KASAN: stack-out-of-bounds

2019-02-27 Thread Dmitry Vyukov
On Wed, Feb 27, 2019 at 9:25 AM Christophe Leroy wrote: > > With version v8 of the series implementing KASAN on 32 bits powerpc > (https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=94309), > I'm now able to activate KASAN on a mac99 is QEMU. > > Then I get the following reports at

Re: [RFC PATCH 5/5] powerpc: KASAN for 64bit Book3E

2019-02-15 Thread Dmitry Vyukov
On Fri, Feb 15, 2019 at 1:05 AM Daniel Axtens wrote: > > Wire up KASAN. Only outline instrumentation is supported. > > The KASAN shadow area is mapped into vmemmap space: > 0x8000 0400 to 0x8000 0600 . > To do this we require that vmemmap be disabled. (This is the default > in

Re: [PATCH v3 1/3] powerpc/mm: prepare kernel for KAsan on PPC32

2019-01-15 Thread Dmitry Vyukov
On Tue, Jan 15, 2019 at 6:06 PM Andrey Ryabinin wrote: > > > > On 1/15/19 2:14 PM, Dmitry Vyukov wrote: > > On Tue, Jan 15, 2019 at 8:27 AM Christophe Leroy > > wrote: > >> On 01/14/2019 09:34 AM, Dmitry Vyukov wrote: > >>> On Sat, Jan 12, 2