All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] list_add corruption in slab.c
@ 2008-03-25 16:57 Daniel Yeisley
  2008-03-25 18:45 ` Pekka Enberg
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Yeisley @ 2008-03-25 16:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

I've been seeing list_add corruption in slab.c on the ES7000 since the
2.6.24.1 kernel.  There are several places where the initkmem_list3
array is access by [somevalue + node].  This also needs to be done in
kmem_cache_init().  

Signed-off-by: Dan Yeisley <dan.yeisley@unisys.com>

---
diff -Naur linux-2.6.25-rc5/mm/slab.c linux-2.6.25-rc5-new/mm/slab.c
--- linux-2.6.25-rc5/mm/slab.c	2008-03-10 01:22:27.000000000 -0400
+++ linux-2.6.25-rc5-new/mm/slab.c	2008-03-20 13:59:24.000000000 -0400
@@ -1481,7 +1481,7 @@
 	list_add(&cache_cache.next, &cache_chain);
 	cache_cache.colour_off = cache_line_size();
 	cache_cache.array[smp_processor_id()] = &initarray_cache.cache;
-	cache_cache.nodelists[node] = &initkmem_list3[CACHE_CACHE];
+	cache_cache.nodelists[node] = &initkmem_list3[CACHE_CACHE + node];
 
 	/*
 	 * struct kmem_cache size depends on nr_node_ids, which


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-26 14:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 16:57 [PATCH] list_add corruption in slab.c Daniel Yeisley
2008-03-25 18:45 ` Pekka Enberg
2008-03-25 20:44   ` Daniel Yeisley
2008-03-25 21:13     ` Pekka Enberg
2008-03-25 21:27       ` Oliver Pinter
2008-03-25 21:38         ` Pekka Enberg
2008-03-25 21:42           ` Oliver Pinter
2008-03-26 14:16       ` Mel Gorman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.