diff options
author | Jiri Olsa <jolsa@kernel.org> | 2025-09-16 23:52:57 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-09-24 02:25:06 -0700 |
commit | 4363264111e1297fa37aa39b0598faa19298ecca (patch) | |
tree | e2ac4bb3a6da0c493e8d048655d5060bf80bce1e /rust/helpers/vmalloc.c | |
parent | 7384893d970ea114952aef54ad7e3d7d2ca82d4f (diff) |
uprobe: Do not emulate/sstep original instruction when ip is changed
If uprobe handler changes instruction pointer we still execute single
step) or emulate the original instruction and increment the (new) ip
with its length.
This makes the new instruction pointer bogus and application will
likely crash on illegal instruction execution.
If user decided to take execution elsewhere, it makes little sense
to execute the original instruction, so let's skip it.
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20250916215301.664963-3-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions