WSL2-Linux-Kernel/mm/kasan
Andrey Ryabinin 47b5c2a0f0 mm/kasan: get rid of ->alloc_size in struct kasan_alloc_meta
Size of slab object already stored in cache->object_size.

Note, that kmalloc() internally rounds up size of allocation, so
object_size may be not equal to alloc_size, but, usually we don't need
to know the exact size of allocated object.  In case if we need that
information, we still can figure it out from the report.  The dump of
shadow memory allows to identify the end of allocated memory, and
thereby the exact allocation size.

Link: http://lkml.kernel.org/r/1470062715-14077-4-git-send-email-aryabinin@virtuozzo.com
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-08-02 17:31:41 -04:00
..
Makefile mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB 2016-07-28 16:07:41 -07:00
kasan.c mm/kasan: get rid of ->alloc_size in struct kasan_alloc_meta 2016-08-02 17:31:41 -04:00
kasan.h mm/kasan: get rid of ->alloc_size in struct kasan_alloc_meta 2016-08-02 17:31:41 -04:00
kasan_init.c x86/kasan, mm: Introduce generic kasan_populate_zero_shadow() 2015-08-22 14:54:55 +02:00
quarantine.c mm/kasan, slub: don't disable interrupts when object leaves quarantine 2016-08-02 17:31:41 -04:00
report.c mm/kasan: get rid of ->alloc_size in struct kasan_alloc_meta 2016-08-02 17:31:41 -04:00