Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-05-27 22:30:59.000000000 -0700 +++ linux-2.6/mm/slub.c 2008-05-27 22:34:56.000000000 -0700 @@ -2265,7 +2265,11 @@ const char *kmem_cache_name(struct kmem_cache *s) { - return s->name; + if (s->refcount > 1) + /* Multiple slabs share the cache. There is no effective name */ + return NULL; + else + return s->name; } EXPORT_SYMBOL(kmem_cache_name);