android_kernel_motorola_sm6375/kernel/events
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jiri Olsa 98fd1968a3 uprobe: Do not emulate/sstep original instruction when ip is changed
[ Upstream commit 4363264111e1297fa37aa39b0598faa19298ecca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-03 12:45:08 +01:00
..
callchain.c
core.c perf/core: Prevent VMA split of buffer mappings 2025-08-28 16:21:23 +02:00
hw_breakpoint.c
internal.h perf: Fix perf_aux_size() for greater-than 32-bit size 2024-08-19 05:33:29 +02:00
Makefile
ring_buffer.c perf/ring_buffer: Allow the EPOLLRDNORM flag for poll 2025-04-10 14:29:40 +02:00
uprobes.c uprobe: Do not emulate/sstep original instruction when ip is changed 2025-12-03 12:45:08 +01:00