Steven Rostedt
12ae030d54
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 <davej@redhat.com>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: stable@vger.kernel.org # 3.4+
CVE: CVE-2013-2930
Fixes: ced39002f5 ("ftrace, perf: Add support to use function tracepoint in perf")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2013-11-06 14:44:49 -05:00
..
blktrace.c
Merge branch 'for-3.10/drivers' of git://git.kernel.dk/linux-block
2013-05-08 11:51:05 -07:00
ftrace.c
ftrace: Fix a slight race in modifying what function callback gets traced
2013-09-03 19:36:26 -04:00
Kconfig
ring-buffer: Select IRQ_WORK
2013-05-03 19:24:17 -04:00
Makefile
power-traces.c
PM / tracing: remove deprecated power trace API
2013-01-26 00:39:12 +01:00
ring_buffer.c
tracing: Typo fix on ring buffer comments
2013-07-18 21:31:26 -04:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
tracing: Make tracing_cpumask available for all instances
2013-08-22 12:45:24 -04:00
trace.h
Not much changes for the 3.12 merge window. The major tracing changes
2013-09-09 14:42:15 -07:00
trace_branch.c
tracing: Fix the branch tracer that broke with buffer change
2013-03-15 00:35:54 -04:00
trace_clock.c
tracing: Add "uptime" trace clock that uses jiffies
2013-03-15 00:36:09 -04:00
trace_entries.h
tracing: Add trace_puts() for even faster trace_printk() tracing
2013-03-15 00:35:55 -04:00
trace_event_perf.c
perf/ftrace: Fix paranoid level for enabling function tracer
2013-11-06 14:44:49 -05:00
trace_events.c
tracing: Kill the !CONFIG_MODULES code in trace_events.c
2013-08-21 23:28:03 -04:00
trace_events_filter.c
tracing: Change event_filter_read/write to verify i_private != NULL
2013-07-29 22:56:59 -04:00
trace_events_filter_test.h
trace_export.c
tracing: Fix some section mismatch warnings
2013-03-15 00:34:54 -04:00
trace_functions.c
tracing: Add ref_data to function and fgraph tracer structs
2013-07-18 21:31:31 -04:00
trace_functions_graph.c
tracing: Add ref_data to function and fgraph tracer structs
2013-07-18 21:31:31 -04:00
trace_irqsoff.c
tracing: Use flag buffer_disabled for irqsoff tracer
2013-07-01 20:34:28 -04:00
trace_kdb.c
tracing: Consolidate max_tr into main trace_array structure
2013-03-15 00:35:40 -04:00
trace_kprobe.c
tracing/kprobes: Fail to unregister if probe event files are in use
2013-07-31 22:25:46 -04:00
trace_mmiotrace.c
tracing: Use trace_seq_puts()/trace_seq_putc() where possible
2013-07-18 21:30:36 -04:00
trace_nop.c
trace_output.c
tracing: Use trace_seq_puts()/trace_seq_putc() where possible
2013-07-18 21:30:36 -04:00
trace_output.h
tracing: Rename trace_event_mutex to trace_event_sem
2013-03-15 13:22:10 -04:00
trace_printk.c
tracing: Add __tracepoint_string() to export string pointers
2013-07-26 13:39:44 -04:00
trace_probe.c
trace_probe.h
uprobes/tracing: Introduce is_trace_uprobe_enabled()
2013-02-08 18:24:30 +01:00
trace_sched_switch.c
tracing: Consolidate max_tr into main trace_array structure
2013-03-15 00:35:40 -04:00
trace_sched_wakeup.c
tracing: Add function-trace option to disable function tracing of latency tracers
2013-03-15 00:36:08 -04:00
trace_selftest.c
ftrace: Do not run selftest if command line parameter is set
2013-07-01 20:57:15 -04:00
trace_selftest_dynamic.c
trace_stack.c
Tracing updates for Linux 3.10
2013-04-29 13:55:38 -07:00
trace_stat.c
tracing: Check return value of tracing_init_dentry()
2013-04-12 23:02:32 -04:00
trace_stat.h
trace_syscalls.c
tracing/syscalls: Annotate raw_init function with __init
2013-08-21 22:24:52 -04:00
trace_uprobe.c
tracing/uprobes: Fail to unregister if probe event files are in use
2013-08-01 18:25:50 -04:00