From: Christoph Lameter Subject: slub: Slab size calculation is wrong in slab_pad_check Signed-off-by: Christoph Lameter --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-02-15 22:54:56.000000000 -0800 +++ linux-2.6/mm/slub.c 2008-02-15 22:56:16.000000000 -0800 @@ -678,7 +678,7 @@ static int slab_pad_check(struct kmem_ca return 1; start = slab_address(page); - end = start + (PAGE_SIZE << s->order); + end = start + (PAGE_SIZE << compound_order(page)); length = slab_objects(s, page) * s->size; remainder = end - (start + length); if (!remainder)