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

From: Andrey Ryabinin
Date: Tue Nov 15 2016 - 13:24:04 EST




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 test.
>
> Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
> Cc: aryabinin@xxxxxxxxxxxxx
> Cc: glider@xxxxxxxxxx
> Cc: akpm@xxxxxxxxxxxxxxxxxxxx
> Cc: kasan-dev@xxxxxxxxxxxxxxxx
> Cc: linux-mm@xxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
>
> ---

Acked-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>