lkml.org 
[lkml]   [2007]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 01/26] SLUB Debug: Fix initial object debug state of NUMA bootstrap objects
    The function we are calling to initialize object debug state during early
    NUMA bootstrap sets up an inactive object giving it the wrong redzone
    signature. The bootstrap nodes are active objects and should have active redzone
    signatures.

    Currently slab validation complains and reverts the object to active state.

    Signed-off-by: Christoph Lameter <clameter@sgi.com>

    Index: linux-2.6.22-rc4-mm2/mm/slub.c
    ===================================================================
    --- linux-2.6.22-rc4-mm2.orig/mm/slub.c 2007-06-17 23:51:43.000000000 -0700
    +++ linux-2.6.22-rc4-mm2/mm/slub.c 2007-06-18 00:40:04.000000000 -0700
    @@ -1925,7 +1925,8 @@ static struct kmem_cache_node * __init e
    page->freelist = get_freepointer(kmalloc_caches, n);
    page->inuse++;
    kmalloc_caches->node[node] = n;
    - setup_object_debug(kmalloc_caches, page, n);
    + init_object(kmalloc_caches, n, 1);
    + init_tracking(kmalloc_caches, n);
    init_kmem_cache_node(n);
    atomic_long_inc(&n->nr_slabs);
    add_partial(n, page);
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-06-18 12:01    [W:2.552 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site