kernel_optimize_test/kernel/trace
Tom Zanussi 55267c88c0 tracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts
hist_field_var_ref() is an implementation of hist_field_fn_t(), which
can be called with a null tracing_map_elt elt param when assembling a
key in event_hist_trigger().

In the case of hist_field_var_ref() this doesn't make sense, because a
variable can only be resolved by looking it up using an already
assembled key i.e. a variable can't be used to assemble a key since
the key is required in order to access the variable.

Upper layers should prevent the user from constructing a key using a
variable in the first place, but in case one slips through, it
shouldn't cause a NULL pointer dereference.  Also if one does slip
through, we want to know about it, so emit a one-time warning in that
case.

Link: http://lkml.kernel.org/r/64ec8dc15c14d305295b64cdfcc6b2b9dd14753f.1555597045.git.tom.zanussi@linux.intel.com

Reported-by: Vincent Bernat <vincent@bernat.ch>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2019-05-21 12:43:49 -04:00
..
blktrace.c blkcg: annotate implicit fall through 2019-03-13 14:31:12 -06:00
bpf_trace.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
fgraph.c
ftrace_internal.h
ftrace.c The major changes in this tracing update includes: 2019-05-15 16:05:47 -07:00
Kconfig tracing: stop making gpio tracing configurable 2019-04-08 15:11:48 +02:00
Makefile
power-traces.c
preemptirq_delay_test.c
ring_buffer_benchmark.c ring-buffer: Fix mispelling of Calculate 2019-05-08 12:15:12 -04:00
ring_buffer.c The major changes in this tracing update includes: 2019-05-15 16:05:47 -07:00
rpm-traces.c
trace_benchmark.c
trace_benchmark.h
trace_branch.c x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP 2019-04-03 11:02:24 +02:00
trace_clock.c
trace_dynevent.c tracing: initialize variable in create_dyn_event() 2019-03-26 08:35:36 -04:00
trace_dynevent.h
trace_entries.h
trace_event_perf.c tracing/perf: Use strndup_user() instead of buggy open-coded version 2019-02-21 10:35:10 -05:00
trace_events_filter_test.h
trace_events_filter.c tracing: Fix white space issues in parse_pred() function 2019-05-08 12:15:12 -04:00
trace_events_hist.c tracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts 2019-05-21 12:43:49 -04:00
trace_events_trigger.c tracing: Add trace_array parameter to create_event_filter() 2019-04-08 09:22:28 -04:00
trace_events.c tracing: Fix partial reading of trace event's id file 2019-05-08 12:15:12 -04:00
trace_export.c
trace_functions_graph.c
trace_functions.c
trace_hwlat.c
trace_irqsoff.c The biggest change for this release is in the histogram code. 2019-03-11 17:01:32 -07:00
trace_kdb.c tracing: kdb: Allow ftdump to skip all but the last few entries 2019-05-02 21:32:55 -04:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_kprobe.c tracing: Use tracing error_log with probe events 2019-04-02 18:24:07 -04:00
trace_mmiotrace.c
trace_nop.c
trace_output.c
trace_output.h
trace_preemptirq.c kprobes: Prohibit probing on hardirq tracers 2019-02-13 08:16:40 +01:00
trace_printk.c
trace_probe_tmpl.h tracing: probeevent: Do not accumulate on ret variable 2019-05-08 12:15:11 -04:00
trace_probe.c tracing: Replace kzalloc with kcalloc 2019-05-08 12:15:12 -04:00
trace_probe.h tracing: uprobes: Re-enable $comm support for uprobe events 2019-05-08 12:15:11 -04:00
trace_sched_switch.c
trace_sched_wakeup.c tracing: Add conditional snapshot 2019-02-20 13:51:06 -05:00
trace_selftest_dynamic.c
trace_selftest.c function_graph: Have selftest also emulate tr->reset() as it did with tr->init() 2019-04-21 19:46:56 -04:00
trace_seq.c
trace_stack.c tracing: Remove the last struct stack_trace usage 2019-04-29 12:37:56 +02:00
trace_stat.c
trace_stat.h
trace_syscalls.c syscalls: Remove start and number from syscall_get_arguments() args 2019-04-05 09:26:43 -04:00
trace_uprobe.c tracing: uprobes: Re-enable $comm support for uprobe events 2019-05-08 12:15:11 -04:00
trace.c The major changes in this tracing update includes: 2019-05-15 16:05:47 -07:00
trace.h The major changes in this tracing update includes: 2019-05-15 16:05:47 -07:00
tracing_map.c
tracing_map.h