Linux PARISC architecture development
 help / color / mirror / Atom feed
* slub: fix panic with DISCONTIGMEM
@ 2011-04-19 21:29 James Bottomley
  2011-04-19 21:38 ` Christoph Lameter
  2011-04-20  7:48 ` Geert Uytterhoeven
  0 siblings, 2 replies; 7+ messages in thread
From: James Bottomley @ 2011-04-19 21:29 UTC (permalink / raw)
  To: linux-arch, linux-mm, Parisc List; +Cc: Christoph Lameter

Slub makes assumptions about page_to_nid() which are violated by
DISCONTIGMEM and !NUMA.  This violation results in a panic because
page_to_nid() can be non-zero for pages in the discontiguous ranges and
this leads to a null return by get_node().  The assertion by the
maintainer is that DISCONTIGMEM should only be allowed when NUMA is also
defined.  However, at least six architectures: alpha, ia64, m32r, m68k,
mips, parisc violate this.  The panic is a regression against slab, so
just mark slub broken in the problem configuration to prevent users
reporting these panics.

Cc: stable@kernel.org
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

---

diff --git a/init/Kconfig b/init/Kconfig
index 56240e7..a7ad8fb 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1226,6 +1226,7 @@ config SLAB
 	  per cpu and per node queues.
 
 config SLUB
+	depends on BROKEN || NUMA || !DISCONTIGMEM
 	bool "SLUB (Unqueued Allocator)"
 	help
 	   SLUB is a slab allocator that minimizes cache line usage



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

end of thread, other threads:[~2011-04-23  1:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 21:29 slub: fix panic with DISCONTIGMEM James Bottomley
2011-04-19 21:38 ` Christoph Lameter
2011-04-19 21:52   ` James Bottomley
2011-04-19 22:04     ` Christoph Lameter
2011-04-20  7:48 ` Geert Uytterhoeven
2011-04-20 13:54   ` Christoph Lameter
2011-04-23  1:27   ` Michael Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox