mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB
For KASAN builds: - switch SLUB allocator to using stackdepot instead of storing the allocation/deallocation stacks in the objects; - change the freelist hook so that parts of the freelist can be put into the quarantine. [aryabinin@virtuozzo.com: fixes] Link: http://lkml.kernel.org/r/1468601423-28676-1-git-send-email-aryabinin@virtuozzo.com Link: http://lkml.kernel.org/r/1468347165-41906-3-git-send-email-glider@google.com Signed-off-by:Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <adech.fo@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Steven Rostedt (Red Hat) <rostedt@goodmis.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Kostya Serebryany <kcc@google.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Kuthonuzo Luruo <kuthonuzo.luruo@hpe.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/kasan.h 2 additions, 0 deletionsinclude/linux/kasan.h
- include/linux/slab_def.h 2 additions, 1 deletioninclude/linux/slab_def.h
- include/linux/slub_def.h 4 additions, 0 deletionsinclude/linux/slub_def.h
- lib/Kconfig.kasan 2 additions, 2 deletionslib/Kconfig.kasan
- mm/kasan/Makefile 1 addition, 2 deletionsmm/kasan/Makefile
- mm/kasan/kasan.c 32 additions, 31 deletionsmm/kasan/kasan.c
- mm/kasan/kasan.h 1 addition, 2 deletionsmm/kasan/kasan.h
- mm/kasan/report.c 3 additions, 5 deletionsmm/kasan/report.c
- mm/slab.h 2 additions, 0 deletionsmm/slab.h
- mm/slub.c 44 additions, 13 deletionsmm/slub.c
Loading
Please register or sign in to comment