mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull stacktrace fix from Thomas Gleixner: "Fix yet another instance of kernel thread check which ignores that kernel threads can call use_mm()" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: stacktrace: Use PF_KTHREAD to check for kernel threads
This commit is contained in:
commit
02150fab6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue