• Linus Torvalds's avatar
    Fix up non-NUMA SLAB configuration for zero-sized allocations · a5c96d8a
    Linus Torvalds authored
    I suspect Christoph tested his code only in the NUMA configuration, for
    the combination of SLAB+non-NUMA the zero-sized kmalloc's would not work.
    
    Of course, this would only trigger in configurations where those zero-
    sized allocations happen (not very common), so that may explain why it
    wasn't more widely noticed.
    
    Seen by by Andi Kleen under qemu, and there seems to be a report by
    Michael Tsirkin on it too.
    
    Cc: Andi Kleen <ak@suse.de>
    Cc: Roland Dreier <rdreier@cisco.com>
    Cc: Michael S. Tsirkin <mst@dev.mellanox.co.il>
    Cc: Pekka Enberg <penberg@cs.helsinki.fi>
    Cc: Christoph Lameter <clameter@sgi.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a5c96d8a
slab.c 115 KB