lkml.org 
[lkml]   [2008]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 05/15] kmemleak: Add the slub memory allocation/freeing hooks
    Catalin Marinas wrote:
    > This patch adds the callbacks to memleak_(alloc|free) functions from the
    > slub allocator.
    >
    > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    > Cc: Christoph Lameter <cl@linux-foundation.org>
    > Cc: Pekka Enberg <penberg@cs.helsinki.fi>

    Hmm, I'm not sure I understand why struct kmem_cache_cpu ->freelist is
    never scanned. For SMP, I suppose kmemleak doesn't scan the per-CPU
    areas? But for UP, struct kmem_cache is allocated with kmalloc() and
    that contains struct kmem_cache_cpu as well.

    And I suppose we never scan struct pages either. Otherwise ->freelist
    there would be a problem as well.

    Pekka


    \
     
     \ /
      Last update: 2008-12-11 22:37    [W:0.029 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site