Re: [PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Dmitry Vyukov
On Wed, Nov 16, 2016 at 12:40 AM, Andrew Morton wrote: > On Tue, 15 Nov 2016 17:07:25 +0100 Dmitry Vyukov wrote: > >> Gcc revision 241896 implements use-after-scope detection. >> Will be available in gcc 7. Support it in KASAN. >> >> Gcc emits 2 new callbacks to poison/unpoison large stack >> obj

Re: [PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Andrew Morton
On Tue, 15 Nov 2016 17:07:25 +0100 Dmitry Vyukov wrote: > Gcc revision 241896 implements use-after-scope detection. > Will be available in gcc 7. Support it in KASAN. > > Gcc emits 2 new callbacks to poison/unpoison large stack > objects when they go in/out of scope. > Implement the callbacks an

Re: [PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Andrey Ryabinin
On 11/15/2016 07:07 PM, Dmitry Vyukov wrote: > Gcc revision 241896 implements use-after-scope detection. > Will be available in gcc 7. Support it in KASAN. > > Gcc emits 2 new callbacks to poison/unpoison large stack > objects when they go in/out of scope. > Implement the callbacks and add a tes

[PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Dmitry Vyukov
Gcc revision 241896 implements use-after-scope detection. Will be available in gcc 7. Support it in KASAN. Gcc emits 2 new callbacks to poison/unpoison large stack objects when they go in/out of scope. Implement the callbacks and add a test. Signed-off-by: Dmitry Vyukov Cc: aryabi...@virtuozzo.c