Re: [PATCH 01/15] kmemleak: Add the base support

From: Andrew Morton
Date: Thu Dec 04 2008 - 14:04:22 EST

On Thu, 04 Dec 2008 18:50:46 +0000 Catalin Marinas <catalin.marinas@xxxxxxx> wrote:

> Or, is there a way to tell whether it's in a kernel
> thread or user process context? Checking current->mm?

Yup, that'll work. There might be small windows during process startup
and termination where a real process can have a NULL ->mm, but those
are probably benign in this case.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at