aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/android/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorAmery Hung <ameryhung@gmail.com>2025-02-20 14:15:31 -0800
committerAlexei Starovoitov <ast@kernel.org>2025-02-20 18:44:35 -0800
commit38f1e66abd184c8f69b8d2c7d1ac02f32943b47b (patch)
tree7234c275c6362cfb466608bfcdd6c5988c490319 /include/uapi/linux/android/ssh:/git@git.zx2c4.com
parentlibbpf: Fix hypothetical STT_SECTION extern NULL deref case (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 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions