Skip to content

Commit 4a5fa35

Browse files
jejbJames Bottomley
authored andcommitted
[PARISC] slub: fix panic with DISCONTIGMEM
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 Acked-by: David Rientjes <rientjes@google.com> Acked-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent d9b41e0 commit 4a5fa35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎init/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ config SLAB
12261226
per cpu and per node queues.
12271227

12281228
config SLUB
1229+
depends on BROKEN || NUMA || !DISCONTIGMEM
12291230
bool "SLUB (Unqueued Allocator)"
12301231
help
12311232
SLUB is a slab allocator that minimizes cache line usage

0 commit comments

Comments
 (0)