kasan: enable stack instrumentation
authorAndrey Ryabinin <[email protected]>
Fri, 13 Feb 2015 22:39:59 +0000 (14:39 -0800)
committerLinus Torvalds <[email protected]>
Sat, 14 Feb 2015 05:21:41 +0000 (21:21 -0800)
commitc420f167db8c799d69fe43a801c58a7f02e9d57c
tree3dff6731a0459d554ae81d07b557721d6b72f773
parent393f203f5fd54421fddb1e2a263f64d3876eeadb
kasan: enable stack instrumentation

Stack instrumentation allows to detect out of bounds memory accesses for
variables allocated on stack.  Compiler adds redzones around every
variable on stack and poisons redzones in function's prologue.

Such approach significantly increases stack usage, so all in-kernel stacks
size were doubled.

Signed-off-by: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Konstantin Serebryany <[email protected]>
Cc: Dmitry Chernenkov <[email protected]>
Signed-off-by: Andrey Konovalov <[email protected]>
Cc: Yuri Gribov <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/include/asm/page_64_types.h
arch/x86/kernel/Makefile
arch/x86/mm/kasan_init_64.c
include/linux/init_task.h
mm/kasan/kasan.h
mm/kasan/report.c
scripts/Makefile.kasan