diff options
author | 2011-11-22 16:02:02 +0100 | |
---|---|---|
committer | 2011-11-24 08:44:19 +0200 | |
commit | bc6697d8a506dedf09e8e9974ffa3a316183e608 (patch) | |
tree | b54d3d45349fb8a00ce8a086da55a1ebf3394646 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | slub: use irqsafe_cpu_cmpxchg for put_cpu_partial (diff) | |
download | wireguard-linux-bc6697d8a506dedf09e8e9974ffa3a316183e608.tar.xz wireguard-linux-bc6697d8a506dedf09e8e9974ffa3a316183e608.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions