Re: [uml-devel] [PATCH 5/6] slab: Annotate slab

From: Pekka Enberg
Date: Thu Sep 04 2008 - 03:34:28 EST


Hi Steve,

On Wed, Sep 3, 2008 at 6:42 PM, Steve VanDeBogart
<vandebo-lkml@xxxxxxxxxxx> wrote:
> But which bits of a slab object should be marked as initialized at
> kmem_cache_alloc() time? We can't mark all of them as initialized
> because the constructor may not initialize all of them (in fact, I've
> programmatically confirmed that there are constructors that don't
> initialize all the bytes of an object). The only place to get the
> information of interest is to mark all bytes uninitialized and then
> run the constructor on the memory region.

Aah, indeed. We should fix kmemcheck as well then.

Pekka
--
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/