Commit dca857a
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.
Signed-off-by: Jiri Olsa <[email protected]>1 parent 9879802 commit dca857a
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2742 | 2742 | | |
2743 | 2743 | | |
2744 | 2744 | | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
2745 | 2748 | | |
2746 | 2749 | | |
2747 | 2750 | | |
| |||
0 commit comments