google/kasan — pull request #24 by steelannelida (2014-12-05 17:34:21+00:00)
Title: mm: kasan: fix redzone shadow poisoning in Slub

kasan_slab_alloc() and kasan_slab_free() appeared to be broken:
When slab it set up, kasan_slab_free() is called on each object. It
poisons the object only, not the redzone/metadata.

Instead, in this change we poison the (shadow of) whole slab on setup,
and unpoison only the objects on allocation

Effectively this fixes most of left out of bounds misses.

kasan_mark_slab_padding and KASAN_SLAB_PADDING aren't used any more

Signed-off-by: Dmitry Chernenkov