Linus Torvalds
b6ea7bcf77
This fixes kprobes/uprobes dynamic processing of strings, where
...
it processes the args but does not update the remaining length
of the buffer that the string arguments will be placed in. It
constantly passes in the total size of buffer used instead of
passing in the remaining size of the buffer used. This could cause
issues if the strings are larger than the max size of an event
which could cause the strings to be written beyond what was reserved
on the buffer.
-----BEGIN PGP SIGNATURE-----
iIoEABYIADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCXGN7BRQccm9zdGVkdEBn
b29kbWlzLm9yZwAKCRAp5XQQmuv6qoa1AQD7+6O0DncGwk5aWqRHESXKlmOWteW6
eMFbEw3KDcvs2gEAvNLB1i2yVH6Enn50M0KpmYJMbyZK/LVn2QsPZfU/LgQ=
=KMBZ
-----END PGP SIGNATURE-----
Merge tag 'trace-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt:
"This fixes kprobes/uprobes dynamic processing of strings, where it
processes the args but does not update the remaining length of the
buffer that the string arguments will be placed in. It constantly
passes in the total size of buffer used instead of passing in the
remaining size of the buffer used.
This could cause issues if the strings are larger than the max size of
an event which could cause the strings to be written beyond what was
reserved on the buffer"
* tag 'trace-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: probeevent: Correctly update remaining space in dynamic area
2019-02-13 10:28:17 -08:00
..
blktrace.c
blkcg: remove bio->bi_css and instead use bio->bi_blkg
2018-12-07 22:26:37 -07:00
bpf_trace.c
bpf: fix potential deadlock in bpf_prog_register
2019-01-31 23:18:21 +01:00
fgraph.c
tracing: Fix ftrace_graph_get_ret_stack() to use task and not current
2018-12-22 08:21:03 -05:00
ftrace.c
Tracing changes for v4.21:
2018-12-31 11:46:59 -08:00
ftrace_internal.h
ftrace: Create new ftrace_internal.h header
2018-12-08 20:54:06 -05:00
Kconfig
tracing: Use dyn_event framework for synthetic events
2018-12-08 20:54:10 -05:00
Makefile
tracing: Add unified dynamic event framework
2018-12-08 20:54:09 -05:00
power-traces.c
preemptirq_delay_test.c
tracing: Use trace_clock_local() for looping in preemptirq_delay_test.c
2018-10-17 15:35:33 -04:00
ring_buffer.c
Tracing changes for v4.21:
2018-12-31 11:46:59 -08:00
ring_buffer_benchmark.c
tracing: Add SPDX License format tags to tracing files
2018-08-16 19:08:06 -04:00
rpm-traces.c
trace.c
Tracing changes for v4.21:
2018-12-31 11:46:59 -08:00
trace.h
tracing: Add tracefs file buffer_percentage
2018-12-08 20:54:08 -05:00
trace_benchmark.c
trace_benchmark.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_branch.c
trace_clock.c
tracing: Add SPDX License format tags to tracing files
2018-08-16 19:08:06 -04:00
trace_dynevent.c
tracing: Add generic event-name based remove event method
2018-12-10 12:22:44 -05:00
trace_dynevent.h
tracing: Add unified dynamic event framework
2018-12-08 20:54:09 -05:00
trace_entries.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_event_perf.c
trace_uprobe: support reference counter in fd-based uprobe
2018-10-10 22:14:17 -04:00
trace_events.c
tracing: Use str_has_prefix() instead of using fixed sizes
2018-12-22 22:51:54 -05:00
trace_events_filter.c
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2018-12-26 13:07:19 -08:00
trace_events_filter_test.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_events_hist.c
tracing: Have the historgram use the result of str_has_prefix() for len of prefix
2018-12-22 22:52:09 -05:00
trace_events_trigger.c
tracing: Fix memory leak in set_trigger_filter()
2018-12-11 13:50:19 -05:00
trace_export.c
trace_functions.c
trace_functions_graph.c
function_graph: Move ftrace_graph_ret_addr() to fgraph.c
2018-12-08 20:54:07 -05:00
trace_hwlat.c
tracing: Add SPDX License format tags to tracing files
2018-08-16 19:08:06 -04:00
trace_irqsoff.c
fgraph: Add new fgraph_ops structure to enable function graph hooks
2018-12-08 20:54:07 -05:00
trace_kdb.c
trace_kprobe.c
tracing/kprobes: Fix NULL pointer dereference in trace_kprobe_create()
2019-01-15 11:33:45 -05:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_mmiotrace.c
trace_nop.c
trace_output.c
tracing: Simplify printf'ing in seq_print_sym
2018-12-22 08:21:06 -05:00
trace_output.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_preemptirq.c
trace_printk.c
tracing: Trivia spelling fix containerof() -> container_of()
2018-09-26 12:21:00 +03:00
trace_probe.c
tracing: Use the return of str_has_prefix() to remove open coded numbers
2018-12-22 22:52:30 -05:00
trace_probe.h
tracing/kprobes: Use dyn_event framework for kprobe events
2018-12-08 20:54:09 -05:00
trace_probe_tmpl.h
tracing: probeevent: Correctly update remaining space in dynamic area
2019-02-11 15:58:30 -05:00
trace_sched_switch.c
trace_sched_wakeup.c
fgraph: Add new fgraph_ops structure to enable function graph hooks
2018-12-08 20:54:07 -05:00
trace_selftest.c
fgraph: Add new fgraph_ops structure to enable function graph hooks
2018-12-08 20:54:07 -05:00
trace_selftest_dynamic.c
trace_seq.c
tracing: Add SPDX License format tags to tracing files
2018-08-16 19:08:06 -04:00
trace_stack.c
tracing: Use the return of str_has_prefix() to remove open coded numbers
2018-12-22 22:52:30 -05:00
trace_stat.c
trace_stat.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00
trace_syscalls.c
trace_uprobe.c
tracing/uprobes: Fix output for multiple string arguments
2019-01-17 10:54:08 -05:00
tracing_map.c
tracing: Add SPDX License format tags to tracing files
2018-08-16 19:08:06 -04:00
tracing_map.h
tracing: Fix SPDX format headers to use C++ style comments
2018-08-16 19:08:06 -04:00