From: Eric Dumazet Date: Tue, 22 Nov 2011 15:02:02 +0000 (+0100) Subject: slub: avoid potential NULL dereference or corruption X-Git-Tag: v3.2-rc4~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6697d8a506dedf09e8e9974ffa3a316183e608;p=pandora-kernel.git slub: avoid potential NULL dereference or corruption 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. Acked-by: Christoph Lameter Acked-by: David Rientjes Signed-off-by: Eric Dumazet Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed