mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
tracing/probes: Fix double addition of offset for @+FOFFSET
Since commit533059281e("tracing: probeevent: Introduce new argument fetching code") wrongly use @offset local variable during the parsing, the offset value is added twice when dereferencing. Reset the @offset after setting it in FETCH_OP_FOFFS. Link: https://lore.kernel.org/all/178217905962.643090.1978577464942171332.stgit@devnote2/ Fixes:533059281e("tracing: probeevent: Introduce new argument fetching code") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: stable@vger.kernel.org
This commit is contained in:
parent
206b25c090
commit
9a667b7750
|
|
@ -1241,6 +1241,7 @@ parse_probe_arg(char *arg, const struct fetch_type *type,
|
|||
|
||||
code->op = FETCH_OP_FOFFS;
|
||||
code->immediate = (unsigned long)offset; // imm64?
|
||||
offset = 0;
|
||||
} else {
|
||||
/* uprobes don't support symbols */
|
||||
if (!(ctx->flags & TPARG_FL_KERNEL)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user