kasan: detect invalid frees
authorDmitry Vyukov <dvyukov@google.com>
Tue, 6 Feb 2018 23:36:37 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:43 +0000 (18:32 -0800)
commitb1d5728939ebe01a773a75a72e7161408ec9805e
tree78a5efeeaeefcad39bf62a0af35deea7e1e634c1
parent1db0e0f9dd9816e5d018518f933066d7b9bc0e33
kasan: detect invalid frees

Detect frees of pointers into middle of heap objects.

Link: http://lkml.kernel.org/r/cb569193190356beb018a03bb8d6fbae67e7adbc.1514378558.git.dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>a
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_kasan.c
mm/kasan/kasan.c