diff options
| author | Amery Hung <[email protected]> | 2025-02-21 17:56:44 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-02-23 20:18:20 +0000 |
| commit | 201b62ccc83153d2925d310a2afe762905e0c455 (patch) | |
| tree | 9f2a90ae6aa150d55ceba087f2ba52329a158753 /tools/lib/bpf/libbpf.c | |
| parent | selftests/bpf: Test struct_ops program with __ref arg calling bpf_tail_call (diff) | |
| download | kernel-201b62ccc83153d2925d310a2afe762905e0c455.tar.gz kernel-201b62ccc83153d2925d310a2afe762905e0c455.zip | |
bpf: Refactor check_ctx_access()
Reduce the variable passing madness surrounding check_ctx_access().
Currently, check_mem_access() passes many pointers to local variables to
check_ctx_access(). They are used to initialize "struct
bpf_insn_access_aux info" in check_ctx_access() and then passed to
is_valid_access(). Then, check_ctx_access() takes the data our from
info and write them back the pointers to pass them back. This can be
simpilified by moving info up to check_mem_access().
No functional change.
Signed-off-by: Amery Hung <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
