aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2013-11-05 12:51:11 -0500
committerSteven Rostedt <[email protected]>2013-11-06 14:44:49 -0500
commit12ae030d54ef250706da5642fc7697cc60ad0df7 (patch)
treeda4b38fcaa39449d289ddf42b798da0f7b6a551c /lib/test-string_helpers.c
parent5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff)
perf/ftrace: Fix paranoid level for enabling function tracer
The current default perf paranoid level is "1" which has "perf_paranoid_kernel()" return false, and giving any operations that use it, access to normal users. Unfortunately, this includes function tracing and normal users should not be allowed to enable function tracing by default. The proper level is defined at "-1" (full perf access), which "perf_paranoid_tracepoint_raw()" will only give access to. Use that check instead for enabling function tracing. Reported-by: Dave Jones <[email protected]> Reported-by: Vince Weaver <[email protected]> Tested-by: Vince Weaver <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: [email protected] # 3.4+ CVE: CVE-2013-2930 Fixes: ced39002f5ea ("ftrace, perf: Add support to use function tracepoint in perf") Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions