Peter Zijlstra wrote: > On Thu, 2007-05-10 at 17:15 +1000, Nick Piggin wrote: > > >>@@ -283,6 +295,12 @@ >> if (c) { >> c->name = name; >> c->size = size; >>+ if (flags & SLAB_DESTROY_BY_RCU) { >>+ BUG_ON(c->dtor); >>+ /* leave room for rcu footer at the end of object */ >>+ c->size += sizeof(struct slob_rcu); >>+ } >>+ c->flags = flags; > > > might want to put this hunt below > > >> c->ctor = ctor; >> c->dtor = dtor; > > > here; for c->dtor is not initialised quite yet at the BUG_ON site. Indeed, how's this? -- SUSE Labs, Novell Inc.