Re: [PATCH] sys_getppid oopses on debug kernel (v2)

From: Dave Hansen
Date: Tue Aug 08 2006 - 12:07:28 EST

On Tue, 2006-08-08 at 19:50 +0400, Kirill Korotaev wrote:
> sys_getppid() optimization can access a freed memory.
> On kernels with DEBUG_SLAB turned ON, this results in Oops.
> As Dave Hansen noted, this optimization is also unsafe
> for memory hotplug.

Yeah, I just tried coding up something to do a seqlock to note when
tasks are freed, but it doesn't work. Unless somebody is really going
crazy with getppid() on a very large system, this should be just fine.

-- Dave

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