lkml.org 
[lkml]   [2010]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] slub: Potential stack overflow
    From
    Date
    Le mercredi 24 mars 2010 à 14:16 -0500, Christoph Lameter a écrit :
    > On Wed, 24 Mar 2010, Eric Dumazet wrote:
    >
    > > I discovered that we can overflow stack if CONFIG_SLUB_DEBUG=y and use
    > > slabs with many objects, since list_slab_objects() and process_slab()
    > > use DECLARE_BITMAP(map, page->objects);
    >
    > Maybe we better allocate the bitmap via kmalloc then.
    >

    Hmm...

    Are we allowed to nest in these two functions ?

    GFP_KERNEL, GFP_ATOMIC ?

    These are debugging functions, what happens if kmalloc() returns NULL ?



    --
    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: 2010-03-24 20:25    [W:2.221 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site