diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2025-09-24 02:25:07 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-09-24 02:43:35 -0700 |
| commit | ceeaa7135723d77eb1bdab90379125d7c5a56696 (patch) | |
| tree | a5ea679e58f4e77971961e070f8bfe61787a33bb /include | |
| parent | 34f033a6c9c94a6e71c03133f006931bf7d5678b (diff) | |
| parent | 3d237467a444d4f23b78ac72210fe5860cd7aed8 (diff) | |
Merge branch 'uprobe-bpf-allow-to-change-app-registers-from-uprobe-registers'
Jiri Olsa says:
====================
we recently had several requests for tetragon to be able to change
user application function return value or divert its execution through
instruction pointer change.
This patchset adds support for uprobe program to change app's registers
including instruction pointer.
v4 changes:
- rebased on bpf-next/master, we will handle the future simple conflict
with tip/perf/core
- changed condition in kprobe_prog_is_valid_access [Andrii]
- added acks
====================
Link: https://patch.msgid.link/20250916215301.664963-1-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index ba3a3be7eb2a..ea2ed6771cc6 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -1639,6 +1639,7 @@ struct bpf_prog_aux { bool priv_stack_requested; bool changes_pkt_data; bool might_sleep; + bool kprobe_write_ctx; u64 prog_array_member_cnt; /* counts how many times as member of prog_array */ struct mutex ext_mutex; /* mutex for is_extended and prog_array_member_cnt */ struct bpf_arena *arena; |
