aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTan Xiaojun <[email protected]>2017-02-23 06:04:39 +0000
committerIngo Molnar <[email protected]>2017-02-24 07:56:33 +0000
commit1572e45a924f254d9570093abde46430c3172e3d (patch)
treeda2db02ffa3c27b9d5d8b26c67773c7b4baf6edb /tools/perf/util/scripting-engines/trace-event-python.c
parentperf/core: Fix perf_event_enable_on_exec() timekeeping (again) (diff)
downloadkernel-1572e45a924f254d9570093abde46430c3172e3d.tar.gz
kernel-1572e45a924f254d9570093abde46430c3172e3d.zip
perf/core: Fix the perf_cpu_time_max_percent check
Use "proc_dointvec_minmax" instead of "proc_dointvec" to check the input value from user-space. If not, we can set a big value and some vars will overflow like "sysctl_perf_event_sample_rate" which will cause a lot of unexpected problems. Signed-off-by: Tan Xiaojun <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions