diff options
author | Amery Hung <ameryhung@gmail.com> | 2025-02-20 14:15:31 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-02-20 18:44:35 -0800 |
commit | 38f1e66abd184c8f69b8d2c7d1ac02f32943b47b (patch) | |
tree | 7234c275c6362cfb466608bfcdd6c5988c490319 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e0525cd72b5979d8089fe524a071ea93fd011dc9 (diff) |
bpf: Do not allow tail call in strcut_ops program with __ref argument
Reject struct_ops programs with refcounted kptr arguments (arguments
tagged with __ref suffix) that tail call. Once a refcounted kptr is
passed to a struct_ops program from the kernel, it can be freed or
xchged into maps. As there is no guarantee a callee can get the same
valid refcounted kptr in the ctx, we cannot allow such usage.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250220221532.1079331-1-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions