On Fri, Apr 25, 2025 at 10:54:33AM -0400, Steven Rostedt wrote: > From: Steven Rostedt <[email protected]> > > To determine if a task is a kernel thread or not, it is more reliable to > use (current->flags & PF_KTHREAD) than to rely on current->mm being NULL. > That is because some kernel tasks (io_uring helpers) may have a mm field.
There's a current->mm check in the user space unwinder (patch 1) which should probably also be converted. -- Josh
