Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Yury Gribov
On 10/17/2014 06:18 PM, Jakub Jelinek wrote: On Fri, Oct 17, 2014 at 06:15:11PM +0400, Yury Gribov wrote: On 10/17/2014 05:49 PM, Jakub Jelinek wrote: Plus if you add misalign tests... Sure, can do this on Monday. Ok, thanks. - bool use_calls = ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD <

Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Jakub Jelinek
On Fri, Oct 17, 2014 at 06:15:11PM +0400, Yury Gribov wrote: > On 10/17/2014 05:49 PM, Jakub Jelinek wrote: > > Plus if you add misalign tests... > > Sure, can do this on Monday. Ok, thanks. > > - bool use_calls = ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD < INT_MAX > >-&& asan_num_accesses >

Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Yury Gribov
On 10/17/2014 05:49 PM, Jakub Jelinek wrote: > Plus if you add misalign tests... Sure, can do this on Monday. > - bool use_calls = ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD < INT_MAX -&& asan_num_accesses >= ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD; + bool use_calls += ASAN_INSTRUMENTA

Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Jakub Jelinek
On Fri, Oct 17, 2014 at 05:45:17PM +0400, Yury Gribov wrote: > On 10/17/2014 04:12 PM, Jakub Jelinek wrote: > >I had a brief look at what ended up on the branch in the end, and > >from what I understand, the 4.9 libasan.so has > >__asan_report_store_n and __asan_report_load_n entry points, but does

Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Yury Gribov
On 10/17/2014 04:12 PM, Jakub Jelinek wrote: I had a brief look at what ended up on the branch in the end, and from what I understand, the 4.9 libasan.so has __asan_report_store_n and __asan_report_load_n entry points, but does not have any __asan_loadN/__asan_reportN entrypoints (neither 1/2/4/8

Re: [PATCH 0/17] KASan 4.9 backport

2014-10-17 Thread Jakub Jelinek
On Thu, Oct 16, 2014 at 12:34:35PM +0400, Yury Gribov wrote: > Hi all, > > As discussed in https://gcc.gnu.org/ml/gcc/2014-09/msg00234.html , this > patchset backports mainline patches necessary for Kernel ASan in GCC 4.9 > (gcc-4_9-branch). The patcheset consists of > * Asan headers installation

[PATCH 0/17] KASan 4.9 backport

2014-10-16 Thread Yury Gribov
Hi all, As discussed in https://gcc.gnu.org/ml/gcc/2014-09/msg00234.html , this patchset backports mainline patches necessary for Kernel ASan in GCC 4.9 (gcc-4_9-branch). The patcheset consists of * Asan headers installation (1 patch) * __asan_loadN/__asan_storeN support (3 patches) * instrume