kmemleak: clear stale pointers from task stacks
authorKonstantin Khlebnikov <[email protected]>
Fri, 13 Oct 2017 22:58:22 +0000 (15:58 -0700)
committerLinus Torvalds <[email protected]>
Fri, 13 Oct 2017 23:18:33 +0000 (16:18 -0700)
commitca182551857cc2c1e6a2b7f1e72090a137a15008
tree2811f50f3d352d6f82f453e05a76489637b2d1b0
parent7e86600606cef21beec725039d70377fb364f881
kmemleak: clear stale pointers from task stacks

Kmemleak considers any pointers on task stacks as references.  This
patch clears newly allocated and reused vmap stacks.

Link: http://lkml.kernel.org/r/150728990124.744199.8403409836394318684.stgit@buzz
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/thread_info.h
kernel/fork.c