linux-stable/tools/perf
Masami Hiramatsu 803557f8eb perf probe: Fix probe_point buffer overrun
commit 594087a04e upstream.

Fix probe_point array-size overrun problem. In some cases (e.g.
inline function), one user-specified probe-point can be
translated to many probe address, and it overruns pre-defined
array-size. This also removes redundant MAX_PROBES macro
definition.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
LKML-Reference: <20100312232217.2017.45017.stgit@localhost6.localdomain6>
[ Note that only root can create new probes. Eventually we should remove
  the MAX_PROBES limit, but that is a larger patch not eligible to
  perf/urgent treatment. ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-04-01 16:01:30 -07:00
..
bench perf sched: Fix build failure on sparc 2009-12-14 08:59:12 +01:00
Documentation perf: Make the install relative to DESTDIR if specified 2010-04-01 16:01:29 -07:00
scripts/perl perf trace/scripting: List available scripts 2009-12-15 10:31:32 +01:00
util perf probe: Fix probe_point buffer overrun 2010-04-01 16:01:30 -07:00
.gitignore perf: Ignore perf.data.old 2010-01-27 11:31:26 +01:00
builtin-annotate.c perf annotate: Defer allocating sym_priv->hist array 2010-04-01 16:01:23 -07:00
builtin-bench.c perf bench: Add "all" pseudo subsystem and "all" pseudo suite 2009-12-14 08:51:19 +01:00
builtin-buildid-list.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin-diff.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin-help.c perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
builtin-kmem.c perf kmem: Print usage help for unknown commands 2010-01-20 07:20:08 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf probe: Fix probe_point buffer overrun 2010-04-01 16:01:30 -07:00
builtin-record.c perf record: We should fork only if a program was specified to run 2009-12-28 09:02:50 +01:00
builtin-report.c perf report: Fix segmentation fault when running with '-g none' 2010-01-27 11:01:43 +01:00
builtin-sched.c perf symbols: Make symbol_conf global 2009-12-16 08:53:48 +01:00
builtin-stat.c perf stat: Do not print ratio when task-clock event is not counted 2009-11-15 15:25:50 +01:00
builtin-timechart.c perf timechart: Use tid not pid for COMM change 2010-01-17 07:16:36 +01:00
builtin-top.c perf top: Fix help text alignment 2010-02-14 09:46:02 +01:00
builtin-trace.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin.h perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
command-list.txt perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf: Rename perf_event_hw_event in design document 2009-12-28 09:14:37 +01:00
Makefile perf: Make the install relative to DESTDIR if specified 2010-04-01 16:01:29 -07:00
perf.c perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
perf.h perf tools: Allow building for ARM 2009-12-11 13:50:21 +01:00