Re: [PATCH v2 3/5] kasan: added functions for unpoisoning stack variables

2017-11-30 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 10:50 PM, 'Paul Lawrence' via kasan-dev wrote: > From: Alexander Potapenko > > As a code-size optimization, LLVM builds since r279383 may > bulk-manipulate the shadow region when (un)poisoning large memory > blocks. This

Re: [PATCH v2 3/5] kasan: added functions for unpoisoning stack variables

2017-11-30 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 10:50 PM, 'Paul Lawrence' via kasan-dev wrote: > From: Alexander Potapenko > > As a code-size optimization, LLVM builds since r279383 may > bulk-manipulate the shadow region when (un)poisoning large memory > blocks. This requires new callbacks that simply do an

[PATCH v2 3/5] kasan: added functions for unpoisoning stack variables

2017-11-29 Thread Paul Lawrence
From: Alexander Potapenko As a code-size optimization, LLVM builds since r279383 may bulk-manipulate the shadow region when (un)poisoning large memory blocks. This requires new callbacks that simply do an uninstrumented memset(). This fixes linking the Clang-built kernel

[PATCH v2 3/5] kasan: added functions for unpoisoning stack variables

2017-11-29 Thread Paul Lawrence
From: Alexander Potapenko As a code-size optimization, LLVM builds since r279383 may bulk-manipulate the shadow region when (un)poisoning large memory blocks. This requires new callbacks that simply do an uninstrumented memset(). This fixes linking the Clang-built kernel when using KASAN.