diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2025-06-11 13:08:28 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-06-12 16:52:42 -0700 |
| commit | 13f843c0177eeb367ac63467c538046b90785583 (patch) | |
| tree | bd13afd48407bd4f5681090dcb1ad635223bc69f /scripts/lib/kdoc/kdoc_files.py | |
| parent | 96c6aa4c63af0bb0675c41b3e61a2fc7f6fed998 (diff) | |
bpf: frame_insn_idx() utility function
A function to return IP for a given frame in a call stack of a state.
Will be used by a next patch.
The `state->insn_idx = env->insn_idx;` assignment in the do_check()
allows to use frame_insn_idx with env->cur_state.
At the moment bpf_verifier_state->insn_idx is set when new cached
state is added in is_state_visited() and accessed only in the contexts
when the state is already in the cache. Hence this assignment does not
change verifier behaviour.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250611200836.4135542-3-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
