diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-07-02 17:53:35 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-03 09:04:06 +0200 |
commit | 7e8e6816c6495a1168f9a7a50125d82c23e59300 (patch) | |
tree | d608fc97cbbec910699dd53f473cb9813caad020 /kernel/bpf/queue_stack_maps.c | |
parent | Linux 5.2-rc7 (diff) | |
download | linux-7e8e6816c6495a1168f9a7a50125d82c23e59300.tar.xz linux-7e8e6816c6495a1168f9a7a50125d82c23e59300.zip |
stacktrace: Use PF_KTHREAD to check for kernel threads
!current->mm is not a reliable indicator for kernel threads as they might
temporarily use a user mm. Check for PF_KTHREAD instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1907021750100.1802@nanos.tec.linutronix.de
Diffstat (limited to 'kernel/bpf/queue_stack_maps.c')
0 files changed, 0 insertions, 0 deletions