lkml.org 
[lkml]   [2011]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH V2] slub: avoid potential NULL dereference or corruption
    On Tue, 22 Nov 2011, Eric Dumazet wrote:

    > show_slab_objects() can trigger NULL dereferences or memory corruption.
    >
    > Another cpu can change its c->page to NULL or c->node to NUMA_NO_NODE
    > while we use them.
    >
    > Use ACCESS_ONCE(c->page) and ACCESS_ONCE(c->node) to make sure this
    > cannot happen.
    >
    > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
    >

    Acked-by: David Rientjes <rientjes@google.com>


    \
     
     \ /
      Last update: 2011-11-23 06:33    [W:2.202 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site