]> git.baikalelectronics.ru Git - kernel.git/commit
kmemleak: clear stale pointers from task stacks
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Fri, 13 Oct 2017 22:58:22 +0000 (15:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <khlebnikov@yandex-team.ru>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/thread_info.h
kernel/fork.c