android_kernel_motorola_sm6375/mm/kasan
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrey Ryabinin 923936157b mm/mempool.c: kasan: poison mempool elements
Mempools keep allocated objects in reserved for situations when ordinary
allocation may not be possible to satisfy.  These objects shouldn't be
accessed before they leave the pool.

This patch poison elements when get into the pool and unpoison when they
leave it.  This will let KASan to detect use-after-free of mempool's
elements.

Signed-off-by: Andrey Ryabinin <[email protected]>
Tested-by: David Rientjes <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dmitry Chernenkov <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2015-04-15 16:35:20 -07:00
..
kasan.c mm/mempool.c: kasan: poison mempool elements 2015-04-15 16:35:20 -07:00
kasan.h kasan: enable instrumentation of global variables 2015-02-13 21:21:42 -08:00
Makefile
report.c kasan: enable instrumentation of global variables 2015-02-13 21:21:42 -08:00