diff options
| author | Prashanth Nageshappa <[email protected]> | 2012-02-24 07:41:39 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-02-29 21:29:45 +0000 |
| commit | 26b7952494772f0e695271fbd6cf83a852f60f25 (patch) | |
| tree | 168c92dc039cbd205b848c33da7020ea5b02a074 /lib/mpi/mpi-add.c | |
| parent | perf evlist: Return first evsel for non-sample event on old kernel (diff) | |
| download | kernel-26b7952494772f0e695271fbd6cf83a852f60f25.tar.gz kernel-26b7952494772f0e695271fbd6cf83a852f60f25.zip | |
perf probe: Ensure offset provided is not greater than function length
The perf probe command allows kprobe to be inserted at any offset from a
function start, which results in adding kprobes to unintended location.
Example: perf probe do_fork+10000 is allowed even though size of do_fork
is ~904.
This patch will ensure probe addition fails when the offset specified is
greater than size of the function.
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Prashanth Nageshappa <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
