Re: [PATCH 1/2] kmemcheck v3

From: Pekka Enberg
Date: Fri Feb 08 2008 - 01:40:59 EST


On Feb 8, 2008 1:32 AM, Christoph Lameter <clameter@xxxxxxx> wrote:
> But the slab layer allocates pages < PAGE_SIZE. You need to take a fault
> right? So each object would need its own page?

No. We allocate a shadow page for each data page which we then use as
a per-byte "bitmap." For every tracked _page_ we take the page fault
always.
--
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/