diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-06 08:12:10 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-06 08:12:10 -0800 |
commit | 8053e5b93eca9b011f7b79bb019bf1eeaaf96c4b (patch) | |
tree | 340c3ac880892e9fc4a59c94529e277985ab3476 /kernel | |
parent | 4581aa96475b792de4b1206a12830339b65ec246 (diff) | |
parent | ee474b81fe5aa5dc0faae920bf66240fbf55f891 (diff) | |
download | linux-8053e5b93eca9b011f7b79bb019bf1eeaaf96c4b.tar.gz linux-8053e5b93eca9b011f7b79bb019bf1eeaaf96c4b.tar.bz2 linux-8053e5b93eca9b011f7b79bb019bf1eeaaf96c4b.zip |
Merge tag 'trace-v4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt:
"Masami found a slight bug in his code where he transposed the
arguments of a call to strpbrk.
The reason this wasn't detected in our tests is that the only way this
would transpire is when a kprobe event with a symbol offset is
attached to a function that belongs to a module that isn't loaded yet.
When the kprobe trace event is added, the offset would be truncated
after it was parsed, and when the module is loaded, it would use the
symbol without the offset (as the nul character added by the parsing
would not be replaced with the original character)"
* tag 'trace-v4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing/kprobes: Fix strpbrk() argument order
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index 3ef15a6683c0..bd30e9398d2a 100644 --- a/kernel/trace/trace_probe.c +++ b/kernel/trace/trace_probe.c @@ -535,7 +535,7 @@ int traceprobe_update_arg(struct probe_arg *arg) if (code[1].op != FETCH_OP_IMM) return -EINVAL; - tmp = strpbrk("+-", code->data); + tmp = strpbrk(code->data, "+-"); if (tmp) c = *tmp; ret = traceprobe_split_symbol_offset(code->data, |