Re: [PATCH 3/9] kmemleak: correctly check for kthreads

2019-08-14 Thread Catalin Marinas
On Wed, Aug 14, 2019 at 11:41:25AM +0100, Mark Rutland wrote: > In general, a non-NULL current->mm doesn't imply that current is a > kthread, as kthreads can install an mm via use_mm(), and so it's > preferable to use is_kthread() to determine whether a thread is a > kthread. > > For consistency,

[PATCH 3/9] kmemleak: correctly check for kthreads

2019-08-14 Thread Mark Rutland
In general, a non-NULL current->mm doesn't imply that current is a kthread, as kthreads can install an mm via use_mm(), and so it's preferable to use is_kthread() to determine whether a thread is a kthread. For consistency, let's use is_kthread() here. Signed-off-by: Mark Rutland Cc: Catalin