Re: [sched-devel/latest] WARNING: at mm/slub.c:2443

From: Pekka Enberg
Date: Wed Apr 23 2008 - 03:35:17 EST


On Wed, Apr 23, 2008 at 9:51 AM, Pete Zaitcev <zaitcev@xxxxxxxxxx> wrote:
> > I looked at this whole day today, but found nothing.
> >
> > The code analysis for usbmon shows nothing. Anyone wants to have
> > a look?

On Wed, Apr 23, 2008 at 10:31 AM, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
> I didn't look too closely but mon_text_fetch() does list_del() but no
> kmem_cache_free() which looks fishy.

Yup, looks like a leak in the error path. So it's mon_text_read_t() ->
mon_text_read_wait() -> mon_text_fetch() that removes it from the list
but we can fail before we reach the kmem_cache_free() in
mon_text_read_t() and thus lose track of the object.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/