]> Git Repo - linux.git/commit
kasan: support use-after-scope detection
authorDmitry Vyukov <[email protected]>
Wed, 30 Nov 2016 23:54:16 +0000 (15:54 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Dec 2016 00:32:52 +0000 (16:32 -0800)
commit828347f8f9a558cf1af2faa46387a26564f2ac3e
tree4acb63366cc89b3e87e85805530911300dd4ab19
parent045d599a286bc01daa3510d59272440a17b23c2e
kasan: support use-after-scope detection

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.

[[email protected]: v3]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Dmitry Vyukov <[email protected]>
Acked-by: Andrey Ryabinin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: <[email protected]> [4.0+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/test_kasan.c
mm/kasan/kasan.c
mm/kasan/kasan.h
mm/kasan/report.c
This page took 0.043534 seconds and 4 git commands to generate.