Re: [PATCH] stacktrace: Use PF_KTHREAD to check for kernel threads

2019-07-02 Thread Mark Rutland
On Tue, Jul 02, 2019 at 05:53:35PM +0200, Thomas Gleixner wrote: > !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 FWIW: Acked-by: Mark Rutland As a heads-up, I started look

[PATCH] stacktrace: Use PF_KTHREAD to check for kernel threads

2019-07-02 Thread Thomas Gleixner
!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 --- --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -228,7 +228,7 @@ unsigned int stack_trace_save_user(unsig };