On Mon, 12 Dec 2011, roel wrote: > In mm/slab.c kmem_cache_init() at /* 4) Replace the bootstrap head arrays */ > it kmallocs *ptr and memcpy's with sizeof(struct arraycache_init). Is this > correct or should it maybe be with sizeof(struct arraycache) instead? Allocating with sizeof(struct arraycache) will only allocate the header of the array cache and not reserve space for the pointers that are part of it. It is always wrong. Look at alloc_arraycache() for the proper way to use struct arraycache to calculate the number of bytes needed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>