diff options
author | Vaibhav Nagarnaik <[email protected]> | 2012-10-10 16:40:27 -0700 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2012-10-11 12:21:48 -0400 |
commit | 8e49f418c9632790bf456634742d34d97120a784 (patch) | |
tree | dfe1caca880206a3cfb38c923e49a5af74071d87 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 95cf59ea72331d0093010543b8951bb43f262cac (diff) |
ring-buffer: Check for uninitialized cpu buffer before resizing
With a system where, num_present_cpus < num_possible_cpus, even if all
CPUs are online, non-present CPUs don't have per_cpu buffers allocated.
If per_cpu/<cpu>/buffer_size_kb is modified for such a CPU, it can cause
a panic due to NULL dereference in ring_buffer_resize().
To fix this, resize operation is allowed only if the per-cpu buffer has
been initialized.
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected] # 3.5+
Signed-off-by: Vaibhav Nagarnaik <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions