"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "07bc5c699a3d8fe5e26dbcd72e4103c7988055ba"
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 <cl@linux.com> Acked-by:
David Rientjes <rientjes@google.com> Signed-off-by:
Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
Loading
Please register or sign in to comment