kmemleak-clear-stale-pointers-from-task-stacks.patch removed from -mm tree
The patch titled
Subject: kmemleak: clear stale pointers from task stacks
has been removed from the -mm tree. Its filename was
kmemleak-clear-stale-pointers-from-task-stacks.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Konstantin Khlebnikov <[email protected]>
Subject: 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.
---
include/linux/thread_info.h | 2 +- kernel/fork.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
include/linux/thread_info.h renamed from include/linux/thread_info.h~kmemleak-clear-stale-pointers-from-task-stacks +1 -1
@@ -42,7 +42,7 @@ enum {#define THREAD_ALIGN THREAD_SIZE#endif -#ifdef CONFIG_DEBUG_STACK_USAGE +#if IS_ENABLED (CONFIG_DEBUG_STACK_USAGE ) ||IS_ENABLED (CONFIG_DEBUG_KMEMLEAK )# define THREADINFO_GFP (GFP_KERNEL_ACCOUNT | __GFP_NOTRACK | \ __GFP_ZERO)#else
kernel/fork.c renamed from kernel/fork.c~kmemleak-clear-stale-pointers-from-task-stacks +4 -0
@@ -215,6 +215,10 @@ static unsigned long *alloc_thread_stackif (!s)continue ; +#ifdef CONFIG_DEBUG_KMEMLEAK +/* Clear stale pointers from reused stack. */ +memset (s->addr,0 ,THREAD_SIZE ); +#endif tsk->stack_vm_area = s;return s->addr; }
_
Patches currently in -mm which might be from [email protected] are
kmemleak-change-sys-kernel-debug-kmemleak-permissions-from-0444-to-0644.patch proc-do-not-show-vmexe-bigger-than-total-executable-virtual-memory.patch