[GIT pull] core/urgent for 5.3-rc1
From: Thomas Gleixner
Date: Thu Jul 11 2019 - 16:05:29 EST
Linus,
please pull the latest core-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus
up to: 7e8e6816c649: stacktrace: Use PF_KTHREAD to check for kernel threads
Fix yet another instance of kernel thread check which ignores that kernel
threads can call use_mm().
Thanks,
tglx
------------------>
Thomas Gleixner (1):
stacktrace: Use PF_KTHREAD to check for kernel threads
kernel/stacktrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c
index 36139de0a3c4..c8d0f05721a1 100644
--- a/kernel/stacktrace.c
+++ b/kernel/stacktrace.c
@@ -228,7 +228,7 @@ unsigned int stack_trace_save_user(unsigned long *store, unsigned int size)
};
/* Trace user stack if not a kernel thread */
- if (!current->mm)
+ if (current->flags & PF_KTHREAD)
return 0;
arch_stack_walk_user(consume_entry, &c, task_pt_regs(current));